1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/examples/with-sitemap-and-robots-express-server/.eslintrc.js
Kelly Burke 3f6834dfec sitemap.xml and robots.txt example (#4163)
This example app shows you how to set up sitemap.xml and robots.txt files for proper indexing by search engine bots.
2018-05-25 14:01:32 +02:00

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"]
}
]
}
};