-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
51 lines (48 loc) · 1.2 KB
/
.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
module.exports = {
"extends": [
"eslint-config-kyt"
],
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module"
},
"env": {
"browser": true,
"node": true,
"es6": true,
},
"plugins": [
],
"rules": {
"no-undef": ["error"],
"no-const-assign": ["error"],
"no-this-before-super": ["error"],
"use-isnan": ["error"],
"no-redeclare": ["error"], // A const could redeclare an import
"prefer-const": ["warn"],
"no-var": ["warn"],
"no-unused-vars": ["warn"],
"no-unreachable": ["warn"],
"no-shadow": ["warn"],
"no-constant-condition": ["warn"],
"global-require": ["warn"],
"max-len": ["warn", { "ignoreComments": true, code: 120 }],
"react/jsx-indent": "warn",
"import/prefer-default-export": "off",
"import/no-unresolved": "off",
"object-curly-spacing": "off",
"no-use-before-define": "warn",
"no-confusing-arrow": "off",
"keyword-spacing": "error",
"comment-dangle": "off",
"block-spacing": "error",
"arrow-parens": "off",
"comma-dangle": "off",
"func-names": "off",
"no-continue": "off",
"no-console": "off",
"no-empty": "off",
"curly": "off",
"semi": "warn",
},
}