-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
48 lines (47 loc) · 1 KB
/
.eslintrc.cjs
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
/*!
* Gulp Stylelint (v3.0.0): .eslintrc.cjs
* Copyright (c) 2023-24 Adorade (https://github.com/adorade/gulp-stylelint-esm)
* License under MIT
* ========================================================================== */
module.exports = {
parser: '@babel/eslint-parser',
env: {
node: true,
es6: true
},
extends: 'stylelint',
parserOptions: {
ecmaVersion: 2024,
requireConfigFile: false,
sourceType: 'module',
},
rules: {
'prefer-object-spread': 'off',
'n/prefer-global/process': ['error', 'always']
},
overrides: [
{
files: [
'src/*.mjs',
'test/*.test.js'
],
rules: {
'@stylistic/js/semi': ['error', 'always'],
}
},
{
files: [
'test/*.test.js',
'test/*.spec.js',
'bin/*.spec.js'
],
env: {
jest: true
},
rules: {
'@stylistic/js/arrow-parens': ['error', 'always'],
'@stylistic/js/comma-dangle': ['error', 'never'],
}
}
]
}