-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
44 lines (43 loc) · 951 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
40
41
42
43
44
const jest = require('eslint-plugin-jest')
const babel = require('@babel/eslint-parser')
// eslint.config.js
module.exports = [
{
...require('@eslint/js').configs.recommended,
ignores: [
'!.*',
'**/assets/.*',
'**/node_modules/.*',
'**/dist/.*',
'**/coverage/.*',
'*.json',
'**/.git/.*'
],
rules: {
camelcase: 'off',
'eslint-comments/no-use': 'off',
'eslint-comments/no-unused-disable': 'off',
'import/no-commonjs': 'off',
'import/no-namespace': 'off',
'no-console': 'off',
'no-unused-vars': 'warn',
semi: 'off'
},
plugins: {
jest
},
languageOptions: {
ecmaVersion: 2023,
parser: babel,
parserOptions: {
ecmaVersion: 2023,
requireConfigFile: false,
babelOptions: {
babelrc: false,
configFile: false,
presets: ['jest']
}
}
}
}
]