2
2
3
3
const globals = require ( 'globals' )
4
4
const { FlatCompat } = require ( '@eslint/eslintrc' )
5
+ const eslintPluginEslintPlugin = require ( 'eslint-plugin-eslint-plugin/configs/all' )
6
+ const eslintPluginPrettierRecommended = require ( 'eslint-plugin-prettier/recommended' )
7
+ const eslintPluginUnicorn = require ( 'eslint-plugin-unicorn' )
5
8
6
9
const eslintrc = new FlatCompat ( {
7
10
baseDirectory : __dirname
@@ -25,14 +28,13 @@ module.exports = [
25
28
'docs/.vitepress/cache'
26
29
]
27
30
} ,
28
- ...eslintrc . plugins ( 'eslint-plugin' , 'prettier' , 'unicorn' ) ,
31
+ eslintPluginEslintPlugin ,
32
+ eslintPluginUnicorn . configs [ 'flat/recommended' ] ,
29
33
...eslintrc . extends (
30
- 'plugin:eslint-plugin/all' ,
31
- 'prettier' ,
32
34
'plugin:node-dependencies/recommended' ,
33
- 'plugin:jsonc/recommended-with-jsonc' ,
34
- 'plugin:unicorn/recommended'
35
+ 'plugin:jsonc/recommended-with-jsonc'
35
36
) ,
37
+ eslintPluginPrettierRecommended ,
36
38
{
37
39
plugins : {
38
40
internal : {
@@ -203,10 +205,6 @@ module.exports = [
203
205
ecmaVersion : 'latest' ,
204
206
sourceType : 'module' ,
205
207
parser : require ( 'vue-eslint-parser' )
206
- // parserOptions: {
207
- // ecmaVersion: 'latest',
208
- // sourceType: 'module'
209
- // }
210
208
}
211
209
} ,
212
210
{
0 commit comments