52 lines
1.1 KiB
JavaScript
52 lines
1.1 KiB
JavaScript
module.exports = {
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true
|
|
},
|
|
"globals": {
|
|
"$": false,
|
|
"jQuery": false,
|
|
"process": false,
|
|
"module": true,
|
|
"require": false
|
|
},
|
|
"extends": "eslint:recommended",
|
|
"installedESLint": true,
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"experimentalObjectRestSpread": true,
|
|
"jsx": true
|
|
},
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": [
|
|
"react"
|
|
],
|
|
"rules": {
|
|
"indent": [
|
|
"error",
|
|
4
|
|
],
|
|
"linebreak-style": [
|
|
"error",
|
|
"unix"
|
|
],
|
|
"quotes": [
|
|
"error",
|
|
"double"
|
|
],
|
|
"semi": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"strict": [
|
|
"error",
|
|
],
|
|
"react/jsx-uses-react": "error",
|
|
"react/jsx-uses-vars": "error",
|
|
|
|
// Disable no-console rule in production
|
|
"no-console": process.env.NODE_ENV !== "production" ? "off" : "error"
|
|
}
|
|
};
|