-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.eslintrc.json
65 lines (65 loc) · 1.8 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
{
"root": true,
"plugins": ["prettier", "@typescript-eslint"],
"extends": [
"universe/node",
"plugin:prettier/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"settings": {
"import/extensions": [".ts", ".tsx", ".js", ".jsx"],
"import/resolver": {
"typescript": {
"project": "tsconfig.json"
}
}
},
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-empty-interface": "off",
"no-shadow": "off",
"no-console": ["error", { "allow": ["warn", "error", "info"] }],
"react/react-in-jsx-scope": "off",
"react/jsx-props-no-spreading": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/alt-text": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/interactive-supports-focus": "off",
"react/require-default-props": "off",
"no-param-reassign": "off",
"import/no-anonymous-default-export": "off",
"import/no-named-as-default": "off",
"import/no-named-as-default-member": "off",
"import/order": [
"error",
{
"newlines-between": "always",
"groups": [
["builtin", "external"],
"internal",
"parent",
"sibling",
"index"
],
"pathGroups": [
{
"pattern": "~/**",
"group": "parent",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["react"],
"alphabetize": { "order": "asc", "caseInsensitive": true }
}
]
}
}