-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
56 lines (56 loc) · 2.28 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
{
"root": true,
"extends": ["@gravity-ui/eslint-config", "@gravity-ui/eslint-config/prettier"],
// These files are generated, so they don't have to be linted
"ignorePatterns": [
"src/autocomplete/databases/*/generated/**/*",
"src/autocomplete/databases/*/grammar/**/*"
],
"plugins": ["filenames", "import"],
"rules": {
"array-callback-return": "off",
"consistent-return": "off",
"no-negated-condition": "off",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/array-type": ["error", {"default": "array"}],
"object-shorthand": "error",
"no-implicit-globals": "off",
"camelcase": "off",
"complexity": "off",
"filenames/match-regex": [2, "^[a-z-0-9\\.]+$", true],
"padding-line-between-statements": [
"error",
{"blankLine": "always", "prev": "function", "next": "*"},
{"blankLine": "always", "prev": "*", "next": "function"},
{"blankLine": "always", "prev": "export", "next": "*"},
{"blankLine": "always", "prev": "*", "next": "export"}
],
"import/no-restricted-paths": [
"error",
{
"zones": [
{
"target": "./src/autocomplete/databases/clickhouse/**/*",
"from": "./src/autocomplete/databases/!(clickhouse)/**/*"
},
{
"target": "./src/autocomplete/databases/mysql/**/*",
"from": "./src/autocomplete/databases/!(mysql)/**/*"
},
{
"target": "./src/autocomplete/databases/postgresql/**/*",
"from": "./src/autocomplete/databases/!(postgresql)/**/*"
},
{
"target": "./src/autocomplete/databases/yql/**/*",
"from": "./src/autocomplete/databases/!(yql)/**/*"
},
{
"target": "./src/autocomplete/databases/redis/**/*",
"from": "./src/autocomplete/databases/!(redis)/**/*"
}
]
}
]
}
}