-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
84 lines (84 loc) · 2.6 KB
/
.eslintrc
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
{
"root": true,
"env": {
"es6": true,
"node": true,
"browser": true
},
"globals": {
"error": true,
"global": true,
"window": true,
"formatters": true,
"localStorage": true,
"location": true
},
"settings": {
"react": {
"version": "detect"
}
},
"parser": "@typescript-eslint/parser",
"plugins": [
"react",
"react-hooks",
"@typescript-eslint"
],
"extends": [
"airbnb",
"airbnb/hooks"
],
"rules": {
"radix": ["off"],
"no-var": ["warn"],
"max-len": ["off"],
"no-console": ["off"], // ON || WARN for final deployment check
"func-names": ["off"],
"no-plusplus": ["off"],
"arrow-parens": ["off"],
"prefer-const": ["off"],
"no-unused-vars": ["off"], // ON || WARN for final deployment check
"arrow-body-style": ["off"], // While usefule; often times this makes code unreadable
"import/extensions": ["off"],
"no-param-reassign": ["off"],
"no-nested-ternary": ["off"],
"consistent-return": ["off"],
"max-classes-per-file": ["off"],
"no-use-before-define": ["off"],
"no-restricted-syntax": ["off"],
"object-curly-newline": ["off"],
"prefer-destructuring": ["off"],
"import/no-unresolved": ["off"],
"no-restricted-globals": ["off"],
"array-callback-return": ["off"],
"no-constant-condition": ["off"],
"object-property-newline": ["off"],
"no-unsafe-optional-chaining": ["off"],
"import/prefer-default-export": ["off"],
"import/no-extraneous-dependencies": ["off"],
"react/jsx-no-constructed-context-values": ["off"],
"react/jsx-one-expression-per-line": ["off"],
"react/jsx-closing-tag-location": ["off"],
"react/jsx-no-useless-fragment": ["off"],
"react/jsx-props-no-spreading": ["off"],
"react/jsx-filename-extension": ["off"],
"react/no-array-index-key": ["off"],
"react/no-unescaped-entities": ["off"],
"react/require-default-props": ["off"],
"react/function-component-definition": ["off"],
"react/destructuring-assignment": ["off"],
"jsx-a11y/label-has-associated-control": ["off"],
"jsx-a11y/click-events-have-key-events": ["off"],
"jsx-a11y/no-static-element-interactions": ["off"],
"object-curly-spacing": ["error", "always"],
"comma-dangle": ["warn", "always-multiline"],
"no-multiple-empty-lines": ["warn", {"max": 2}],
"indent": ["error", 2, { "SwitchCase": 1 }],
"@typescript-eslint/no-explicit-any": ["off"],
"eol-last": ["warn", "always"],
"quotes": ["error", "double"],
"semi": ["error", "never"],
"linebreak-style": ["off"],
"block-spacing": ["error"]
}
}