Skip to content

Commit

Permalink
feat(package.json): bump version to 1.3.5 for new release
Browse files Browse the repository at this point in the history
refactor(configs/react, utils): remove react-hooks plugin and related rules
chore(package.json): remove eslint-plugin-react-hooks dependency as it's no longer used
  • Loading branch information
Bluzzi committed Dec 25, 2024
1 parent 694e9cc commit f80fa61
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 23 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@bluzzi/eslint-config",
"description": "ESLint configuration preset for linting and formatting all your files",
"version": "1.3.4",
"version": "1.3.5",
"license": "MIT",
"author": "Bluzzi",
"type": "module",
Expand Down Expand Up @@ -39,7 +39,6 @@
"eslint-flat-config-utils": "^0.4.0",
"eslint-plugin-antfu": "^2.7.0",
"eslint-plugin-n": "^17.15.1",
"eslint-plugin-react-hooks": "^5.1.0",
"globals": "^15.14.0",
"local-pkg": "^0.5.1"
},
Expand Down
13 changes: 0 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions src/configs/react/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* eslint-disable ts/no-unsafe-assignment, ts/no-unsafe-member-access */

import type { TypedFlatConfigItem } from "#/types/type";
import { reactHooksPlugin, reactPlugin } from "#/utils/extension";
import { reactPlugin } from "#/utils/extension";
import { configName } from "#/utils/naming";

export const react = (): TypedFlatConfigItem[] => {
Expand All @@ -12,7 +10,6 @@ export const react = (): TypedFlatConfigItem[] => {
plugins: {
"react": reactPlugin.configs.all.plugins["@eslint-react"],
"react-dom": reactPlugin.configs.all.plugins["@eslint-react/dom"],
"react-hooks": reactHooksPlugin,
"react-hooks-extra": reactPlugin.configs.all.plugins["@eslint-react/hooks-extra"],
"react-naming-convention": reactPlugin.configs.all.plugins["@eslint-react/naming-convention"],
},
Expand All @@ -26,8 +23,6 @@ export const react = (): TypedFlatConfigItem[] => {
},
rules: {
...reactPlugin.configs.recommended.rules,
...reactHooksPlugin.configs.recommended.rules,
"react-hooks/exhaustive-deps": "off",
},
},
];
Expand Down
1 change: 0 additions & 1 deletion src/utils/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ export { default as stylisticPlugin } from "@stylistic/eslint-plugin";
export { default as typescriptPlugin } from "@typescript-eslint/eslint-plugin";
export { default as nextjsPlugin } from "@next/eslint-plugin-next";
export { default as reactPlugin } from "@eslint-react/eslint-plugin";
export { default as reactHooksPlugin } from "eslint-plugin-react-hooks";

export { default as typescriptParser } from "@typescript-eslint/parser";
2 changes: 1 addition & 1 deletion src/utils/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ export const eslintConfig = async (
"@stylistic": "style",
"@typescript-eslint": "ts",
"n": "node",

"@eslint-react": "react",
"@eslint-react/dom": "react-dom",
"react-hooks": "react-hooks",
"@eslint-react/hooks-extra": "react-hooks-extra",
"@eslint-react/naming-convention": "react-naming-convention",
});
Expand Down

0 comments on commit f80fa61

Please sign in to comment.