-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
74 lines (72 loc) · 2.24 KB
/
.eslintrc.js
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
/* eslint-disable @typescript-eslint/naming-convention */
module.exports = {
"env": {
"es6": true,
"node": true
},
"extends": [
"prettier",
'eslint:recommended',
"plugin:jsdoc/recommended-error"
],
"parser": "@typescript-eslint/parser",
"overrides": [
// only parse with typescript on typescript files
{
"files": ['*.ts', '*.tsx'], // Your TypeScript files extension
"extends": [
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
"parserOptions": {
"project": true,
"tsconfigRootDir": __dirname,
},
},
],
"plugins": [
"@typescript-eslint",
"jsdoc"
],
"root": true,
"rules": {
"@typescript-eslint/member-delimiter-style": [
"warn",
{
"multiline": {
"delimiter": "none",
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/no-unused-expressions": "warn",
'@typescript-eslint/no-explicit-any': "error",
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-non-null-assertion': "error",
"@typescript-eslint/strict-boolean-expressions": ["error",{
allowString: false,
allowNumber: false,
allowNullableObject: false,
allowNullableEnum: false,
}],
"@typescript-eslint/no-unused-vars": ["warn", {
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_",
}],
"semi": [ "error", "never" ],
"curly": "warn",
"eqeqeq": [ "error", "always" ],
"no-redeclare": "warn",
"no-throw-literal": "warn",
"no-unused-expressions": "warn",
"jsdoc/require-param-type": 0,
"jsdoc/require-property-type": 0,
"jsdoc/require-returns-type": 0,
}
}