@abinnovision/eslint-config-react 3.0.3 → 3.1.0-beta.2
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 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,6 +4,22 @@ ESLint configuration for React applications. Built on
|
|
|
4
4
|
[@eslint-react/eslint-plugin](https://eslint-react.xyz) and
|
|
5
5
|
[eslint-plugin-react-hooks](https://www.npmjs.com/package/eslint-plugin-react-hooks).
|
|
6
6
|
|
|
7
|
+
## ESLint Compatibility
|
|
8
|
+
|
|
9
|
+
This package requires **ESLint v9** (`^9.0.0`). ESLint v10 is **not** supported
|
|
10
|
+
because key plugins in the ecosystem have not yet released compatible versions.
|
|
11
|
+
|
|
12
|
+
Until all dependencies fully support ESLint v10, we pin to v9 to ensure a stable
|
|
13
|
+
and working configuration out of the box.
|
|
14
|
+
|
|
15
|
+
## External ESLint Plugin Dependencies
|
|
16
|
+
|
|
17
|
+
| Plugin | Purpose |
|
|
18
|
+
| ---------------------------------- | ------------------------------------------------------------------------- |
|
|
19
|
+
| `@eslint-react/eslint-plugin` | Comprehensive React linting (components, hooks, DOM, web APIs) |
|
|
20
|
+
| `eslint-plugin-react-hooks` | Rules of Hooks enforcement and exhaustive-deps checking |
|
|
21
|
+
| `eslint-plugin-better-tailwindcss` | Tailwind CSS class ordering, conflicts, and validation (tailwind flavour) |
|
|
22
|
+
|
|
7
23
|
## Installation
|
|
8
24
|
|
|
9
25
|
```shell
|
package/dist/index.cjs
CHANGED
|
@@ -256,7 +256,7 @@ var config2 = (0, import_config2.defineConfig)([
|
|
|
256
256
|
*
|
|
257
257
|
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss
|
|
258
258
|
*/
|
|
259
|
-
"better-tailwindcss/no-
|
|
259
|
+
"better-tailwindcss/no-unknown-classes": [
|
|
260
260
|
"warn",
|
|
261
261
|
{ detectComponentClasses: true }
|
|
262
262
|
],
|
package/dist/index.js
CHANGED
|
@@ -219,7 +219,7 @@ var config2 = defineConfig2([
|
|
|
219
219
|
*
|
|
220
220
|
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss
|
|
221
221
|
*/
|
|
222
|
-
"better-tailwindcss/no-
|
|
222
|
+
"better-tailwindcss/no-unknown-classes": [
|
|
223
223
|
"warn",
|
|
224
224
|
{ detectComponentClasses: true }
|
|
225
225
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abinnovision/eslint-config-react",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.1.0-beta.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"npm": true,
|
|
6
6
|
"ghpr": true,
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"eslint-plugin-react-hooks": "^7.0.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@abinnovision/eslint-config-base": "^3.0.
|
|
55
|
+
"@abinnovision/eslint-config-base": "^3.1.0-beta.2",
|
|
56
56
|
"@abinnovision/prettier-config": "^2.1.5",
|
|
57
57
|
"eslint": "^9.39.1",
|
|
58
58
|
"prettier": "^3.6.2",
|
|
@@ -60,6 +60,6 @@
|
|
|
60
60
|
"typescript": "^5.9.3"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"eslint": "^9.0.0
|
|
63
|
+
"eslint": "^9.0.0"
|
|
64
64
|
}
|
|
65
65
|
}
|