-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
85 lines (84 loc) · 2.12 KB
/
.eslintrc
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
{
"root": true,
"env": {
"browser": true,
"es2021": true
},
"extends": [
"airbnb",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:import/recommended"
],
"plugins": ["eslint-plugin-prettier", "eslint-plugin-jsx-a11y"],
"parser": "@typescript-eslint/parser",
"rules": {
"no-promise-executor-return": "off",
"react/display-name": "off",
"no-return-assign": "off",
"jsx-a11y/label-has-associated-control": [
"error",
{
"required": {
"some": ["nesting", "id"]
}
}
],
"no-continue": "off",
"@typescript-eslint/ban-types": "warn",
"camelcase": "off",
"no-unused-expressions": "off",
"no-restricted-syntax": "off",
"no-underscore-dangle": "off",
"no-use-before-define": "off",
"react/no-unused-prop-types": "off",
"arrow-body-style": "off",
"import/no-extraneous-dependencies": "off",
"no-param-reassign": "error",
"no-unused-vars": "warn",
"no-empty-pattern": "error",
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"react/function-component-definition": "off",
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".tsx"] }],
"import/prefer-default-export": "off",
"import/order": [
"error",
{
"groups": ["builtin", "external", ["parent", "sibling"], "index"],
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"newlines-between": "always"
}
],
"import/extensions": [
"error",
"ignorePackages",
{
"ts": "never",
"tsx": "never"
}
]
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src"]
},
"alias": {
"map": [
["@pages", "./src/pages"],
["@components", "./src/components"],
["@util", "./src/util"],
["@msw", "./src/_msw"]
],
"extensions": [".ts", ".tsx"]
}
}
}
}