forked from discretize/discretize-gear-optimizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
58 lines (53 loc) · 1.44 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
{
"env": {
"browser": true,
"es6": true,
"jquery": true
},
"ignorePatterns": ["gulpfile.js"],
"extends": [
"react-app",
"airbnb/whitespace",
"airbnb/hooks",
"plugin:jsdoc/recommended",
"prettier"
],
"rules": {
// disabled or reduced
"no-restricted-syntax": "off",
"no-plusplus": "off",
"func-names": "off",
"no-continue": "off",
"no-param-reassign": ["warn", { "props": false }],
"consistent-return": "off",
"no-unused-vars": ["warn", { "argsIgnorePattern": "^event$|^e$|^props$|^theme$|^action$|^_" }],
"react/state-in-constructor": "off",
// temp
"react/prop-types": "off",
"react/jsx-props-no-spreading": "off",
// plugin-jsdoc defaults are quite problematic
"jsdoc/require-jsdoc": "off",
"jsdoc/require-param-description": "off",
"jsdoc/require-returns": "off", // breaks @yield
"jsdoc/tag-lines": "off", // breaks @example
// prettier compat
"arrow-body-style": "off",
"prefer-arrow-callback": "off",
"id-length": ["warn", { "exceptions": ["i", "e", "t"] }],
"no-restricted-imports": [
"error",
{
"patterns": ["@material-ui/*/*/*", "!@material-ui/core/test-utils/*"]
}
]
},
"overrides": [
{
"files": ["extract_context_injection/*", "*"],
"rules": {
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"no-console": "off"
}
}
]
}