1
- const eslintJs = require ( '@eslint/js' )
2
- const github = require ( 'eslint-plugin-github' )
3
- const globals = require ( 'globals' )
4
- const pluginJest = require ( 'eslint-plugin-jest' )
1
+ import eslintJs from '@eslint/js'
2
+ import github from 'eslint-plugin-github'
3
+ import globals from 'globals'
4
+ import pluginJest from 'eslint-plugin-jest'
5
5
6
- module . exports = [
6
+ const config = [
7
7
github . getFlatConfigs ( ) . recommended ,
8
8
eslintJs . configs . recommended ,
9
9
{
@@ -17,7 +17,7 @@ module.exports = [
17
17
} ,
18
18
} ,
19
19
rules : {
20
- 'importPlugin /no-commonjs' : 'off' ,
20
+ 'import /no-commonjs' : 'off' ,
21
21
'no-shadow' : 'off' ,
22
22
'no-unused-vars' : [
23
23
'error' ,
@@ -37,16 +37,11 @@ module.exports = [
37
37
} ,
38
38
} ,
39
39
{
40
- files : [ '.eslint.config.js' , '. markdownlint-cli2.cjs'] ,
40
+ files : [ '.markdownlint-cli2.cjs' ] ,
41
41
rules : {
42
- 'filenames/match-regex' : 'off' ,
43
42
'github/filenames-match-regex' : 'off' ,
44
43
} ,
45
44
} ,
46
- {
47
- files : [ 'src/url.js' , 'src/rules/new-color-css-vars.js' ] ,
48
- rules : {
49
- 'importPlugin/extensions' : 'off' ,
50
- } ,
51
- } ,
52
45
]
46
+
47
+ export default config
0 commit comments