This repository has been archived by the owner on Oct 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.eslintrc.json
72 lines (72 loc) · 2.2 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
64
65
66
67
68
69
70
71
72
{
"env": {
"node": true,
"es6": true,
"mocha": true
},
"plugins": ["import", "prettier", "@typescript-eslint", "promise"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "tsconfig.eslint.json"
},
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
],
"ignorePatterns": ["*.d.ts"],
"rules": {
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "ignoreRestSiblings": true, "args": "none" }
],
"@typescript-eslint/no-useless-constructor": "error",
"array-callback-return": "off",
"class-methods-use-this": "off",
"consistent-return": "off",
"eqeqeq": "error",
"import/extensions": ["error", "ignorePackages", { "ts": "never" }],
"import/no-extraneous-dependencies": "error",
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"max-classes-per-file": "off",
"no-console": "warn",
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-plusplus": "off",
"no-restricted-syntax": "off",
"no-useless-constructor": "off",
"no-var": "error",
"prettier/prettier": "warn",
"promise/always-return": "error",
"promise/avoid-new": "error",
"promise/catch-or-return": "error",
"promise/no-callback-in-promise": "error",
"promise/no-native": "off",
"promise/no-nesting": "error",
"promise/no-new-statics": "error",
"promise/no-promise-in-callback": "error",
"promise/no-return-in-finally": "error",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"promise/prefer-await-to-callbacks": "error",
"promise/prefer-await-to-then": "error",
"promise/valid-params": "error",
"radix": "off"
},
"overrides": [
{
"files": ["**/*.spec.ts"],
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
]
}