forked from atropos-tech/material-multi-picker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
137 lines (133 loc) · 5.03 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"env": {
"browser": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"parser": "babel-eslint",
"plugins": ["jest", "import", "react", "promise"],
"extends": ["plugin:jest/recommended", "plugin:promise/recommended", "plugin:react/recommended", "eslint:recommended"],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"arrow-body-style": "error",
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": "error",
"brace-style": "error",
"class-methods-use-this": "error",
"comma-spacing": "error",
"complexity": ["error", { "max": 8 }],
"curly": "error",
"default-case": "error",
"eol-last": "error",
"eqeqeq": "error",
"func-call-spacing": "error",
"func-names": "error",
"id-blacklist": ["error", "data", "val", "obj", "function", "arg", "that", "err", "callback"],
"id-length": ["error", { "min": 3, "exceptions": ["id"] }],
"indent": ["error", 4],
"key-spacing": "error",
"keyword-spacing": "error",
"max-depth": ["error", { "max": 4 }],
"max-len": ["error", { "code": 180 }],
"max-lines": ["error", { "max": 300 }],
"max-statements": ["error", 20],
"max-nested-callbacks": ["error", { "max": 4 }],
"max-params": ["error", { "max": 8 }],
"max-statements-per-line": "error",
"no-async-promise-executor": "error",
"no-alert": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-confusing-arrow": "error",
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-continue": "error",
"no-empty-function": "error",
"no-eval": "error",
"no-implicit-coercion": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-iterator": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-loop-func": "error",
"no-magic-numbers": ["error", { "ignore": [0, 1, 2] }],
"no-mixed-operators": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": "error",
"no-nested-ternary": "error",
"no-new": "error",
"no-new-wrappers": "error",
"no-param-reassign": "error",
"no-proto": "error",
"no-script-url": "error",
"no-return-assign": "error",
"no-return-await": "error",
"no-shadow": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-template-curly-in-string": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-unneeded-ternary": "error",
"no-unused-expressions": "error",
"no-use-before-define": "error",
"no-useless-call": "error",
"no-useless-catch": "error",
"no-useless-return": "error",
"no-warning-comments": "error",
"no-with": "error",
"prefer-promise-reject-errors": "error",
"quotes": ["error", "double", { "avoidEscape": true }],
"require-await": "error",
"semi": "error",
"import/default": "error",
"import/export": "error",
"import/max-dependencies": ["error", {"max": 12}],
"import/named": "error",
"import/newline-after-import": "error",
"import/no-absolute-path": "error",
"import/no-amd": "error",
"import/no-commonjs": "error",
"import/no-duplicates": "error",
"import/no-deprecated": "error",
"import/no-dynamic-require": "error",
"import/no-extraneous-dependencies": "error",
"import/no-mutable-exports": "error",
"import/no-named-as-default": "error",
"import/no-named-as-default-member": "error",
"import/no-nodejs-modules": "error",
"import/no-self-import": "error",
"import/no-unresolved": "error",
"import/no-useless-path-segments": "error",
"import/no-webpack-loader-syntax": "error",
"import/prefer-default-export": "error",
"jest/no-test-callback": "error",
"jest/prefer-to-be-undefined": "error",
"jest/prefer-to-contain": "error",
"jest/prefer-to-have-length": "error",
"react/default-props-match-prop-types": "error",
"react/no-access-state-in-setstate": "error",
"react/no-array-index-key": "error",
"react/no-danger": "error",
"react/no-did-mount-set-state": "error",
"react/no-did-update-set-state": "error",
"react/no-direct-mutation-state": "error",
"react/no-typos": "error",
"react/no-this-in-sfc": "error",
"react/no-unused-prop-types": "error",
"react/void-dom-elements-no-children": "error",
"react/jsx-no-target-blank": "error",
"promise/always-return": "off"
}
}