forked from SeanGroff/react-week-scheduler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
64 lines (64 loc) · 1.99 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
{
"extends": [
"prettier",
"prettier/react",
"plugin:css-modules/recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint"
],
"parser": "@typescript-eslint/parser",
"env": {
"browser": true
},
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["react", "compat", "css-modules", "react-hooks"],
"rules": {
"no-console": "error",
"react/prop-types": ["off"],
"@typescript-eslint/no-var-requires": ["off"],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"max-len": ["error", 120],
"max-depth": ["error", 4],
"arrow-body-style": ["off"],
"react/jsx-filename-extension": [
"error",
{ "extensions": [".tsx", ".jsx"] }
],
"react/jsx-max-depth": ["error", { "max": 6 }],
"react/no-array-index-key": ["off"],
"react/no-access-state-in-setstate": "error",
"react/no-children-prop": "error",
"react/no-danger": "error",
"react/no-danger-with-children": "error",
"react/no-deprecated": "error",
"react/no-did-update-set-state": "error",
"react/no-will-update-set-state": "error",
"react/no-direct-mutation-state": "error",
"react/no-redundant-should-component-update": "error",
"react/no-render-return-value": "error",
"react/void-dom-elements-no-children": "error",
"react/no-multi-comp": ["error", { "ignoreStateless": true }],
"react/jsx-pascal-case": "error",
"react/jsx-no-target-blank": "error",
"no-multi-str": ["off"],
"compat/compat": "error",
"css-modules/no-unused-class": ["warn", { "camelCase": true }],
"css-modules/no-undef-class": ["warn", { "camelCase": true }],
"@typescript-eslint/explicit-function-return-type": ["off"],
"@typescript-eslint/prefer-interface": ["off"],
"jsx-a11y/label-has-for": ["off"]
},
"settings": {
"react": {
"version": "detect"
}
}
}