Skip to content

Commit

Permalink
Upgrade ESLint to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
textbook committed Sep 8, 2024
1 parent 6b8360f commit df04503
Show file tree
Hide file tree
Showing 3 changed files with 155 additions and 126 deletions.
5 changes: 3 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import cyfConfig from "@codeyourfuture/eslint-config-standard";
import { fixupPluginRules } from "@eslint/compat";
import vitestPlugin from "@vitest/eslint-plugin";
import prettierConfig from "eslint-config-prettier";
import importPlugin from "eslint-plugin-import";
Expand All @@ -13,7 +14,7 @@ import reactRefreshPlugin from "eslint-plugin-react-refresh";
import testingLibraryPlugin from "eslint-plugin-testing-library";
import globals from "globals";

/** @type {import("eslint").Linter.FlatConfig} */
/** @type {import("eslint").Linter.Config} */
export default [
cyfConfig,
prettierConfig,
Expand Down Expand Up @@ -108,7 +109,7 @@ export default [
},
plugins: {
"jest-dom": jestDomPlugin,
"testing-library": testingLibraryPlugin,
"testing-library": fixupPluginRules(testingLibraryPlugin),
vitest: vitestPlugin,
},
rules: {
Expand Down
Loading

0 comments on commit df04503

Please sign in to comment.