Skip to content

Commit

Permalink
chore: remove usage of @eslint/eslintrc (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add authored Sep 12, 2023
1 parent b7d0536 commit 150b34f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
11 changes: 4 additions & 7 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@
"use strict"

const js = require("@eslint/js")
const { FlatCompat } = require("@eslint/eslintrc")
const globals = require("globals")
const nodeRecommended = require("eslint-plugin-n/configs/recommended-script")

const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
})
const eslintPluginConfig = require("eslint-plugin-eslint-plugin/configs/recommended")
const prettierConfig = require("eslint-config-prettier")

module.exports = [
{
Expand All @@ -29,7 +25,8 @@ module.exports = [
},
js.configs.recommended,
nodeRecommended,
...compat.extends("plugin:eslint-plugin/recommended", "prettier"),
eslintPluginConfig,
prettierConfig,
{ rules: { "eslint-plugin/require-meta-docs-description": "error" } },
{
// these messageIds were used outside
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"semver": "^7.5.3"
},
"devDependencies": {
"@eslint/eslintrc": "^2.0.3",
"@eslint/js": "^8.43.0",
"@types/eslint": "^8.44.2",
"@typescript-eslint/parser": "^5.60.0",
Expand Down

0 comments on commit 150b34f

Please sign in to comment.