-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
47 lines (42 loc) · 1.25 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
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 12,
sourceType: 'module'
},
extends: ['eslint:recommended', 'prettier'],
env: {
es2021: true,
node: true
},
rules: {
'consistent-return': 'error',
'no-console': 'warn',
'no-case-declarations': 'off',
'no-self-compare': 'error',
'no-template-curly-in-string': 'error',
'no-unreachable-loop': 'error',
'no-alert': 'error',
'no-bitwise': ['error', { allow: ['~'] }],
'no-empty': 'error',
'no-implicit-globals': ['error'],
'no-inline-comments': 'error',
'no-mixed-operators': 'error',
'no-multi-assign': 'error',
'no-return-assign': 'error',
'no-return-await': 'error',
'require-await': 'error',
'no-invalid-this': 'error',
'jsdoc/check-alignment': 1,
'jsdoc/check-param-names': 1,
'jsdoc/check-property-names': 1,
'jsdoc/check-tag-names': 1,
'jsdoc/check-types': 1,
'jsdoc/empty-tags': 1,
'jsdoc/newline-after-description': 1,
'jsdoc/no-bad-blocks': 1,
'jsdoc/no-multi-asterisks': 1,
'jsdoc/require-throws': 1
},
plugins: ['jsdoc']
};