Skip to content

Commit 150b34f

Browse files
authoredSep 12, 2023
chore: remove usage of @eslint/eslintrc (#116)
1 parent b7d0536 commit 150b34f

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed
 

‎eslint.config.js

+4-7
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,10 @@
44
"use strict"
55

66
const js = require("@eslint/js")
7-
const { FlatCompat } = require("@eslint/eslintrc")
87
const globals = require("globals")
98
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")
1511

1612
module.exports = [
1713
{
@@ -29,7 +25,8 @@ module.exports = [
2925
},
3026
js.configs.recommended,
3127
nodeRecommended,
32-
...compat.extends("plugin:eslint-plugin/recommended", "prettier"),
28+
eslintPluginConfig,
29+
prettierConfig,
3330
{ rules: { "eslint-plugin/require-meta-docs-description": "error" } },
3431
{
3532
// these messageIds were used outside

‎package.json

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"semver": "^7.5.3"
2626
},
2727
"devDependencies": {
28-
"@eslint/eslintrc": "^2.0.3",
2928
"@eslint/js": "^8.43.0",
3029
"@types/eslint": "^8.44.2",
3130
"@typescript-eslint/parser": "^5.60.0",

0 commit comments

Comments
 (0)
Please sign in to comment.