Skip to content

Commit

Permalink
feat: eslint-plugin-react supports ESLint v9 (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic authored Jul 22, 2024
1 parent d51f979 commit 7664bf8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion packages/migrate-config/src/compat-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
export default [
"eslint-plugin-ava",
"eslint-plugin-react-hooks",
"eslint-plugin-react",
"eslint-plugin-import",
];
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
plugins: ["react"],
plugins: ["import"],
overrides: [
{
plugins: ["react-hooks"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const react = require("eslint-plugin-react");
const _import = require("eslint-plugin-import");

const {
fixupPluginRules,
Expand All @@ -8,7 +8,7 @@ const reactHooks = require("eslint-plugin-react-hooks");

module.exports = [{
plugins: {
react: fixupPluginRules(react),
import: fixupPluginRules(_import),
},
}, {
plugins: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import react from "eslint-plugin-react";
import _import from "eslint-plugin-import";
import { fixupPluginRules } from "@eslint/compat";
import reactHooks from "eslint-plugin-react-hooks";

export default [{
plugins: {
react: fixupPluginRules(react),
import: fixupPluginRules(_import),
},
}, {
plugins: {
Expand Down

0 comments on commit 7664bf8

Please sign in to comment.