-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
49 lines (49 loc) · 1.51 KB
/
.eslintrc.cjs
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
// eslint-disable-next-line no-undef
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
// eslint-disable-next-line no-undef
tsconfigRootDir: __dirname,
project: ['./tsconfig.json', './tsconfig.eslint.json'],
},
plugins: [
'@typescript-eslint',
'jest',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:@typescript-eslint/strict',
'plugin:jest/recommended',
],
rules: {
"semi": ["error", "always"],
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": false
}
],
"@typescript-eslint/restrict-template-expressions": [
"error",
{
"allowAny": true
}
],
"@typescript-eslint/consistent-indexed-object-style": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/no-this-alias": "off",
// note you must disable the base rule as it can report incorrect errors
"dot-notation": "off",
"@typescript-eslint/dot-notation": ["error", {
allowPrivateClassPropertyAccess: true,
allowProtectedClassPropertyAccess: true,
allowIndexSignaturePropertyAccess: true,
}],
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": "off",
}
};