forked from zone-eu/mx-connect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
78 lines (76 loc) · 2.32 KB
/
eslint.config.js
File metadata and controls
78 lines (76 loc) · 2.32 KB
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
70
71
72
73
74
75
76
77
78
'use strict';
const globals = require('globals');
const js = require('@eslint/js');
const prettier = require('eslint-config-prettier');
module.exports = [
js.configs.recommended,
prettier,
{
languageOptions: {
ecmaVersion: 2020,
sourceType: 'script',
globals: {
...globals.node,
...globals.es6,
it: true,
describe: true,
beforeEach: true,
afterEach: true
}
},
rules: {
'for-direction': 'error',
'no-await-in-loop': 'off',
'no-div-regex': 'error',
strict: ['error', 'global'],
eqeqeq: 'error',
'dot-notation': 'error',
curly: 'error',
'no-fallthrough': 'error',
'quote-props': ['error', 'as-needed'],
'no-unused-expressions': [
'error',
{
allowShortCircuit: true
}
],
'no-unused-vars': 'error',
'no-new': 'error',
'new-cap': 'error',
'no-eval': 'error',
'no-invalid-this': 'error',
radix: ['error', 'always'],
'no-use-before-define': ['error', 'nofunc'],
'no-regex-spaces': 'error',
'no-empty': 'error',
'no-duplicate-case': 'error',
'no-empty-character-class': 'error',
'no-redeclare': [
'error',
{
builtinGlobals: true
}
],
'block-scoped-var': 'error',
'no-sequences': 'error',
'no-throw-literal': 'error',
'no-useless-call': 'error',
'no-useless-concat': 'error',
'no-void': 'error',
yoda: 'error',
'no-undef': 'error',
'no-var': 'error',
'no-bitwise': 'error',
'no-lonely-if': 'error',
'no-mixed-spaces-and-tabs': 'error',
'arrow-body-style': ['error', 'as-needed'],
'arrow-parens': ['error', 'as-needed'],
'prefer-arrow-callback': 'error',
'object-shorthand': 'error',
'prefer-spread': 'error'
}
},
{
ignores: ['node_modules/**']
}
];