eslint-plugin-react-debug 2.0.0-beta.59 → 2.0.0-beta.64

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
@@ -19,27 +19,30 @@ npm install --save-dev eslint-plugin-react-debug
19
19
  // @ts-check
20
20
  import js from "@eslint/js";
21
21
  import reactDebug from "eslint-plugin-react-debug";
22
+ import { defineConfig } from "eslint/config";
22
23
  import tseslint from "typescript-eslint";
23
24
 
24
- export default tseslint.config({
25
- files: ["**/*.ts", "**/*.tsx"],
26
- extends: [
27
- js.configs.recommended,
28
- tseslint.configs.recommended,
29
- reactDebug.configs.all,
30
- ],
31
- languageOptions: {
32
- parser: tseslint.parser,
33
- parserOptions: {
34
- projectService: true,
35
- tsconfigRootDir: import.meta.dirname,
25
+ export default defineConfig([
26
+ {
27
+ files: ["**/*.ts", "**/*.tsx"],
28
+ extends: [
29
+ js.configs.recommended,
30
+ tseslint.configs.recommended,
31
+ reactDebug.configs.all,
32
+ ],
33
+ languageOptions: {
34
+ parser: tseslint.parser,
35
+ parserOptions: {
36
+ projectService: true,
37
+ tsconfigRootDir: import.meta.dirname,
38
+ },
39
+ },
40
+ rules: {
41
+ // Put rules you want to override here
42
+ "react-debug/function-component": "warn",
36
43
  },
37
44
  },
38
- rules: {
39
- // Put rules you want to override here
40
- "react-debug/function-component": "warn",
41
- },
42
- });
45
+ ]);
43
46
  ```
44
47
 
45
48
  ## Rules
package/dist/index.d.ts CHANGED
@@ -4,9 +4,7 @@ import * as _eslint_react_kit0 from "@eslint-react/kit";
4
4
  declare const _default: {
5
5
  configs: {
6
6
  all: {
7
- plugins: {
8
- "react-debug": _eslint_react_kit0.CompatiblePlugin;
9
- };
7
+ plugins: {};
10
8
  name?: string;
11
9
  rules?: Record<string, _eslint_react_kit0.RuleConfig>;
12
10
  settings?: _eslint_react_kit0.SettingsConfig;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { DEFAULT_ESLINT_REACT_SETTINGS, getDocsUrl, getSettingsFromContext } from "@eslint-react/shared";
1
+ import { DEFAULT_ESLINT_REACT_SETTINGS, getConfigAdapters, getDocsUrl, getSettingsFromContext } from "@eslint-react/shared";
2
2
  import * as ER from "@eslint-react/core";
3
3
  import { AST_NODE_TYPES, ESLintUtils } from "@typescript-eslint/utils";
4
4
  import { flow } from "@eslint-react/eff";
@@ -36,7 +36,7 @@ const settings = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
36
36
  //#endregion
37
37
  //#region package.json
38
38
  var name = "eslint-plugin-react-debug";
39
- var version = "2.0.0-beta.59";
39
+ var version = "2.0.0-beta.64";
40
40
 
41
41
  //#endregion
42
42
  //#region src/utils/create-rule.ts
@@ -278,18 +278,7 @@ const plugin = {
278
278
 
279
279
  //#endregion
280
280
  //#region src/index.ts
281
- function toFlatConfig(config) {
282
- return {
283
- ...config,
284
- plugins: { "react-debug": plugin }
285
- };
286
- }
287
- function toLegacyConfig({ rules: rules$1 }) {
288
- return {
289
- plugins: ["react-debug"],
290
- rules: rules$1
291
- };
292
- }
281
+ const { toFlatConfig, toLegacyConfig } = getConfigAdapters("react-debug", plugin);
293
282
  var src_default = {
294
283
  ...plugin,
295
284
  configs: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-debug",
3
- "version": "2.0.0-beta.59",
3
+ "version": "2.0.0-beta.64",
4
4
  "description": "ESLint React's ESLint plugin for debugging related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -35,18 +35,18 @@
35
35
  "./package.json"
36
36
  ],
37
37
  "dependencies": {
38
- "@typescript-eslint/scope-manager": "^8.41.0",
39
- "@typescript-eslint/type-utils": "^8.41.0",
40
- "@typescript-eslint/types": "^8.41.0",
41
- "@typescript-eslint/utils": "^8.41.0",
38
+ "@typescript-eslint/scope-manager": "^8.42.0",
39
+ "@typescript-eslint/type-utils": "^8.42.0",
40
+ "@typescript-eslint/types": "^8.42.0",
41
+ "@typescript-eslint/utils": "^8.42.0",
42
42
  "string-ts": "^2.2.1",
43
43
  "ts-pattern": "^5.8.0",
44
- "@eslint-react/ast": "2.0.0-beta.59",
45
- "@eslint-react/core": "2.0.0-beta.59",
46
- "@eslint-react/kit": "2.0.0-beta.59",
47
- "@eslint-react/var": "2.0.0-beta.59",
48
- "@eslint-react/shared": "2.0.0-beta.59",
49
- "@eslint-react/eff": "2.0.0-beta.59"
44
+ "@eslint-react/ast": "2.0.0-beta.64",
45
+ "@eslint-react/eff": "2.0.0-beta.64",
46
+ "@eslint-react/core": "2.0.0-beta.64",
47
+ "@eslint-react/var": "2.0.0-beta.64",
48
+ "@eslint-react/kit": "2.0.0-beta.64",
49
+ "@eslint-react/shared": "2.0.0-beta.64"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/react": "^19.1.12",