-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
129 lines (129 loc) · 3.6 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
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
128
129
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"root": true,
"env": {
"browser": false,
"es2024": true,
"node": true
},
"extends": [
"plugin:react/recommended",
"plugin:prettier/recommended",
"plugin:react-hooks/recommended",
"plugin:jsx-a11y/recommended"
],
"plugins": [
"react",
"react-hooks",
"unused-imports",
"import",
"@typescript-eslint",
"eslint-plugin-jsdoc",
"jsx-a11y",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module",
"ecmaVersion": "latest",
"project": [
"./tsconfig.json",
"./tsconfig.node.json",
"./tsconfig.test.json",
"./packages/**/tsconfig.json",
"./packages/**/tsconfig.node.json",
"./packages/**/tsconfig.test.json",
"./docs/**/tsconfig.json",
"./docs/**/tsconfig.node.json"
]
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"@typescript-eslint/consistent-type-exports": [
"error",
{
"fixMixedExportsWithInlineTypeSpecifier": false
}
],
"@typescript-eslint/consistent-type-imports": [
"error",
{
"fixStyle": "separate-type-imports",
"prefer": "type-imports"
}
],
"@typescript-eslint/no-require-imports": [
"error",
{
"allow": [
"tailwindcss",
"autoprefixer"
]
}
],
"@typescript-eslint/no-unnecessary-condition": "warn",
"brace-style": [
"error",
"1tbs",
{
"allowSingleLine": true
}
],
"consistent-return": "error",
"import/first": "off",
"indent": "off",
"jsdoc/check-alignment": "error",
"jsdoc/check-indentation": "off",
"jsdoc/check-line-alignment": "error",
"jsdoc/check-param-names": "error",
"jsdoc/check-property-names": "error",
"jsdoc/check-syntax": "error",
"jsdoc/check-types": "error",
"jsdoc/require-hyphen-before-param-description": "error",
"jsx-a11y/alt-text": "off",
"jsx-a11y/anchor-is-valid": "off",
"no-console": [
"error",
{
"allow": [
"warn",
"error"
]
}
],
"no-mixed-operators": "off",
"no-unused-vars": "off",
"no-useless-constructor": "off",
"prettier/prettier": "error",
"react-hooks/exhaustive-deps": "off",
"react-hooks/rules-of-hooks": "error",
"react/no-children-prop": "off",
"react/no-find-dom-node": "off",
"react/no-string-refs": "off",
"react/prop-types": "error",
"react/react-in-jsx-scope": "off",
"react/jsx-uses-react": "off",
"semi": [
"error",
"always"
],
"standard/computed-property-even-spacing": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
]
}
}