-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
59 lines (59 loc) · 1.9 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
{
"env": {
"browser": true,
"es2021": true
},
"globals": {
"JSX": "readonly"
},
"extends": [
"plugin:react/recommended",
"plugin:prettier/recommended",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"airbnb",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:jest/recommended",
"plugin:react/jsx-runtime",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 14,
"sourceType": "module"
},
"plugins": ["react", "prettier", "@typescript-eslint", "jest", "react-hooks", "import"],
"rules": {
"react/jsx-wrap-multilines": ["error", { "prop": "ignore" }],
"react/jsx-props-no-spreading": "off",
"react/no-array-index-key": "off",
"object-curly-newline": ["off"],
"implicit-arrow-linebreak": ["off"],
"max-len": ["error", 120],
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before" } }],
"arrow-parens": ["error", "as-needed"],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/jsx-filename-extension": [1, { "extensions": [".tsx", ".ts", ".js"] }],
"import/prefer-default-export": "off",
"jsx-quotes": ["error", "prefer-single"],
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"import/extensions": ["error", "ignorePackages", { "ts": "never", "tsx": "never" }],
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"react/prop-types": "warn",
"no-use-before-define": "warn",
"react/jsx-no-bind": "warn",
"indent": ["off", 2]
}
}