@eslint-react/eslint-plugin 1.22.2-beta.0 → 1.22.2-beta.11
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 +16 -14
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +16 -16
package/README.md
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
<!-- eslint-disable markdown/no-html -->
|
|
2
|
+
|
|
1
3
|
<p align="center"><img src="https://eslint-react.xyz/logo.svg" alt="logo" width="150" /></p>
|
|
2
4
|
|
|
3
5
|
<h1 align="center" alt="title">ESLint React</h1>
|
|
4
6
|
|
|
5
|
-
A
|
|
7
|
+
A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.
|
|
6
8
|
|
|
7
9
|
## Features
|
|
8
10
|
|
|
9
|
-
- **
|
|
10
|
-
- **
|
|
11
|
-
- **
|
|
11
|
+
- **Simple**: Low configuration overhead with sensible defaults.
|
|
12
|
+
- **Flexible**: Increased flexibility with more granular severity control.
|
|
13
|
+
- **Comprehensive**: First-class support for TypeScript, React UI libraries, polymorphic components.
|
|
14
|
+
- **Advanced Analysis**: Handles complex scenarios and identifies problems that other tools might miss.
|
|
12
15
|
|
|
13
16
|
## Public packages
|
|
14
17
|
|
|
@@ -16,13 +19,13 @@ A series of composable ESLint plugins for libraries and frameworks that use Reac
|
|
|
16
19
|
|
|
17
20
|
- [`@eslint-react/eslint-plugin`](https://www.npmjs.com/package/@eslint-react/eslint-plugin) - The main ESLint plugin package including all rules and config presets in this repository.
|
|
18
21
|
|
|
19
|
-
###
|
|
22
|
+
### Modular plugins
|
|
20
23
|
|
|
21
|
-
- [`eslint-plugin-react-x`](https://github.com/
|
|
22
|
-
- [`eslint-plugin-react-dom`](https://github.com/
|
|
23
|
-
- [`eslint-plugin-react-web-api`](https://github.com/
|
|
24
|
-
- [`eslint-plugin-react-hooks-extra`](https://github.com/
|
|
25
|
-
- [`eslint-plugin-react-naming-convention`](https://github.com/
|
|
24
|
+
- [`eslint-plugin-react-x`](https://github.com/rEl1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) - Core rules (renderer-agnostic, compatible with x-platform).
|
|
25
|
+
- [`eslint-plugin-react-dom`](https://github.com/rEl1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) - DOM specific rules for React DOM.
|
|
26
|
+
- [`eslint-plugin-react-web-api`](https://github.com/rEl1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-web-api) - Rules for interacting with Web APIs.
|
|
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
|
+
- [`eslint-plugin-react-naming-convention`](https://github.com/rEl1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-naming-convention) - Naming convention rules.
|
|
26
29
|
|
|
27
30
|
## Installation
|
|
28
31
|
|
|
@@ -80,7 +83,7 @@ export default tseslint.config({
|
|
|
80
83
|
### General Purpose
|
|
81
84
|
|
|
82
85
|
- **Recommended** (`recommended`)\
|
|
83
|
-
Enforce rules that are recommended by ESLint React for general purpose
|
|
86
|
+
Enforce rules that are recommended by ESLint React for general purpose React + React DOM applications.
|
|
84
87
|
_This preset includes the `core`, `dom`, and `web-api` presets._
|
|
85
88
|
|
|
86
89
|
### TypeScript Specialized
|
|
@@ -104,7 +107,6 @@ export default tseslint.config({
|
|
|
104
107
|
## Roadmap
|
|
105
108
|
|
|
106
109
|
- [Milestone 2.0 ↗](https://eslint-react.xyz/roadmap#milestone-20)
|
|
107
|
-
- [Milestone 3.0 ↗](https://eslint-react.xyz/roadmap#milestone-30-draft)
|
|
108
110
|
|
|
109
111
|
## Used by
|
|
110
112
|
|
|
@@ -116,9 +118,9 @@ export default tseslint.config({
|
|
|
116
118
|
- [`eslint-config-sheriff`](https://github.com/AndreaPontrandolfo/sheriff) - A comprehensive and opinionated Typescript-first ESLint configuration.
|
|
117
119
|
- [`eslint-config-sukka`](https://github.com/SukkaW/eslint-config-sukka) - Sukka's ESLint config preset.
|
|
118
120
|
|
|
119
|
-
_Data collected from GitHub dependents network, if there are any mismatch or outdated information, feel free to [open issue](https://github.com/
|
|
121
|
+
_Data collected from GitHub dependents network, if there are any mismatch or outdated information, feel free to [open issue](https://github.com/rEl1cx/eslint-react/issues/new?assignees=&labels=type%3A+documentation&projects=&template=docs_report.md&title=%5Bdocs%5D+) or pull request._
|
|
120
122
|
|
|
121
|
-
Find more on [GitHub Dependents](https://github.com/
|
|
123
|
+
Find more on [GitHub Dependents](https://github.com/rEl1cx/eslint-react/network/dependents).
|
|
122
124
|
|
|
123
125
|
## Contributing
|
|
124
126
|
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "1.22.2-beta.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.22.2-beta.11",
|
|
4
|
+
"description": "A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
7
7
|
"eslint",
|
|
@@ -13,18 +13,17 @@
|
|
|
13
13
|
"eslint-plugin-react-hooks-extra",
|
|
14
14
|
"eslint-plugin-react-naming-convention"
|
|
15
15
|
],
|
|
16
|
-
"homepage": "https://github.com/
|
|
16
|
+
"homepage": "https://github.com/rEl1cx/eslint-react",
|
|
17
17
|
"bugs": {
|
|
18
|
-
"url": "https://github.com/
|
|
18
|
+
"url": "https://github.com/rEl1cx/eslint-react/issues"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
22
|
-
"url": "https://github.com/
|
|
22
|
+
"url": "git+https://github.com/rEl1cx/eslint-react.git",
|
|
23
23
|
"directory": "packages/plugins/eslint-plugin"
|
|
24
24
|
},
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"author": "Eva1ent<rel1cx@proton.me>",
|
|
27
|
-
"sideEffects": false,
|
|
28
27
|
"exports": {
|
|
29
28
|
".": {
|
|
30
29
|
"import": {
|
|
@@ -39,7 +38,6 @@
|
|
|
39
38
|
"./package.json": "./package.json"
|
|
40
39
|
},
|
|
41
40
|
"main": "dist/index.js",
|
|
42
|
-
"module": "dist/index.mjs",
|
|
43
41
|
"types": "dist/index.d.ts",
|
|
44
42
|
"files": [
|
|
45
43
|
"dist",
|
|
@@ -50,15 +48,15 @@
|
|
|
50
48
|
"@typescript-eslint/type-utils": "^8.18.2",
|
|
51
49
|
"@typescript-eslint/types": "^8.18.2",
|
|
52
50
|
"@typescript-eslint/utils": "^8.18.2",
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/shared": "1.22.2-beta.
|
|
56
|
-
"eslint-plugin-react-debug": "1.22.2-beta.
|
|
57
|
-
"eslint-plugin-react-dom": "1.22.2-beta.
|
|
58
|
-
"eslint-plugin-react-hooks-extra": "1.22.2-beta.
|
|
59
|
-
"eslint-plugin-react-
|
|
60
|
-
"eslint-plugin-react-
|
|
61
|
-
"eslint-plugin-react-x": "1.22.2-beta.
|
|
51
|
+
"@eslint-react/types": "1.22.2-beta.11",
|
|
52
|
+
"@eslint-react/eff": "1.22.2-beta.11",
|
|
53
|
+
"@eslint-react/shared": "1.22.2-beta.11",
|
|
54
|
+
"eslint-plugin-react-debug": "1.22.2-beta.11",
|
|
55
|
+
"eslint-plugin-react-dom": "1.22.2-beta.11",
|
|
56
|
+
"eslint-plugin-react-hooks-extra": "1.22.2-beta.11",
|
|
57
|
+
"eslint-plugin-react-web-api": "1.22.2-beta.11",
|
|
58
|
+
"eslint-plugin-react-naming-convention": "1.22.2-beta.11",
|
|
59
|
+
"eslint-plugin-react-x": "1.22.2-beta.11"
|
|
62
60
|
},
|
|
63
61
|
"devDependencies": {
|
|
64
62
|
"tsup": "^8.3.5",
|
|
@@ -83,6 +81,8 @@
|
|
|
83
81
|
"publishConfig": {
|
|
84
82
|
"access": "public"
|
|
85
83
|
},
|
|
84
|
+
"sideEffects": false,
|
|
85
|
+
"module": "dist/index.mjs",
|
|
86
86
|
"scripts": {
|
|
87
87
|
"build": "tsup --dts-resolve",
|
|
88
88
|
"lint:publish": "pnpm publint",
|