forked from jehy/telegram-test-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
63 lines (63 loc) · 1.88 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json"
},
"env": {
"browser": false,
"node": true,
"mocha": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:sonarjs/recommended",
"airbnb-base"
],
"plugins": ["@typescript-eslint", "standard", "sonarjs", "node", "promise"],
"rules": {
"node/exports-style": ["warn", "module.exports"],
"node/prefer-promises/fs": "warn",
"node/prefer-promises/dns": "error",
"promise/catch-or-return": [
"error",
{ "allowFinally": true, "terminationMethod": ["catch", "asCallback"] }
],
"promise/no-return-in-finally": ["error"],
"strict": ["error", "global"],
"sonarjs/cognitive-complexity": ["error", 30],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": ["src/test/**.ts"]
}
],
"no-mixed-operators": "off",
"max-classes-per-file": "off",
"max-len": ["error", 120],
"func-names": "off",
"prefer-destructuring": "warn",
"no-plusplus": "off",
"arrow-spacing": "off",
"object-curly-spacing": "off",
"brace-style": ["warn", "1tbs", { "allowSingleLine": true }],
"prefer-const": "warn",
"object-shorthand": "warn",
"no-param-reassign": "warn",
"no-console": "error",
"linebreak-style": ["error", "unix"],
"no-unused-vars": [
"warn",
{
"argsIgnorePattern": "_",
"varsIgnorePattern": "_"
}
],
"import/extensions": "off",
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/consistent-type-imports": ["error", { "prefer": "type-imports" }],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-confusing-void-expression": ["error", { "ignoreArrowShorthand": true }]
}
}