-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
69 lines (60 loc) · 1.73 KB
/
index.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
module.exports = {
plugins: [
'promise',
'import',
'sonarjs',
'optimize-regex',
],
extends: [
'airbnb-base',
'plugin:import-esm/recommended',
'plugin:@eslint-community/eslint-comments/recommended',
'plugin:sonarjs/recommended-legacy',
'plugin:unicorn/recommended',
'plugin:promise/recommended',
],
rules: {
'dot-location': ['error', 'property'],
'@eslint-community/eslint-comments/disable-enable-pair': ['error', { allowWholeFile: true }],
'@eslint-community/eslint-comments/no-unused-disable': 'error',
'func-names': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'import/order': [
'error', {
groups: [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index',
'object',
'type',
],
'newlines-between': 'always-and-inside-groups',
},
],
'linebreak-style': 'off',
'max-len': ['error', 120],
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0, maxBOF: 0 }],
'no-nested-ternary': 'off', // important for usage with unicorn/no-nested-ternary
'no-param-reassign': ['error', { props: false }],
'no-plusplus': 'off',
'no-use-before-define': ['error', { functions: false }],
'optimize-regex/optimize-regex': 'warn',
'promise/always-return': 'off',
'promise/catch-or-return': 'off',
'promise/prefer-await-to-then': 'error',
'promise/prefer-await-to-callbacks': 'error',
semi: ['error', 'never'],
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true,
optionalDependencies: false,
peerDependencies: false,
},
],
},
}