-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
68 lines (68 loc) · 2 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.eslint.json",
"tsconfigRootDir": "."
},
"ignorePatterns": [
// Adding ignorePatterns here to instruct ESLint to ignore these patterns
"node_modules",
"dist",
"example/**/*", // This pattern should instruct ESLint to ignore everything in the example directory
"**/*.spec.ts",
"__tests__/**/*",
"*.d.ts",
"typings"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:jest/recommended"
],
"plugins": [
"prettier",
"@typescript-eslint",
"promise",
"jest",
"simple-import-sort",
"import"
],
"rules": {
"prettier/prettier": "warn", // Use the "warn" severity
"@typescript-eslint/no-var-requires": "off",
"arrow-body-style": "off",
"prefer-arrow-callback": "off",
"prefer-const": "warn",
"no-var": "warn",
"no-throw-literal": "off",
"no-unreachable": "warn",
"no-prototype-builtins": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"promise/always-return": "warn",
"promise/no-return-wrap": "warn",
"promise/param-names": "warn",
"promise/catch-or-return": ["warn", { "allowFinally": true }],
"promise/no-native": "off",
"promise/no-nesting": "warn",
"promise/no-promise-in-callback": "warn",
"promise/no-callback-in-promise": "warn",
"promise/avoid-new": "off",
"promise/no-new-statics": "warn",
"promise/no-return-in-finally": "warn",
"promise/valid-params": "warn",
"jest/no-disabled-tests": "off",
"jest/no-commented-out-tests": "off",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/explicit-module-boundary-types": "error"
},
"env": {
"node": true,
"jest": true
}
}