@eslint-react/eslint-plugin 2.0.0-beta.60 → 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.
Files changed (3) hide show
  1. package/README.md +29 -27
  2. package/dist/index.js +1 -1
  3. package/package.json +14 -14
package/README.md CHANGED
@@ -69,40 +69,42 @@ npm install --save-dev typescript-eslint @eslint-react/eslint-plugin
69
69
  ```js
70
70
  // eslint.config.js
71
71
 
72
- // @ts-check
73
72
  import eslintReact from "@eslint-react/eslint-plugin";
74
73
  import eslintJs from "@eslint/js";
74
+ import { defineConfig } from "eslint/config";
75
75
  import tseslint from "typescript-eslint";
76
76
 
77
- export default tseslint.config({
78
- files: ["**/*.ts", "**/*.tsx"],
79
-
80
- // Extend recommended rule sets from:
81
- // 1. ESLint JS's recommended rules
82
- // 2. TypeScript ESLint recommended rules
83
- // 3. ESLint React's recommended-typescript rules
84
- extends: [
85
- eslintJs.configs.recommended,
86
- tseslint.configs.recommended,
87
- eslintReact.configs["recommended-typescript"],
88
- ],
89
-
90
- // Configure language/parsing options
91
- languageOptions: {
92
- // Use TypeScript ESLint parser for TypeScript files
93
- parser: tseslint.parser,
94
- parserOptions: {
95
- // Enable project service for better TypeScript integration
96
- projectService: true,
97
- tsconfigRootDir: import.meta.dirname,
77
+ export default defineConfig([
78
+ {
79
+ files: ["**/*.ts", "**/*.tsx"],
80
+
81
+ // Extend recommended rule sets from:
82
+ // 1. ESLint JS's recommended rules
83
+ // 2. TypeScript ESLint recommended rules
84
+ // 3. ESLint React's recommended-typescript rules
85
+ extends: [
86
+ eslintJs.configs.recommended,
87
+ tseslint.configs.recommended,
88
+ eslintReact.configs["recommended-typescript"],
89
+ ],
90
+
91
+ // Configure language/parsing options
92
+ languageOptions: {
93
+ // Use TypeScript ESLint parser for TypeScript files
94
+ parser: tseslint.parser,
95
+ parserOptions: {
96
+ // Enable project service for better TypeScript integration
97
+ projectService: true,
98
+ tsconfigRootDir: import.meta.dirname,
99
+ },
98
100
  },
99
- },
100
101
 
101
- // Custom rule overrides (modify rule levels or disable rules)
102
- rules: {
103
- "@eslint-react/no-missing-key": "warn",
102
+ // Custom rule overrides (modify rule levels or disable rules)
103
+ rules: {
104
+ "@eslint-react/no-missing-key": "warn",
105
+ },
104
106
  },
105
- });
107
+ ]);
106
108
  ```
107
109
 
108
110
  [Full Installation Guide ↗](https://eslint-react.xyz/docs/getting-started/typescript)
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import { DEFAULT_ESLINT_REACT_SETTINGS } from "@eslint-react/shared";
9
9
 
10
10
  //#region package.json
11
11
  var name = "@eslint-react/eslint-plugin";
12
- var version = "2.0.0-beta.60";
12
+ var version = "2.0.0-beta.64";
13
13
 
14
14
  //#endregion
15
15
  //#region src/configs/dom.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "2.0.0-beta.60",
3
+ "version": "2.0.0-beta.64",
4
4
  "description": "A unified plugin that combines all individual plugins from the eslint-react monorepo into one.",
5
5
  "keywords": [
6
6
  "react",
@@ -37,19 +37,19 @@
37
37
  "./package.json"
38
38
  ],
39
39
  "dependencies": {
40
- "@typescript-eslint/scope-manager": "^8.41.0",
41
- "@typescript-eslint/type-utils": "^8.41.0",
42
- "@typescript-eslint/types": "^8.41.0",
43
- "@typescript-eslint/utils": "^8.41.0",
44
- "@eslint-react/kit": "2.0.0-beta.60",
45
- "@eslint-react/shared": "2.0.0-beta.60",
46
- "eslint-plugin-react-debug": "2.0.0-beta.60",
47
- "eslint-plugin-react-dom": "2.0.0-beta.60",
48
- "eslint-plugin-react-hooks-extra": "2.0.0-beta.60",
49
- "@eslint-react/eff": "2.0.0-beta.60",
50
- "eslint-plugin-react-naming-convention": "2.0.0-beta.60",
51
- "eslint-plugin-react-web-api": "2.0.0-beta.60",
52
- "eslint-plugin-react-x": "2.0.0-beta.60"
40
+ "@typescript-eslint/scope-manager": "^8.42.0",
41
+ "@typescript-eslint/type-utils": "^8.42.0",
42
+ "@typescript-eslint/types": "^8.42.0",
43
+ "@typescript-eslint/utils": "^8.42.0",
44
+ "@eslint-react/eff": "2.0.0-beta.64",
45
+ "@eslint-react/kit": "2.0.0-beta.64",
46
+ "@eslint-react/shared": "2.0.0-beta.64",
47
+ "eslint-plugin-react-debug": "2.0.0-beta.64",
48
+ "eslint-plugin-react-dom": "2.0.0-beta.64",
49
+ "eslint-plugin-react-naming-convention": "2.0.0-beta.64",
50
+ "eslint-plugin-react-web-api": "2.0.0-beta.64",
51
+ "eslint-plugin-react-x": "2.0.0-beta.64",
52
+ "eslint-plugin-react-hooks-extra": "2.0.0-beta.64"
53
53
  },
54
54
  "devDependencies": {
55
55
  "tsdown": "^0.14.2",