forked from mushan0x0/AI0x0.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
43 lines (43 loc) · 1.15 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"globals": {
"API_ENV": "readonly"
},
"plugins": ["@typescript-eslint/eslint-plugin"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"react-app"
],
"rules": {
"prettier/prettier": "error",
"jsx-quotes": ["error", "prefer-double"],
"import/first": "error",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"import/no-commonjs": "off",
"react/jsx-boolean-value": "off",
"react/jsx-indent-props": "off",
"semi": [2, "always"],
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": "error",
"import/order": [
"error",
{
"newlines-between": "never",
"warnOnUnassignedImports": true,
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-var-requires": "warn",
"react/no-children-prop": "off",
"react/self-closing-comp": "error",
"react/jsx-key": "error"
}
}