File tree 2 files changed +4
-8
lines changed
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 4
4
"use strict"
5
5
6
6
const js = require ( "@eslint/js" )
7
- const { FlatCompat } = require ( "@eslint/eslintrc" )
8
7
const globals = require ( "globals" )
9
8
const nodeRecommended = require ( "eslint-plugin-n/configs/recommended-script" )
10
-
11
- const compat = new FlatCompat ( {
12
- baseDirectory : __dirname ,
13
- recommendedConfig : js . configs . recommended ,
14
- } )
9
+ const eslintPluginConfig = require ( "eslint-plugin-eslint-plugin/configs/recommended" )
10
+ const prettierConfig = require ( "eslint-config-prettier" )
15
11
16
12
module . exports = [
17
13
{
@@ -29,7 +25,8 @@ module.exports = [
29
25
} ,
30
26
js . configs . recommended ,
31
27
nodeRecommended ,
32
- ...compat . extends ( "plugin:eslint-plugin/recommended" , "prettier" ) ,
28
+ eslintPluginConfig ,
29
+ prettierConfig ,
33
30
{ rules : { "eslint-plugin/require-meta-docs-description" : "error" } } ,
34
31
{
35
32
// these messageIds were used outside
Original file line number Diff line number Diff line change 25
25
"semver" : " ^7.5.3"
26
26
},
27
27
"devDependencies" : {
28
- "@eslint/eslintrc" : " ^2.0.3" ,
29
28
"@eslint/js" : " ^8.43.0" ,
30
29
"@types/eslint" : " ^8.44.2" ,
31
30
"@typescript-eslint/parser" : " ^5.60.0" ,
You can’t perform that action at this time.
0 commit comments