-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
49 lines (46 loc) · 1 KB
/
eslint.config.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
import globals from 'globals';
import pluginJs from '@eslint/js';
import jsdoc from 'eslint-plugin-jsdoc';
import stylisticJs from '@stylistic/eslint-plugin-js'
import sonarjs from 'eslint-plugin-sonarjs';
export default [
sonarjs.configs.recommended,
{
files: ['**/*.js'],
languageOptions: { globals: globals.node },
plugins: {
'@stylistic/js': stylisticJs,
jsdoc: jsdoc
},
rules: {
'@stylistic/js/indent': ['error', 2],
'consistent-return': [
'error'
],
'no-param-reassign': [
'error',
{
'props': true,
'ignorePropertyModificationsFor': [
'acc',
'accumulator',
'e',
'req',
'request',
'res',
'response'
]
}
],
'quotes': [
'error',
'single',
{
'avoidEscape': true,
'allowTemplateLiterals': true
}
],
}
},
pluginJs.configs.recommended,
];