forked from SebastiaanYN/Open-SourceBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
60 lines (56 loc) · 1.62 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
module.exports = {
env: {
node: true,
es6: true,
},
extends: [
'airbnb-base',
'plugin:prettier/recommended',
],
parserOptions: {
ecmaVersion: 2019,
},
plugins: [
'prettier',
'import',
'jsdoc',
'eslint-comments',
],
rules: {
// overrides
'no-console': 'off',
'class-methods-use-this': 'off',
'require-await': 'error',
'no-restricted-syntax': 'off',
'prefer-destructuring': 'off',
'linebreak-style': 'off',
// prettier
'prettier/prettier': 'error',
// import
'import/no-cycle': 'off',
'import/extensions': ['error', 'always', { ignorePackages: true }],
// jsdoc
'jsdoc/check-alignment': 'error',
'jsdoc/check-examples': 'error',
'jsdoc/check-indentation': 'error',
'jsdoc/check-param-names': 'error',
'jsdoc/check-syntax': 'error',
'jsdoc/check-tag-names': 'error',
'jsdoc/check-types': 'error',
'jsdoc/newline-after-description': 'error',
'jsdoc/no-undefined-types': 'error',
'jsdoc/require-hyphen-before-param-description': 'error',
'jsdoc/require-param-description': 'error',
'jsdoc/require-param-name': 'error',
'jsdoc/require-param': 'error',
'jsdoc/require-returns-description': 'error',
'jsdoc/valid-types': 'error',
// eslint-comments
'eslint-comments/disable-enable-pair': ['error', { allowWholeFile: true }],
'eslint-comments/no-aggregating-enable': 'error',
'eslint-comments/no-duplicate-disable': 'error',
'eslint-comments/no-unlimited-disable': 'error',
'eslint-comments/no-unused-disable': 'error',
'eslint-comments/no-unused-enable': 'error',
},
};