-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.eslintrc.json
56 lines (56 loc) · 1.52 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
//
"@typescript-eslint",
"prettier",
"simple-import-sort",
"import",
"unicorn"
],
"extends": [
//
"vscode-ext",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:unicorn/recommended",
"prettier"
],
"rules": {
"prettier/prettier": [
"warn",
{
"endOfLine": "auto",
"singleQuote": true
}
],
"simple-import-sort/imports": [
"warn",
{
// Default groups, but group 'src' with relative imports
"groups": [["^\\u0000"], ["^@?\\w"], ["^"], ["^src", "^\\."]]
}
],
"simple-import-sort/exports": "warn",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"no-trailing-spaces": "warn",
"eol-last": ["warn", "always"],
// node:protocol imports are supported in Node v16.0.0, v14.18.0.
// VS Code 1.61.0 runs on Node v14.16.0, so this must be disabled for now
"unicorn/prefer-node-protocol": "off",
"unicorn/import-style": "off"
},
"ignorePatterns": [
//
"**/*.d.ts",
"dist/*"
]
}