-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
132 lines (132 loc) · 3.93 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
{
"extends": [
"plugin:react/recommended", // Uses the recommended rules from @eslint-plugin-react
"plugin:@typescript-eslint/recommended",
"prettier",
"airbnb"
],
"plugins": ["@typescript-eslint", "eslint-plugin-prettier", "react-hooks"],
"overrides": [
{
"files": ["*.{ts,tsx}"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "**/tsconfig.json",
"tsconfigRootDir": ".",
"sourceType": "module"
},
"rules": {
"@typescript-eslint/no-unused-vars": 1,
"@typescript-eslint/switch-exhaustiveness-check": 2
}
}
],
"rules": {
"react/function-component-definition": "off",
"implicit-arrow-linebreak": "off",
"arrow-body-style": ["error", "as-needed"],
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
],
"react/jsx-wrap-multilines": "off",
"no-undef": "off",
"curly": "off",
"nonblock-statement-body-position": "off",
"semi": "off",
"react-hooks/rules-of-hooks": "error",
"no-use-before-define": "off",
"import/extensions": "off",
"react/jsx-filename-extension": "off",
"no-confusing-arrow": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-curly-newline": "off",
"import/no-extraneous-dependencies": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"consistent-return": "off",
"no-unused-vars": "off",
"no-console": "off",
"guard-for-in": "off",
"indent": "off",
"max-len": "off",
"no-extend-native": "off",
"no-alert": "off",
"operator-linebreak": "off",
"react/jsx-props-no-spreading": "off",
"jsx-a11y/label-has-associated-control": "off",
"import/no-webpack-loader-syntax": "off",
"import/prefer-default-export": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"@typescript-eslint/interface-name-prefix": "off",
"import/no-unresolved": "off",
"no-semicolon-interface": 0,
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"react/require-default-props": 0,
"react/no-unused-prop-types": "off",
"react/button-has-type": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/no-var-requires": "off",
"no-await-in-loop": "off",
"no-underscore-dangle": "off",
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": true
}
],
"no-bitwise": "off",
"no-plusplus": "off",
"import/no-cycle": "off",
"eqeqeq": "off",
"new-cap": "off",
"no-new": "off",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/comma-dangle": "off",
"array-callback-return": "off",
"no-restricted-syntax": "off",
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/naming-convention": "off",
"no-param-reassign": "off",
"no-shadow": "off",
"no-prototype-builtins": "off",
"function-paren-newline": "off",
"@typescript-eslint/object-curly-spacing": "off",
"object-curly-newline": "off",
"import/order": [
"error",
{
"groups": [
"builtin",
["external", "internal"],
"parent",
["sibling", "index"]
],
"newlines-between": "always"
}
],
"react/no-unescaped-entities": 0, // Checks rules of Hooks
"react-hooks/exhaustive-deps": "off" // Checks effect dependencies
},
"env": {
"webextensions": true
},
"settings": {
"react": {
"version": "detect"
}
},
"globals": {}
}