Skip to content

Commit

Permalink
fix(plugins/eslint-plugin): rules list in 'debug' config
Browse files Browse the repository at this point in the history
  • Loading branch information
Rel1cx committed Nov 21, 2024
1 parent 2e55204 commit ab29ac5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/vite-react-dom-legacy/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
{
files: ["src/**/*.{js, jsx}"],
extends: [
"plugin:@eslint-react/recommended-legacy",
"plugin:@eslint-react/debug-legacy",
],
},
],
Expand Down
1 change: 1 addition & 0 deletions packages/plugins/eslint-plugin/src/configs/all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export const rules = {
"@eslint-react/hooks-extra/no-unnecessary-use-memo": "warn",
"@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn",

// Part: Naming Convention
"@eslint-react/naming-convention/component-name": "warn",
"@eslint-react/naming-convention/filename": "warn",
"@eslint-react/naming-convention/filename-extension": "warn",
Expand Down
7 changes: 4 additions & 3 deletions packages/plugins/eslint-plugin/src/configs/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import reactDebug from "eslint-plugin-react-debug";
export const name = "@eslint-react/debug";

export const rules = {
"@eslint-react/debug/no-unknown-attribute": "warn",
"@eslint-react/debug/no-unknown-event": "warn",
"@eslint-react/debug/no-unknown-property": "warn",
"@eslint-react/debug/class-component": "warn",
"@eslint-react/debug/function-component": "warn",
"@eslint-react/debug/hook": "warn",
"@eslint-react/debug/is-from-react": "warn",
} as const;

export const plugins = {
Expand Down

0 comments on commit ab29ac5

Please sign in to comment.