-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
127 lines (127 loc) · 3.28 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
{
"env": {
"es6": true
},
"settings": {
"react": {
"version": "detect"
}
},
"parserOptions": {
"ecmaFeatures": {
"legacyDecorators": true
},
"project": ["tsconfig.json"]
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["plugin:react/recommended", "airbnb", "prettier"],
"rules": {
"import/extensions": [
"error",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"import/order": [
1,
{
"groups": ["builtin", "external", ["sibling", "parent"], "index"],
"pathGroups": [
{
"pattern": "react",
"group": "external",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["react"],
"newlines-between": "always"
}
],
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
],
"jsx-a11y/label-has-associated-control": [
"error",
{
"required": {
"some": ["nesting", "id"]
}
}
],
"jsx-a11y/label-has-for": [
"error",
{
"required": {
"some": ["nesting", "id"]
}
}
],
"react/jsx-props-no-spreading": "off",
"jsx-a11y/control-has-associated-label": "off",
"react/destructuring-assignment": [0],
"react/jsx-fragments": ["off"],
"react/state-in-constructor": "off",
"jsx-a11y/role-supports-aria-props": "off",
"no-useless-escape": "off",
"no-script-url": "off",
"jsx-a11y/anchor-has-content": "off",
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": "off",
"no-template-curly-in-string": "off",
"react/prop-types": 0,
"react/require-default-props": 0,
"react/prefer-stateless-function": 0,
"react/jsx-one-expression-per-line": 0,
"global-require": 0,
"linebreak-style": 0,
"react/react-in-jsx-scope": "off",
"react/jsx-wrap-multilines": 0,
"react/no-danger": 0,
"react/forbid-prop-types": 0,
"no-use-before-define": 0,
"no-param-reassign": 0,
"import/no-unresolved": 0,
"default-param-last": 0,
"no-console": 0,
"react/no-multi-comp": 0,
"react/function-component-definition": [
1,
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"no-void": 0,
"import/no-cycle": 0,
"no-unused-vars": 0,
"react/jsx-no-useless-fragment": 0
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"rules": {
"@typescript-eslint/member-delimiter-style": 0,
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/no-unsafe-return": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/unbound-method": 0,
"@typescript-eslint/ban-ts-comment": 0
}
}
]
}