forked from nodejs/citgm
-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslint.config.js
39 lines (38 loc) · 861 Bytes
/
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
import js from '@eslint/js';
import prettier from 'eslint-config-prettier';
import globals from 'globals';
export default [
js.configs.recommended,
prettier,
{
languageOptions: {
globals: {
...globals.node
}
},
rules: {
'capitalized-comments': [
'error',
'always',
{ ignoreConsecutiveComments: true }
],
eqeqeq: ['error', 'always'],
'no-template-curly-in-string': 'error',
'no-useless-escape': 'error',
'no-var': 'error',
'padding-line-between-statements': [
'error',
{ blankLine: 'always', prev: 'directive', next: '*' }
],
'prefer-arrow-callback': 'error',
'prefer-template': 'error',
strict: 'error'
}
},
{
files: ['test/fixtures/**'],
languageOptions: {
sourceType: 'commonjs'
}
}
];