-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
46 lines (46 loc) · 1.21 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
{
"env": {
"browser": false,
"es2021": true,
"es2019": true,
"mocha": true,
"node": true
},
"plugins": ["@typescript-eslint", "simple-import-sort", "prettier", "import"],
"extends": [
"standard",
"plugin:prettier/recommended",
"plugin:node/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
}
}
},
"rules": {
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"@typescript-eslint/no-unused-vars": "warn",
"node/no-unsupported-features/es-syntax": ["warn", { "ignores": ["modules"] }],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"node/no-missing-import": "off",
"import/no-unresolved": "warn",
"node/no-unpublished-import": "off",
"node/no-extraneous-import": "off"
}
}