Skip to content

Commit

Permalink
fix: use eslint-comments plugin flat config (#1254)
Browse files Browse the repository at this point in the history
  • Loading branch information
teppeis committed Apr 18, 2024
1 parent a4da903 commit 8331d51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/configs/base.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import comments from "@eslint-community/eslint-plugin-eslint-comments";
import comments from "@eslint-community/eslint-plugin-eslint-comments/configs";
import js from "@eslint/js";
import jsdoc from "eslint-plugin-jsdoc";
import unicorn from "eslint-plugin-unicorn";
import { merge } from "../merge.js";

export const base = merge(js.configs.recommended, {
export const base = merge(js.configs.recommended, comments.recommended, {
languageOptions: {
ecmaVersion: 2020,
sourceType: "script",
Expand All @@ -14,15 +14,12 @@ export const base = merge(js.configs.recommended, {
// They may be referenced by other config files.
unicorn,
jsdoc,
"@eslint-community/eslint-comments": comments,
},
linterOptions: {
// replace "eslint-comments/no-unused-disable"
reportUnusedDisableDirectives: "error",
},
rules: {
...comments.configs.recommended.rules,

// ## Possible Problems
"array-callback-return": 2,
"no-async-promise-executor": 2,
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
declare module "@eslint-community/eslint-plugin-eslint-comments";
declare module "@eslint-community/eslint-plugin-eslint-comments/configs";

0 comments on commit 8331d51

Please sign in to comment.