-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc.json
51 lines (51 loc) · 1.34 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
{
"env": {
"node": true,
"browser": true,
"es6": true,
"mocha": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"parserOptions": {
"project": ["tsconfig.json"],
"tsconfigRootDir": "./",
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "eslint-plugin-import", "import"],
"rules": {
"import/no-unresolved": "off",
"import/named": "warn",
"import/namespace": "warn",
"import/no-named-as-default": "off",
"import/export": "warn",
"import/newline-after-import": ["error", {"count": 1}],
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"parent",
"sibling",
"index",
"unknown"
],
"newlines-between": "always",
"warnOnUnassignedImports": true,
"alphabetize": {"order": "asc", "caseInsensitive": true}
}
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": ["error", {"varsIgnorePattern": "^_"}]
}
}