@eslint-react/eslint-plugin 1.22.1-next.2 → 1.22.1-next.4

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
@@ -8,7 +8,7 @@ A series of composable ESLint plugins for libraries and frameworks that use Reac
8
8
 
9
9
  - **Universal**: Works seamlessly with any library or framework that uses React.
10
10
  - **Maximum Flexibility**: Achieves extensive capabilities with minimal configuration effort.
11
- - **Advanced Analysis Logic**: Handles complex scenarios and identifies errors that tools like `biome` and `eslint-plugin-react` might miss.
11
+ - **Advanced Analysis Logic**: Handles complex scenarios and identifies problems that tools like `biome` and `eslint-plugin-react` might miss.
12
12
 
13
13
  ## Public packages
14
14
 
@@ -38,13 +38,16 @@ npm install --save-dev typescript-eslint @eslint-react/eslint-plugin
38
38
  // eslint.config.js
39
39
 
40
40
  // @ts-check
41
- import react from "@eslint-react/eslint-plugin";
41
+ import eslintJs from "@eslint/js";
42
+ import eslintReact from "@eslint-react/eslint-plugin";
42
43
  import tseslint from "typescript-eslint";
43
44
 
44
45
  export default tseslint.config({
45
46
  files: ["**/*.ts", "**/*.tsx"],
46
47
  extends: [
47
- react.configs["recommended"],
48
+ eslintJs.configs.recommended,
49
+ tseslint.configs.recommended,
50
+ eslintReact.configs.recommended,
48
51
  ],
49
52
  languageOptions: {
50
53
  parser: tseslint.parser,
@@ -54,6 +57,7 @@ export default tseslint.config({
54
57
  },
55
58
  rules: {
56
59
  // Put rules you want to override here
60
+ "@eslint-react/prefer-shorthand-boolean": "warn",
57
61
  },
58
62
  });
59
63
  ```
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.22.1-next.2";
29
+ var version = "1.22.1-next.4";
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.22.1-next.2";
18
+ var version = "1.22.1-next.4";
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.22.1-next.2",
3
+ "version": "1.22.1-next.4",
4
4
  "description": "The main ESLint plugin that contains all the rules from eslint-plugin-react-[x, dom, web-api, hooks-extra, naming-convention].",
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.22.1-next.2",
54
- "@eslint-react/shared": "1.22.1-next.2",
55
- "eslint-plugin-react-debug": "1.22.1-next.2",
56
- "@eslint-react/types": "1.22.1-next.2",
57
- "eslint-plugin-react-dom": "1.22.1-next.2",
58
- "eslint-plugin-react-hooks-extra": "1.22.1-next.2",
59
- "eslint-plugin-react-web-api": "1.22.1-next.2",
60
- "eslint-plugin-react-naming-convention": "1.22.1-next.2",
61
- "eslint-plugin-react-x": "1.22.1-next.2"
53
+ "@eslint-react/eff": "1.22.1-next.4",
54
+ "@eslint-react/types": "1.22.1-next.4",
55
+ "eslint-plugin-react-dom": "1.22.1-next.4",
56
+ "eslint-plugin-react-hooks-extra": "1.22.1-next.4",
57
+ "eslint-plugin-react-debug": "1.22.1-next.4",
58
+ "eslint-plugin-react-naming-convention": "1.22.1-next.4",
59
+ "eslint-plugin-react-web-api": "1.22.1-next.4",
60
+ "@eslint-react/shared": "1.22.1-next.4",
61
+ "eslint-plugin-react-x": "1.22.1-next.4"
62
62
  },
63
63
  "devDependencies": {
64
64
  "tsup": "^8.3.5",