Skip to content

Commit

Permalink
chore(package.json): bump version to 1.3.8 for new release
Browse files Browse the repository at this point in the history
refactor(configs/react): reorder rule renaming for consistency in react config
refactor(utils/factory): reorder rule renaming for consistency in eslintConfig factory function
  • Loading branch information
Bluzzi committed Dec 25, 2024
1 parent fcdd1d1 commit 54ac4c8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion 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.7",
"version": "1.3.8",
"license": "MIT",
"author": "Bluzzi",
"type": "module",
Expand Down
6 changes: 3 additions & 3 deletions src/configs/react/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export const react = (): TypedFlatConfigItem[] => {
const recommendedRules = renameRules(
reactPlugin.configs.recommended.rules,
{
"@eslint-react": "react",
"@eslint-react/dom": "react-dom",
"@eslint-react/hooks-extra": "react-hooks-extra",
"@eslint-react/naming-convention": "react-naming-convention",
"@eslint-react/hooks-extra": "react-hooks-extra",
"@eslint-react/dom": "react-dom",
"@eslint-react": "react",
},
);

Expand Down
6 changes: 3 additions & 3 deletions src/utils/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ export const eslintConfig = async (

"@next/next": "next",

"@eslint-react": "react",
"@eslint-react/dom": "react-dom",
"@eslint-react/hooks-extra": "react-hooks-extra",
"@eslint-react/naming-convention": "react-naming-convention",
"@eslint-react/hooks-extra": "react-hooks-extra",
"@eslint-react/dom": "react-dom",
"@eslint-react": "react",

"react-hooks": "react-hooks", // maybe good for consistency
});
Expand Down

0 comments on commit 54ac4c8

Please sign in to comment.