1
1
import globals from 'globals'
2
- import { defineConfig } from 'eslint/config'
3
- import pluginJs from '@eslint/js'
4
- import pluginTs from 'typescript-eslint'
5
- import pluginTsParser from '@typescript-eslint/parser'
2
+ import { defineConfig , globalIgnores } from 'eslint/config'
3
+ import js from '@eslint/js'
4
+ import tseslint from 'typescript-eslint'
6
5
import pluginCypress from 'eslint-plugin-cypress'
7
6
8
7
export default defineConfig ( [
9
- {
10
- ignores : [ 'build/' ] ,
11
- } ,
8
+ globalIgnores ( [ 'build/' ] ) ,
12
9
{
13
10
files : [ '**/*.ts' ] ,
14
- languageOptions : {
15
- parser : pluginTsParser ,
16
- } ,
17
- } ,
18
- pluginJs . configs . recommended ,
19
- pluginTs . configs . recommended ,
20
- pluginCypress . configs . recommended ,
21
- {
11
+ extends : [
12
+ js . configs . recommended ,
13
+ tseslint . configs . recommended ,
14
+ pluginCypress . configs . recommended ,
15
+ ] ,
22
16
rules : {
23
- // TO-DO review violations of disabled rules
17
+ // TODO: review violations of disabled rules
24
18
'no-empty' : 'off' ,
25
19
'no-prototype-builtins' : 'off' ,
26
20
'no-undef' : 'off' ,
@@ -38,9 +32,7 @@ export default defineConfig([
38
32
'@typescript-eslint/triple-slash-reference' : 'off' ,
39
33
} ,
40
34
languageOptions : {
41
- globals : {
42
- ...globals . node ,
43
- } ,
44
- }
45
- }
35
+ globals : globals . node ,
36
+ } ,
37
+ } ,
46
38
] )
0 commit comments