-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
executable file
·35 lines (35 loc) · 1.15 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
{
"root": true,
"env": {
"node": true
},
"ignorePatterns": ["src/onnx-protobuf/**/*"],
"parserOptions": {
"parser": "@typescript-eslint/parser"
},
"plugins": [
"@typescript-eslint",
"import",
"unused-imports"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/indent": ["error", 4, {"SwitchCase": 1}],
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/quotes": ["error", "single"],
"@typescript-eslint/semi": ["error", "always"],
"import/order": ["warn", {
"alphabetize": {"order": "asc", "caseInsensitive": true},
"groups": ["builtin", "external", "internal", "parent", "sibling", "index", "object", "type"],
"newlines-between": "always",
"pathGroupsExcludedImportTypes": ["builtin"]
}],
"unused-imports/no-unused-imports": "warn",
"no-constant-condition": ["error", {"checkLoops": false}],
"no-unused-vars": "off"
}
}