forked from scalars/grapi
/
.eslintrc
71 lines (71 loc) · 2.58 KB
/
.eslintrc
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
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"simple-import-sort"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"ignorePatterns": ["lib", "node_modules", "types.d.ts", "index.d.ts"],
"root": true,
"rules": {
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"object-curly-newline": ["error", {
"ImportDeclaration": {
"multiline": true
},
"ExportDeclaration": {
"multiline": true,
"minProperties": 3
}
}],
"no-useless-escape": "off",
"no-console": [ "error", { "allow": [ "error" ] } ],
"no-tabs": "off",
"no-mixed-spaces-and-tabs": "error",
"semi": [ 2, "never" ],
"@typescript-eslint/no-unused-vars": [ "error", { "argsIgnorePattern": "^_" } ],
"@typescript-eslint/restrict-plus-operands": "error",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/indent": [ "error", 4, {
"FunctionDeclaration": { "parameters": "first" },
"FunctionExpression": { "parameters": "first" }
} ],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/no-use-before-define": [ "error", {
"variables": true,
"functions": true
} ],
"quotes": [ "error", "single", {
"allowTemplateLiterals": true
} ],
"array-bracket-spacing": [ "error", "always" ],
"comma-spacing": [ "error", { "before": false, "after": true } ],
"object-curly-spacing": [ "error", "always" ],
"block-spacing": [ "error", "always" ],
"space-in-parens": [ "error", "always" ],
"max-lines": [ "error", { "max": 500, "skipBlankLines": true, "skipComments": true } ],
"max-lines-per-function": [ "error", 70 ],
"space-infix-ops": [ "error", { "int32Hint": true } ]
},
"overrides": [
{
"files": ["**/*.spec.ts", "**/testsuites/*"],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"max-lines": "off",
"max-lines-per-function": "off"
}
}
]
}