@eslint-react/eslint-plugin 1.20.2-next.6 → 1.20.2-next.7

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
@@ -27,44 +27,48 @@ A series of composable ESLint plugins for libraries and frameworks that use Reac
27
27
  - [`eslint-plugin-react-hooks-extra`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-hooks-extra) - Extra React Hooks rules.
28
28
  - [`eslint-plugin-react-naming-convention`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-naming-convention) - Naming convention rules.
29
29
 
30
- ## Install
30
+ ## Installation
31
+
32
+ ### Install
31
33
 
32
34
  ```sh
33
35
  # npm
34
- npm install --save-dev @eslint-react/eslint-plugin
36
+ npm install --save-dev typescript-eslint @eslint-react/eslint-plugin
35
37
 
36
38
  # yarn
37
- yarn add --dev @eslint-react/eslint-plugin
39
+ yarn add --dev typescript-eslint @eslint-react/eslint-plugin
38
40
 
39
41
  # pnpm
40
- pnpm add --save-dev @eslint-react/eslint-plugin
42
+ pnpm add --save-dev typescript-eslint @eslint-react/eslint-plugin
41
43
  ```
42
44
 
43
- ## Setup
44
-
45
- ### Flat Config
45
+ ### Setup
46
46
 
47
47
  ```js
48
48
  // eslint.config.js
49
49
 
50
50
  // @ts-check
51
- import js from "@eslint/js";
52
51
  import react from "@eslint-react/eslint-plugin";
53
- import * as tsParser from "@typescript-eslint/parser";
54
-
55
- export default [
56
- js.configs.recommended,
57
- {
58
- files: ["**/*.{ts,tsx}"],
59
- ...react.configs.recommended,
60
- languageOptions: {
61
- parser: tsParser,
52
+ import tseslint from "typescript-eslint";
53
+
54
+ export default tseslint.config({
55
+ files: ["**/*.ts", "**/*.tsx"],
56
+ extends: [
57
+ react.configs["recommended"],
58
+ ],
59
+ languageOptions: {
60
+ parser: tseslint.parser,
61
+ parserOptions: {
62
+ projectService: true,
62
63
  },
63
64
  },
64
- ];
65
+ rules: {
66
+ // Put rules you want to override here
67
+ },
68
+ });
65
69
  ```
66
70
 
67
- [Full Installation Guide ↗](https://eslint-react.xyz/docs/installation)
71
+ [Full Installation Guide ↗](https://eslint-react.xyz/docs/getting-started)
68
72
 
69
73
  </details>
70
74
 
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ var __export = (target, all) => {
26
26
 
27
27
  // package.json
28
28
  var name = "@eslint-react/eslint-plugin";
29
- var version = "1.20.2-next.6";
29
+ var version = "1.20.2-next.7";
30
30
 
31
31
  // src/configs/all.ts
32
32
  var all_exports = {};
package/dist/index.mjs CHANGED
@@ -15,7 +15,7 @@ var __export = (target, all) => {
15
15
 
16
16
  // package.json
17
17
  var name = "@eslint-react/eslint-plugin";
18
- var version = "1.20.2-next.6";
18
+ var version = "1.20.2-next.7";
19
19
 
20
20
  // src/configs/all.ts
21
21
  var all_exports = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "1.20.2-next.6",
3
+ "version": "1.20.2-next.7",
4
4
  "description": "The main ESLint plugin of ESLint React. Contains all the rules and presets of ESLint React.",
5
5
  "keywords": [
6
6
  "react",
@@ -50,15 +50,15 @@
50
50
  "@typescript-eslint/type-utils": "^8.18.1",
51
51
  "@typescript-eslint/types": "^8.18.1",
52
52
  "@typescript-eslint/utils": "^8.18.1",
53
- "@eslint-react/eff": "1.20.2-next.6",
54
- "@eslint-react/shared": "1.20.2-next.6",
55
- "@eslint-react/types": "1.20.2-next.6",
56
- "eslint-plugin-react-debug": "1.20.2-next.6",
57
- "eslint-plugin-react-dom": "1.20.2-next.6",
58
- "eslint-plugin-react-naming-convention": "1.20.2-next.6",
59
- "eslint-plugin-react-hooks-extra": "1.20.2-next.6",
60
- "eslint-plugin-react-x": "1.20.2-next.6",
61
- "eslint-plugin-react-web-api": "1.20.2-next.6"
53
+ "@eslint-react/eff": "1.20.2-next.7",
54
+ "@eslint-react/shared": "1.20.2-next.7",
55
+ "eslint-plugin-react-debug": "1.20.2-next.7",
56
+ "@eslint-react/types": "1.20.2-next.7",
57
+ "eslint-plugin-react-dom": "1.20.2-next.7",
58
+ "eslint-plugin-react-hooks-extra": "1.20.2-next.7",
59
+ "eslint-plugin-react-naming-convention": "1.20.2-next.7",
60
+ "eslint-plugin-react-web-api": "1.20.2-next.7",
61
+ "eslint-plugin-react-x": "1.20.2-next.7"
62
62
  },
63
63
  "devDependencies": {
64
64
  "tsup": "^8.3.5",