-
Notifications
You must be signed in to change notification settings - Fork 82
/
.eslintrc.json
66 lines (66 loc) · 2.68 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"ignorePatterns": [
"__mocks__/*",
"src/contracts/*",
"src/ecsScene/*",
"scripts/*.cjs",
"src/modules/project/export.ts",
"src/modules/analytics/sentry.ts",
"src/modules/editor/base64.ts",
"package.json",
"package-lock.json",
"public/config/*",
"src/setupProxy.js"
],
"plugins": ["@typescript-eslint"],
"extends": ["eslint:recommended", "prettier"],
"env": {
"browser": true,
"es6": true,
"jest": true
},
"rules": {
"@typescript-eslint/ban-types": "error",
"@typescript-eslint/ban-tslint-comment": "error",
"@typescript-eslint/quotes": ["error", "single", { "avoidEscape": true }],
"@typescript-eslint/no-misused-promises": ["error", { "checksVoidReturn": false }]
},
"parserOptions": {
"project": ["./tsconfig.json"]
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended-requiring-type-checking", "prettier"],
"rules": {
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_", "ignoreRestSiblings": true }],
"@typescript-eslint/no-unsafe-assignment": "off", // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/no-unsafe-assignment/
"@typescript-eslint/no-unsafe-call": "off", // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/no-unsafe-call/
"@typescript-eslint/no-unsafe-member-access": "off", // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/no-unsafe-member-access/
"@typescript-eslint/no-unsafe-argument": "off", // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/no-unsafe-argument/
"@typescript-eslint/no-explicit-any": "off", // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/no-explicit-any
"@typescript-eslint/no-non-null-assertion": "off", // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/no-non-null-assertion
"@typescript-eslint/no-unsafe-enum-comparison": "off"
},
"parserOptions": {
"project": ["./tsconfig.json"]
}
},
{
"files": ["*.spec.ts"],
"rules": {
"@typescript-eslint/unbound-method": "off"
}
},
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
]
}