forked from petrovicstefanrs/30_seconds_of_knowledge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
115 lines (113 loc) · 2.24 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"root": true,
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
"mocha": true,
"jquery": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"react-app"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018,
"ecmaFeatures": {
"jsx": true,
"modules": true,
"globalReturn": true,
"classes": true
},
"sourceType": "module"
},
"plugins": [
"react"
],
"globals": {
"chai": true,
"sinon": true,
"should": true,
"nock": true,
"expect": true,
"$": true,
"_": true,
"Promise": true,
"Primus": true,
"google": true,
"chrome": true
},
"rules": {
"camelcase": "off",
"comma-dangle": ["off", "always-multiline"],
"comma-spacing": "warn",
"eqeqeq": "error",
"key-spacing": "warn",
"keyword-spacing": "warn",
"dot-notation": "off",
"no-console": "warn",
"eol-last": "warn",
"new-cap": "warn",
"no-case-declarations": "off",
"no-dupe-args": "error",
"no-dupe-class-members": "error",
"no-empty": [
"warn",
{
"allowEmptyCatch": true
}
],
"no-mixed-requires": "off",
"no-mixed-spaces-and-tabs": "warn",
"no-process-console": "off",
"no-process-exit": "off",
"no-shadow": "off",
"no-underscore-dangle": "off",
"no-unused-expressions": "off",
"no-unused-vars": [
"warn",
{
"vars": "all",
"args": "none",
"ignoreRestSiblings": true,
"caughtErrors": "none",
"varsIgnorePattern": "Component"
}
],
"quotes": [
"off",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"space-infix-ops": "off",
"strict": "off",
"no-fallthrough": "off",
"no-sync": "off",
"one-var": "off",
"semi": "error",
"radix": "error",
"vars-on-top": "off",
"yoda": "warn",
"no-constant-condition": "warn",
"no-unreachable": "warn",
"no-useless-escape": "off",
"no-restricted-globals": "off",
"no-debugger": "warn",
"react/jsx-uses-react": "warn",
"react/jsx-uses-vars": "warn",
"react/prop-types": "off",
"react/no-danger": "off",
"react/no-deprecated": "off",
"react/no-unescaped-entities": "off",
"react/no-find-dom-node": "warn",
"react/jsx-no-target-blank": "warn",
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/alt-text": "off"
}
}