-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy patheslint.config.mjs
37 lines (36 loc) · 1.09 KB
/
eslint.config.mjs
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
import eslintConfigPrettier from 'eslint-config-prettier'
import vitest from '@vitest/eslint-plugin'
import js from '@eslint/js'
export default [
// js.configs.recommended,
eslintConfigPrettier,
{
plugins: { vitest },
languageOptions: {
globals: {
...vitest.environments.env.globals,
node: true,
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 2024,
},
},
files: ['src/**/*.js', 'test/**/*.js'],
ignores: [
'.yarn/*',
'*config.js',
'**/node_modules/',
'.git/*',
'artifacts/',
'cache/',
'typechain-types/',
'jest-html-reporters-attach/',
'coverage/',
],
rules: {
...vitest.configs.recommended.rules, // you can also use vitest.configs.all.rules to enable all rules
'vitest/max-nested-describe': ['error', { max: 3 }], // you can also modify rules' behavior using option like this
},
},
]