eslint-plugin-react-debug 1.27.1-next.3 → 1.27.1-next.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,32 +6,37 @@ Debugging rules.
6
6
 
7
7
  ```sh
8
8
  # npm
9
- npm install --save-dev eslint-plugin-react-dom
9
+ npm install --save-dev eslint-plugin-react-debug
10
10
  ```
11
11
 
12
12
  ## Setup
13
13
 
14
14
  ```js
15
- // @ts-check
15
+ // eslint.config.js
16
16
 
17
+ // @ts-check
17
18
  import js from "@eslint/js";
18
19
  import reactDebug from "eslint-plugin-react-debug";
19
-
20
- export default [
21
- js.configs.recommended,
22
- {
23
- files: ["**/*.{ts,tsx}"],
24
- plugins: {
25
- "react-debug": reactDebug,
26
- },
27
- rules: {
28
- "react-debug/class-component": "warn",
29
- "react-debug/function-component": "warn",
30
- "react-debug/hook": "warn",
31
- "react-debug/is-from-react": "off",
20
+ import tseslint from "typescript-eslint";
21
+
22
+ export default tseslint.config({
23
+ files: ["**/*.ts", "**/*.tsx"],
24
+ extends: [
25
+ js.configs.recommended,
26
+ tseslint.configs.recommended,
27
+ reactDebug.configs.all,
28
+ ],
29
+ languageOptions: {
30
+ parser: tseslint.parser,
31
+ parserOptions: {
32
+ projectService: true,
32
33
  },
33
34
  },
34
- ];
35
+ rules: {
36
+ // Put rules you want to override here
37
+ "react-debug/function-component": "warn",
38
+ },
39
+ });
35
40
  ```
36
41
 
37
42
  ## Rules
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ var settings = {
30
30
 
31
31
  // package.json
32
32
  var name2 = "eslint-plugin-react-debug";
33
- var version = "1.27.1-next.3";
33
+ var version = "1.27.1-next.5";
34
34
  var createRule = shared.createRuleForPlugin("debug");
35
35
 
36
36
  // src/rules/class-component.ts
package/dist/index.mjs CHANGED
@@ -28,7 +28,7 @@ var settings = {
28
28
 
29
29
  // package.json
30
30
  var name2 = "eslint-plugin-react-debug";
31
- var version = "1.27.1-next.3";
31
+ var version = "1.27.1-next.5";
32
32
  var createRule = createRuleForPlugin("debug");
33
33
 
34
34
  // src/rules/class-component.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-debug",
3
- "version": "1.27.1-next.3",
3
+ "version": "1.27.1-next.5",
4
4
  "description": "ESLint React's ESLint plugin for debugging related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -49,12 +49,12 @@
49
49
  "@typescript-eslint/utils": "^8.24.1",
50
50
  "string-ts": "^2.2.1",
51
51
  "ts-pattern": "^5.6.2",
52
- "@eslint-react/ast": "1.27.1-next.3",
53
- "@eslint-react/core": "1.27.1-next.3",
54
- "@eslint-react/jsx": "1.27.1-next.3",
55
- "@eslint-react/shared": "1.27.1-next.3",
56
- "@eslint-react/eff": "1.27.1-next.3",
57
- "@eslint-react/var": "1.27.1-next.3"
52
+ "@eslint-react/ast": "1.27.1-next.5",
53
+ "@eslint-react/eff": "1.27.1-next.5",
54
+ "@eslint-react/core": "1.27.1-next.5",
55
+ "@eslint-react/jsx": "1.27.1-next.5",
56
+ "@eslint-react/shared": "1.27.1-next.5",
57
+ "@eslint-react/var": "1.27.1-next.5"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/react": "^19.0.10",