-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
32 lines (32 loc) · 835 Bytes
/
.eslintrc.json
File metadata and controls
32 lines (32 loc) · 835 Bytes
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
30
31
32
{
"env": {
"browser": true,
"es6": true,
"node": true,
"mocha": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
"impliedStrict": true,
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": ["react"],
"rules": {
"comma-dangle": ["error", "only-multiline"],
"indent": ["error", 2],
"key-spacing": ["error"],
"linebreak-style": ["error", "unix"],
"max-len": ["error", 120],
"no-console": "off",
"no-var": "error",
"prefer-const": "error",
"quotes": ["error", "double", {"allowTemplateLiterals": true}],
"semi": ["error", "always"],
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never", "asyncArrow": "always"}]
}
}