forked from maxGraph/maxGraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
38 lines (38 loc) · 1.29 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
{
"root": true,
"env": {
"browser": true,
"es2020": true
},
"plugins": [
"import"
],
"extends": [
"eslint:recommended",
// TODO configure import with more rules
// "plugin:import/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"rules": {
"no-misleading-character-class": "warn",
"no-dupe-else-if": "warn",
"no-warning-comments": "off", // we have to many TODO/FIXME and they overwhelm the reports
"import/no-absolute-path": "warn",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-this-alias": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-duplicate-enum-values": "off", // check the impact of changing enum values if we want to enable this
"@typescript-eslint/no-unused-vars": "off",
"no-restricted-syntax": [
"error",
// ban const enums
{
"selector": "TSEnumDeclaration[const=true]",
"message": "Const enums are forbidden to increase interoperability. Use regular enums instead."
}
],
"no-console": "error"
}
}