-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.json
79 lines (79 loc) · 2.6 KB
/
.eslintrc.json
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"root": true,
"parser": "babel-eslint",
"plugins": ["react", "no-loops"],
"extends": ["plugin:import/errors", "plugin:import/warnings"],
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": { "jsx": true, "experimentalObjectRestSpread": true }
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"rules": {
"indent": ["warn",2],
"linebreak-style": ["error","unix"],
"semi": ["error","always"],
"no-cond-assign": ["error","except-parens"],
"no-constant-condition": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty": [ "error", { "allowEmptyCatch": true } ],
"no-extra-semi": "error",
"no-irregular-whitespace": "error",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
"no-unreachable": "error",
"use-isnan": "error",
"default-case": "error",
"eqeqeq": "error",
"no-alert": "error",
"no-caller": "error",
"no-eval": "error",
"no-labels": "error",
"no-implied-eval": "error",
"no-loop-func": "error",
"no-script-url": "error",
"require-await": "error",
"yoda": "error",
"no-unused-vars": "error",
"no-path-concat": "error",
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"camelcase": "error",
"new-cap": "error",
"no-lonely-if": "error",
"no-tabs": "error",
"no-trailing-spaces": "warn",
"constructor-super": "error",
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-duplicate-imports": "error",
"no-var":"error",
"prefer-const": "warn",
"prefer-rest-params": "error",
"prefer-template": "warn",
"no-undef": "warn",
"no-loops/no-loops": "error",
"react/no-did-mount-set-state": "error",
"react/no-did-update-set-state": "error",
"react/prefer-es6-class": "error",
"react/prop-types": [ "error", { "ignore": [ "router"] } ],
"react/react-in-jsx-scope": "error",
"react/require-render-return": "error",
"react/self-closing-comp": "warn",
"react/style-prop-object": "error",
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-undef": "error",
"react/jsx-uses-vars": "error",
"react/jsx-uses-react": "error",
"react/jsx-no-bind": "warn",
"import/no-unresolved": "error",
"import/no-dynamic-require": "error",
"import/no-extraneous-dependencies": "error",
"import/first": "error",
"import/no-duplicates": "error"
}
}