-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
25 lines (25 loc) · 935 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module.exports = {
"env": { "es6": true, "node": true, "browser": true },
"extends": "eslint:recommended",
"extends": "airbnb",
"parserOptions": {
"ecmaFeatures": { "jsx": true },
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["react"],
"rules": {
"arrow-parens": [2, "as-needed", { "requireForBlockBody": true }],
"camelcase": 0,
"eqeqeq": ["error", "always"],
"indent": ["error", 2, { "SwitchCase": 1 }],
"jsx-a11y/label-has-for": 0,
"linebreak-style": ["error", "unix"],
"max-len": ["error", { "code": 120, "ignoreComments": true, "ignoreTrailingComments": true }],
"object-curly-newline": ["error", { "multiline": true, "minProperties": 5, "consistent": true }],
"operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before" } }],
"react/prop-types": 0,
"semi": ["error", "never"],
"quotes": ["error", "single"],
}
};