mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
3f6834dfec
This example app shows you how to set up sitemap.xml and robots.txt files for proper indexing by search engine bots.
43 lines
954 B
JavaScript
43 lines
954 B
JavaScript
module.exports = {
|
|
parser: "babel-eslint",
|
|
extends: "airbnb",
|
|
env: {
|
|
browser: true,
|
|
jest: true
|
|
},
|
|
plugins: ["react", "jsx-a11y", "import"],
|
|
rules: {
|
|
"max-len": ["error", 100],
|
|
semi: ["error", "never"],
|
|
quotes: ["error", "single"],
|
|
"comma-dangle": ["error", "never"],
|
|
"space-before-function-paren": ["error", "always"],
|
|
"no-underscore-dangle": ["error", { allow: ["_id"] }],
|
|
"prefer-destructuring": [
|
|
"error",
|
|
{
|
|
VariableDeclarator: {
|
|
array: false,
|
|
object: true
|
|
},
|
|
AssignmentExpression: {
|
|
array: true,
|
|
object: false
|
|
}
|
|
},
|
|
{
|
|
enforceForRenamedProperties: false
|
|
}
|
|
],
|
|
"import/prefer-default-export": "off",
|
|
"jsx-a11y/anchor-is-valid": "off",
|
|
"react/react-in-jsx-scope": "off",
|
|
"react/jsx-filename-extension": [
|
|
"error",
|
|
{
|
|
extensions: [".js"]
|
|
}
|
|
]
|
|
}
|
|
};
|