-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
47 lines (47 loc) · 1.18 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
module.exports = {
root: true,
env: {
es2021: true,
node: true,
browser: true,
},
globals: {
it: 'readonly',
expect: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
tsconfigRootDir: __dirname,
project: ['./jsconfig.json'],
},
extends: [
'plugin:jsdoc/recommended',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'prettier',
],
plugins: ['@typescript-eslint'],
rules: {
'jsdoc/require-param-description': 0,
'jsdoc/require-property-description': 0,
'jsdoc/require-returns-description': 0,
'jsdoc/require-param-type': 1,
'jsdoc/no-undefined-types': 0,
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'typescript-eslint/await-thenable': 'off',
},
settings: {
jsdoc: {
preferredTypes: {
'*': false,
},
},
},
}