-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
57 lines (54 loc) · 1.16 KB
/
eslint.config.js
File metadata and controls
57 lines (54 loc) · 1.16 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
// Import promise from 'eslint-plugin-promise';
import security from 'eslint-plugin-security';
import fiveapp from 'eslint-config-5app';
import prettier from 'eslint-config-prettier/flat';
import n from 'eslint-plugin-n';
import globals from 'globals';
export default [
n.configs['flat/recommended'],
...fiveapp,
prettier,
/*
* ...,
*/
{
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
...globals.node,
},
},
plugins: {
security,
},
rules: {
// "no-negated-condition": 2,
'no-unused-expressions': 2,
'prefer-named-capture-group': 2,
// "prefer-destructuring": 2,
'arrow-body-style': [2, 'as-needed'],
'capitalized-comments': 2,
'no-empty-function': 2,
'no-param-reassign': 0,
'max-params': [2, {max: 4}],
'multiline-comment-style': [2, 'starred-block'],
'prefer-promise-reject-errors': 2,
// "promise/prefer-await-to-then": 2,
'n/no-unsupported-features/node-builtins': 0,
'security/detect-unsafe-regex': 2,
},
},
{
files: ['test/**/*.js'],
languageOptions: {
globals: {
...globals.mocha,
Dare: 'readonly',
},
},
rules: {
'quote-props': 0,
},
},
];