forked from kodeklubben/codeclub-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
29 lines (29 loc) · 998 Bytes
/
.eslintrc
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
26
27
28
29
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"mocha": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": ["react"],
"rules": {
"eol-last": ["error"],
"indent": ["error", 2, {"SwitchCase": 1}],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"max-len": ["error", 120],
"no-console": ["off"], // we automatically strip console.log from production code, and we want to keep console.warn and console.error
"no-unused-vars": ["error", { "vars": "all", "args": "none" }], // only warn of unused args and vars
"react/jsx-uses-vars": [1], // avoid no-unused-vars for imports used as react components
"react/jsx-uses-react": [1], // avoid no-unused-vars for importing React
"react/react-in-jsx-scope": [1] // make sure React is in scope when writing jsx
}
}