forked from auth0/node-auth0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
56 lines (54 loc) · 1.52 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
module.exports = {
env: {
node: true,
commonjs: true,
es2017: true,
mocha: true,
},
ignorePatterns: ['**/*.mjs'],
extends: [
'eslint:recommended',
'plugin:jsdoc/recommended',
'plugin:node/recommended',
'plugin:promise/recommended',
'plugin:prettier/recommended',
],
plugins: ['jsdoc'],
parserOptions: {
ecmaVersion: 9,
},
rules: {
'arrow-body-style': 'error',
'arrow-parens': 'error',
'arrow-spacing': 'error',
'generator-star-spacing': 'error',
'no-confusing-arrow': 'error',
'no-duplicate-imports': 'error',
'no-restricted-exports': 'error',
'no-restricted-imports': 'error',
'no-useless-computed-key': 'error',
'no-useless-constructor': 'error',
'no-useless-rename': 'error',
'no-var': 'error',
'object-shorthand': 'error',
'prefer-arrow-callback': 'error',
'prefer-const': 'error',
'prefer-destructuring': 'error',
'prefer-numeric-literals': 'error',
'prefer-rest-params': 'error',
'prefer-spread': 'error',
'prefer-template': 'error',
'rest-spread-spacing': 'error',
'sort-imports': 'error',
'symbol-description': 'error',
'template-curly-spacing': 'error',
'yield-star-spacing': 'error',
'jsdoc/require-jsdoc': ['warn', { publicOnly: true }],
'jsdoc/require-returns-description': 'off',
'jsdoc/no-undefined-types': 'off',
'jsdoc/require-param': 'off',
'jsdoc/check-param-names': 'off',
'promise/catch-or-return': 'off',
'promise/always-return': 'off',
},
};