forked from immeasurable-vikrant/mind-school-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
73 lines (73 loc) · 1.7 KB
/
.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
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
{
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true,
"jquery": true
},
"extends": ["react-app", "eslint:recommended", "plugin:react/recommended"],
"parser": "babel-eslint",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"plugins": ["react"],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"no-global-assign": [
"error",
{
"exceptions": ["topics"]
}
],
"no-console": 2,
"new-cap": 2,
"no-shadow": "error",
"no-shadow-restricted-names": "error",
"strict": 0,
"no-multi-spaces": "error",
"comma-dangle": [2, "never"],
"no-invalid-regexp": "error",
"arrow-parens": [0, "never"],
// "prefer-template": "error",
"no-const-assign": "error",
"no-underscore-dangle": "off",
"no-use-before-define": 2,
"no-irregular-whitespace": "error",
"no-regex-spaces": "error",
"no-empty-pattern": "error",
"eol-last": 0,
"no-label-var": "error",
"no-catch-shadow": "error",
"no-undef-init": "error",
"no-this-before-super": "error",
"array-callback-return": "error",
"valid-typeof": "error",
"object-shorthand": "error",
"react/prop-types": 2,
"react/jsx-no-undef": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/jsx-no-duplicate-props": 2,
"react/jsx-key": 2,
"react/jsx-no-bind": 0,
"no-var": 2,
"default-case": 2,
"eqeqeq": ["error", "always"],
"radix": "error",
"prefer-const": "error",
"prefer-spread": "error"
}
}