-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
52 lines (52 loc) · 1.4 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
{
"extends": ["prettier", "airbnb", "airbnb-typescript"],
"plugins": ["react", "simple-import-sort"],
"parserOptions": {
"project": "./tsconfig.json"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"alias": {
"map": [["@", "./src"]],
"extensions": [".ts", ".tsx", ".js", ".json"]
}
}
},
"rules": {
"linebreak-style": 0,
"import/extensions": "off",
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"import/prefer-default-export": "off",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"react/jsx-one-expression-per-line": "off",
"@typescript-eslint/indent": "off",
"consistent-return": "off",
"no-param-reassign": ["error", {
"props": true,
"ignorePropertyModificationsFor": [
"state"
]
}],
"jsx-a11y/label-has-associated-control": "off",
"import/no-cycle": "off",
"react/no-array-index-key": "off",
"react/require-default-props": "off",
"react/button-has-type": "off",
"react/jsx-props-no-spreading": "off",
"no-restricted-syntax": "off",
"no-plusplus": "off",
"jsx-a11y/anchor-is-valid": "off",
"no-restricted-globals": "off",
"no-alert": "off"
}
}