1
1
import { join } from 'node:path' ;
2
- import { includeIgnoreFile } from " @eslint/compat" ;
2
+ import { includeIgnoreFile } from ' @eslint/compat' ;
3
3
import eslintPluginJs from '@eslint/js' ;
4
+ import importPlugin from 'eslint-plugin-import' ;
4
5
import jestPlugin from 'eslint-plugin-jest' ;
5
- import jsdocPlugin from " eslint-plugin-jsdoc" ;
6
- import nodePlugin from " eslint-plugin-n" ;
7
- import prettierPlugin from " eslint-plugin-prettier/recommended" ; // per docs prettier/recommended includes eslint-config-prettier
6
+ import jsdocPlugin from ' eslint-plugin-jsdoc' ;
7
+ import nodePlugin from ' eslint-plugin-n' ;
8
+ import prettierPlugin from ' eslint-plugin-prettier/recommended' ; // per docs prettier/recommended includes eslint-config-prettier
8
9
9
10
export default [
10
- includeIgnoreFile ( join ( process . cwd ( ) , " .gitignore" ) ) ,
11
+ includeIgnoreFile ( join ( process . cwd ( ) , ' .gitignore' ) ) ,
11
12
jestPlugin . configs [ 'flat/recommended' ] ,
12
13
jsdocPlugin . configs [ 'flat/recommended' ] ,
13
14
nodePlugin . configs [ 'flat/recommended' ] ,
15
+ importPlugin . flatConfigs . recommended ,
14
16
eslintPluginJs . configs . recommended ,
15
17
prettierPlugin ,
16
18
{
@@ -19,11 +21,12 @@ export default [
19
21
globals : {
20
22
generateFixture : 'readonly' ,
21
23
mockObjectProperty : 'readonly' ,
22
- setMockResourceFunctions : 'readonly' ,
24
+ setMockResourceFunctions : 'readonly'
23
25
} ,
24
26
ecmaVersion : 2022
25
27
} ,
26
28
rules : {
29
+ // '@stylistic/quotes': ['error', 'single'],
27
30
'arrow-parens' : [ 'error' , 'as-needed' ] ,
28
31
'comma-dangle' : 0 ,
29
32
'consistent-return' : 1 ,
@@ -44,16 +47,16 @@ export default [
44
47
'warn' ,
45
48
'always' ,
46
49
{
47
- ' count' : 0 ,
48
- ' applyToEndTag' : false ,
49
- ' startLines' : 1
50
+ count : 0 ,
51
+ applyToEndTag : false ,
52
+ startLines : 1
50
53
}
51
54
] ,
52
55
'max-len' : [
53
56
'error' ,
54
57
{
55
- ' code' : 240 ,
56
- ' ignoreUrls' : true
58
+ code : 240 ,
59
+ ignoreUrls : true
57
60
}
58
61
] ,
59
62
'n/no-unsupported-features/es-syntax' : 1 ,
0 commit comments