-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
107 lines (107 loc) · 2.58 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
{
"extends": [
"airbnb-typescript",
"airbnb/hooks",
"plugin:sonarjs/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 9,
"project": "tsconfig.json",
"sourceType": "module"
},
"env": {
"browser": true,
"es6": true
},
"plugins": ["eslint-plugin-import-helpers", "jsx-a11y", "prettier", "react", "react-hooks", "sonarjs"],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"prettier/prettier": "error",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/no-empty-interface": [
"error",
{
"allowSingleExtends": true
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-shadow": "off",
"comma-dangle": "off",
"eol-last": "error",
"global-require": "off",
"import/no-cycle": "off",
"import-helpers/order-imports": [
"error",
{
"alphabetize": {
"ignoreCase": true,
"order": "asc"
},
"groups": ["/^react/", "module", ["parent", "sibling", "index"]],
"newlinesBetween": "always"
}
],
"import/prefer-default-export": "off",
"react/jsx-props-no-spreading": "off",
"sonarjs/no-duplicate-string": "off",
"react/button-has-type": "off",
"max-len": [
"error",
{
"code": 120
}
],
"no-multiple-empty-lines": [
"error",
{
"max": 1
}
],
"no-param-reassign": "off",
"no-trailing-spaces": "error",
"quotes": ["error", "single"],
"react-hooks/exhaustive-deps": "off",
"react/destructuring-assignment": [
"warn",
"always",
{
"ignoreClassFields": true
}
],
"react/jsx-sort-props": [
"error",
{
"ignoreCase": true
}
],
"react/jsx-uses-react": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react/state-in-constructor": ["error", "never"],
"semi": "error",
"sort-imports": [
"error",
{
"ignoreCase": true,
"ignoreDeclarationSort": true
}
],
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/no-static-element-interactions": "off"
}
}