-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.json
72 lines (72 loc) · 1.79 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
{
"env": {
"browser": true,
"node": true,
"jasmine": true,
"es6": true
},
"extends": [
"eslint:recommended",
"google",
"plugin:import/errors",
"plugin:jsx-a11y/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module",
"babelOptions": {
"presets": ["@babel/preset-react"]
}
},
"plugins": [
"react",
"import",
"jsx-a11y"
],
"rules": {
"camelcase": "off",
"guard-for-in": "warn",
"import/default": "off",
"import/export": "off",
"import/namespace": "off",
"indent": ["error", 4, {"SwitchCase": 1}],
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/no-static-element-interactions": "off",
"linebreak-style": "off",
"max-len": "off",
"new-cap": "off",
"no-case-declarations": "off",
"no-constant-condition": "off",
"no-control-regex": "off",
"no-invalid-this": "off",
"no-prototype-builtins": "off",
"no-unused-vars": ["error", {"varsIgnorePattern": "React", "argsIgnorePattern": "^_"}],
"object-curly-spacing": ["error", "never"],
"prefer-promise-reject-errors": "off",
"quotes": ["error", "double"],
"react/prop-types": "off",
"react/no-unescaped-entities": "off",
"require-jsdoc": "off",
"valid-jsdoc": "off"
},
"overrides": [
{
"files": ["*Constants.js", "*Constant.js", "*Config.js"],
"rules": {"camelcase": "off"}
},
{
"files": ["*.test.js", "src/ui/RulePad/rulePad.js"],
"rules": {"max-len": "off"}
}
],
"settings": {
"react": {
"version": "detect"
}
}
}