-
Notifications
You must be signed in to change notification settings - Fork 91
/
.eslintrc.js
70 lines (65 loc) · 1.71 KB
/
.eslintrc.js
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
/* eslint-env node */
/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: [
"@typescript-eslint",
"compat",
"es"
],
extends: [
"eslint:recommended",
"plugin:compat/recommended",
"plugin:es/restrict-to-es2015"
],
settings: {
polyfills: [
"Promise",
"XRWebGLLayer"
]
},
overrides: [{
files: [
"./**/*.{ts,tsx}"
],
extends: [
"plugin:@typescript-eslint/recommended"
],
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/member-ordering": ["error", {
"default": [
// Index signature
"signature",
"public-static-method",
"protected-static-method",
"private-static-method",
"constructor",
"public-abstract-method",
"protected-abstract-method",
"private-abstract-method",
"public-instance-method",
"protected-instance-method",
"private-instance-method"
]
}]
}
}],
rules: {
quotes: ["error", "double"],
semi: ["error", "always"],
"es/no-optional-chaining": "off",
"es/no-rest-spread-properties": "off",
"es/no-async-functions": "off",
"es/no-nullish-coalescing-operators": "off",
"es/no-object-values": "off",
"no-empty-pattern": "off"
}
};