-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
104 lines (104 loc) · 2.76 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
{
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:storybook/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
],
"plugins": [
"react",
"import",
"jsx-a11y",
"@typescript-eslint",
"eslint-comments",
"prettier",
"testing-library"
],
"rules": {
"react/self-closing-comp": "error",
"prettier/prettier": "error",
"eqeqeq": ["error", "always", { "null": "ignore" }],
"react-hooks/exhaustive-deps": "error",
"id-length": "off",
"jest/valid-expect-in-promise": "error",
"cypress/no-unnecessary-waiting": "off",
"complexity": ["error", { "max": 40 }],
"max-statements": ["error", { "max": 50 }],
"no-undefined": "off",
"no-undef": "error",
"no-var": "error",
"no-console": "error",
"react/prop-types": 0,
"indent": ["error", 2],
"linebreak-style": 0,
"quotes": ["error", "single"],
"no-duplicate-imports": "error",
"eslint-plugin-import/no-unused-modules": "off",
"object-curly-spacing": ["error", "always"],
"curly": "error",
"require-await": "error",
"eslint-comments/no-unlimited-disable": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{ "ignoreRestSiblings": true }
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/ban-ts-comment": [
"error",
{ "ts-ignore": "allow-with-description" }
],
"@typescript-eslint/array-type": ["error", { "default": "generic" }],
"react/jsx-pascal-case": ["error", { "allowNamespace": true }],
"react/jsx-curly-brace-presence": [
"error",
{ "props": "never", "children": "never" }
],
"import/no-unresolved": "error",
"no-inline-comments": "off",
"eslint-plugin-vue/no-static-inline-styles": "off",
"import/no-extraneous-dependencies": "error",
"import/order": [
"error",
{
"groups": [["builtin", "external"], ["parent", "sibling"], "index"],
"newlines-between": "always"
}
],
"import/newline-after-import": "error",
"default-param-last": "error"
},
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"alias": {
"extensions": [".ts", ".tsx", ".js", ".jsx", ".json"]
}
}
},
"globals": {
"Maybe": true,
"Falsy": true,
"JSX": true,
"__DEV__": true
},
"parser": "@typescript-eslint/parser",
"ignorePatterns": ["coverage", "reports"]
}