-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslint.json
116 lines (116 loc) · 3.14 KB
/
eslint.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"env": {
"mocha": true
},
"extends": ["airbnb-typescript/base", "plugin:prettier/recommended"],
"ignorePatterns": ["node_modules/", "**/*.js"],
"overrides": [
{
"files": ["src/**/*.spec.ts", "src/tests/**/*.ts"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off"
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": [
"prettier",
"unicorn",
"chai-friendly",
"import",
"unused-imports",
"no-only-tests",
"eslint-plugin-promise"
],
"rules": {
"@typescript-eslint/array-type": [
"error",
{
"default": "array"
}
],
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-types": "error",
"@typescript-eslint/consistent-indexed-object-style": ["error", "index-signature"],
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/explicit-member-accessibility": [
"error",
{
"accessibility": "explicit"
}
],
"@typescript-eslint/naming-convention": [
"error",
{
"custom": {
"match": false,
"regex": "^I[A-Z]"
},
"format": ["PascalCase"],
"selector": "interface"
}
],
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": false
}
],
"@typescript-eslint/no-redeclare": ["error"],
"@typescript-eslint/no-require-imports": ["error"],
"@typescript-eslint/no-this-alias": ["error"],
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/prefer-enum-initializers": ["error"],
"@typescript-eslint/prefer-function-type": ["error"],
"@typescript-eslint/prefer-includes": ["error"],
"@typescript-eslint/quotes": ["error", "double"],
"@typescript-eslint/return-await": ["error", "always"],
"@typescript-eslint/semi": ["error"],
"chai-friendly/no-unused-expressions": 2,
"class-methods-use-this": "off",
"eol-last": "error",
"import/extensions": "off",
"import/no-cycle": "off",
"import/no-duplicates": "off",
"import/no-extraneous-dependencies": "off",
"import/order": "off",
"import/prefer-default-export": "off",
"no-console": "off",
"no-empty-function": "off",
"no-empty-interface": "off",
"no-empty-pattern": "off",
"no-multiple-empty-lines": "error",
"no-only-tests/no-only-tests": "error",
"no-trailing-spaces": "error",
"no-underscore-dangle": "off",
"no-useless-constructor": "off",
"object-literal-sort-keys": "off",
"arrow-body-style": ["error", "as-needed"],
"object-shorthand": ["error", "always"],
"ordered-imports": "off",
"promise/prefer-await-to-then": "error",
"unicorn/filename-case": [
"error",
{
"case": "kebabCase"
}
],
"unused-imports/no-unused-imports": "error"
},
"settings": {
"import/resolver": {
"typescript": {
"project": ["tsconfig.json"]
}
}
}
}