Skip to content

Commit ab29ac5

Browse files
committed
fix(plugins/eslint-plugin): rules list in 'debug' config
1 parent 2e55204 commit ab29ac5

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

examples/vite-react-dom-legacy/.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
{
1010
files: ["src/**/*.{js, jsx}"],
1111
extends: [
12-
"plugin:@eslint-react/recommended-legacy",
12+
"plugin:@eslint-react/debug-legacy",
1313
],
1414
},
1515
],

packages/plugins/eslint-plugin/src/configs/all.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export const rules = {
8484
"@eslint-react/hooks-extra/no-unnecessary-use-memo": "warn",
8585
"@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn",
8686

87+
// Part: Naming Convention
8788
"@eslint-react/naming-convention/component-name": "warn",
8889
"@eslint-react/naming-convention/filename": "warn",
8990
"@eslint-react/naming-convention/filename-extension": "warn",

packages/plugins/eslint-plugin/src/configs/debug.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ import reactDebug from "eslint-plugin-react-debug";
33
export const name = "@eslint-react/debug";
44

55
export const rules = {
6-
"@eslint-react/debug/no-unknown-attribute": "warn",
7-
"@eslint-react/debug/no-unknown-event": "warn",
8-
"@eslint-react/debug/no-unknown-property": "warn",
6+
"@eslint-react/debug/class-component": "warn",
7+
"@eslint-react/debug/function-component": "warn",
8+
"@eslint-react/debug/hook": "warn",
9+
"@eslint-react/debug/is-from-react": "warn",
910
} as const;
1011

1112
export const plugins = {

0 commit comments

Comments
 (0)