-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.eslintrc.json
102 lines (102 loc) · 2.12 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
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
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"prettier",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"import",
"@typescript-eslint",
"unused-imports"
],
"rules": {
"linebreak-style": "off",
"no-console": "off",
"import/extensions": "off",
"no-use-before-define": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "warn",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "(^_)|(this)"
}
],
"@typescript-eslint/no-use-before-define": [
"error"
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"quotes": [
"warn",
"single",
{
"avoidEscape": true
}
],
"comma-dangle": "off",
"import/order": [
"warn",
{
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index"
]
}
],
"import/no-cycle": "off",
"import/prefer-default-export": "off",
"func-names": "off",
"no-restricted-syntax": "off",
"dot-notation": "off",
"spaced-comment": "off",
"no-shadow": "off",
"lines-between-class-members": "off",
"no-else-return": "off",
"consistent-return": "off",
"no-plusplus": "off",
"radix": [
"error",
"as-needed"
],
"no-underscore-dangle": "off",
"no-restricted-globals": "off",
"semi": "warn",
"import/no-named-as-default-member": "off"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [
".ts"
]
},
"import/resolver": {
"typescript": {}
}
}
}