forked from Railgun-Community/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
95 lines (95 loc) · 2.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
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
{
"env": {
"browser": true,
"es2020": true,
"node": true
},
"extends": [
"airbnb-base",
"prettier",
"plugin:@typescript-eslint/recommended"
],
"globals": {
"Optional": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"project": ["./tsconfig.json", "./tsconfig.test.json"]
},
"plugins": [
"@typescript-eslint",
"es",
"no-only-tests"
],
"rules": {
"import/prefer-default-export": 0,
"import/extensions": [
2,
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"no-shadow": 0,
"no-return-await": 0,
"@typescript-eslint/no-shadow": 1,
"no-useless-constructor": 0,
"no-empty-function": 0,
"no-unused-vars": 0,
"no-bitwise": 0,
"camelcase": 0,
"@typescript-eslint/no-unused-vars": 1,
"no-promise-executor-return": 0,
"no-continue": 0,
"no-use-before-define": 0,
"arrow-body-style": 0,
"es/no-nullish-coalescing-operators": 2,
"es/no-optional-chaining": 2,
"@typescript-eslint/switch-exhaustiveness-check": 2,
"@typescript-eslint/no-inferrable-types": 0,
"@typescript-eslint/ban-ts-comment": 1,
"@typescript-eslint/no-explicit-any": 1,
"@typescript-eslint/no-empty-function": 0,
"default-case": 0,
"@typescript-eslint/no-unsafe-call": 1,
"@typescript-eslint/no-unsafe-member-access": 1,
"@typescript-eslint/no-unsafe-argument": 1,
"@typescript-eslint/no-unsafe-assignment": 1,
"@typescript-eslint/no-non-null-assertion": 2,
"@typescript-eslint/no-floating-promises": 2,
"import/no-extraneous-dependencies": 0,
"import/order": 1,
"no-warning-comments": 1,
"@typescript-eslint/no-duplicate-enum-values": 1,
"no-only-tests/no-only-tests": 1
},
"ignorePatterns": [
"dist/*"
],
"settings": {
"import/extensions": [
".js",
".ts",
".d.ts"
],
"import/parsers": {
"@typescript-eslint/parser": [
".ts",
".d.ts"
]
},
"import/resolver": {
"node": {
"extensions": [
".js",
".ts",
".d.ts"
]
}
}
}
}