@tofrankie/eslint 0.0.23 → 0.1.0
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/CHANGELOG.md +15 -0
- package/README.md +6 -6
- package/dist/index.cjs +7 -5
- package/dist/index.mjs +7 -5
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## eslint@0.1.0 (2026-04-08)
|
|
4
|
+
|
|
5
|
+
### 📢
|
|
6
|
+
|
|
7
|
+
- Require Node.js 22 (previously `^20.19.0`)
|
|
8
|
+
- Require ESLint 10 (previously `^9.10.0 || ^10.0.0`)
|
|
9
|
+
- Require TypeScript 5.0
|
|
10
|
+
|
|
11
|
+
### 🔧
|
|
12
|
+
|
|
13
|
+
- Remove `eslint-plugin-react-hooks` in favor of `@eslint-react/eslint-plugin` integration. Migrate rule overrides from `react-hooks/*` to `react/*` (`@antfu/eslint-config` renames the former `react-x/*` prefix to `react/*`). [Details](https://www.eslint-react.xyz/docs/migrating-from-eslint-plugin-react-hooks)
|
|
14
|
+
- Disable `e18e/prefer-array-at` rule
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
3
18
|
## eslint@0.0.23 (2026-04-07)
|
|
4
19
|
|
|
5
20
|
- Fix `style/object-curly-spacing` rule name
|
package/README.md
CHANGED
|
@@ -7,14 +7,14 @@ Shared [ESLint](https://eslint.org/) configuration built on [@antfu/eslint-confi
|
|
|
7
7
|
> [!IMPORTANT]
|
|
8
8
|
> Before 1.0.0, releases may include breaking changes. Read the [CHANGELOG](CHANGELOG.md) before upgrading.
|
|
9
9
|
|
|
10
|
-
## Requirements
|
|
11
|
-
|
|
12
|
-
- Node.js >= 20
|
|
13
|
-
- ESLint >= 9.10.0
|
|
14
|
-
- Flat config only
|
|
15
|
-
|
|
16
10
|
## Quick Start
|
|
17
11
|
|
|
12
|
+
> [!NOTE]
|
|
13
|
+
>
|
|
14
|
+
> - Node.js: 22.0.0
|
|
15
|
+
> - ESLint: 10.0.0
|
|
16
|
+
> - TypeScript: 5.0.0
|
|
17
|
+
|
|
18
18
|
Install dependencies:
|
|
19
19
|
|
|
20
20
|
```bash
|
package/dist/index.cjs
CHANGED
|
@@ -48,7 +48,8 @@ const ANTFU_LESS_OPINIONATED_RULES = {
|
|
|
48
48
|
const E18E_RULES = {
|
|
49
49
|
"e18e/ban-dependencies": "off",
|
|
50
50
|
"e18e/prefer-array-to-sorted": "off",
|
|
51
|
-
"e18e/prefer-static-regex": "off"
|
|
51
|
+
"e18e/prefer-static-regex": "off",
|
|
52
|
+
"e18e/prefer-array-at": "off"
|
|
52
53
|
};
|
|
53
54
|
//#endregion
|
|
54
55
|
//#region src/presets/eslint-comments.ts
|
|
@@ -128,11 +129,12 @@ const PNPM_RULES = { "pnpm/yaml-enforce-settings": "off" };
|
|
|
128
129
|
//#endregion
|
|
129
130
|
//#region src/presets/react.ts
|
|
130
131
|
/**
|
|
131
|
-
* - rule: `react
|
|
132
|
-
* -
|
|
133
|
-
*
|
|
132
|
+
* - rule: `react/*`
|
|
133
|
+
* - original rule: `react-x/*`
|
|
134
|
+
* - plugin: `@eslint-react/eslint-plugin`
|
|
135
|
+
* @see https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin
|
|
134
136
|
*/
|
|
135
|
-
const REACT_RULES = { "react
|
|
137
|
+
const REACT_RULES = { "react/set-state-in-effect": "off" };
|
|
136
138
|
//#endregion
|
|
137
139
|
//#region src/presets/stylistic.ts
|
|
138
140
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -25,7 +25,8 @@ const ANTFU_LESS_OPINIONATED_RULES = {
|
|
|
25
25
|
const E18E_RULES = {
|
|
26
26
|
"e18e/ban-dependencies": "off",
|
|
27
27
|
"e18e/prefer-array-to-sorted": "off",
|
|
28
|
-
"e18e/prefer-static-regex": "off"
|
|
28
|
+
"e18e/prefer-static-regex": "off",
|
|
29
|
+
"e18e/prefer-array-at": "off"
|
|
29
30
|
};
|
|
30
31
|
//#endregion
|
|
31
32
|
//#region src/presets/eslint-comments.ts
|
|
@@ -105,11 +106,12 @@ const PNPM_RULES = { "pnpm/yaml-enforce-settings": "off" };
|
|
|
105
106
|
//#endregion
|
|
106
107
|
//#region src/presets/react.ts
|
|
107
108
|
/**
|
|
108
|
-
* - rule: `react
|
|
109
|
-
* -
|
|
110
|
-
*
|
|
109
|
+
* - rule: `react/*`
|
|
110
|
+
* - original rule: `react-x/*`
|
|
111
|
+
* - plugin: `@eslint-react/eslint-plugin`
|
|
112
|
+
* @see https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin
|
|
111
113
|
*/
|
|
112
|
-
const REACT_RULES = { "react
|
|
114
|
+
const REACT_RULES = { "react/set-state-in-effect": "off" };
|
|
113
115
|
//#endregion
|
|
114
116
|
//#region src/presets/stylistic.ts
|
|
115
117
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tofrankie/eslint",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "0.1.0",
|
|
5
5
|
"description": "Shared ESLint configuration",
|
|
6
6
|
"author": "Frankie <1426203851@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
|
-
"node": "^
|
|
49
|
+
"node": "^22.0.0 || ^24.0.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"eslint": "^
|
|
52
|
+
"eslint": "^10.0.0"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@angular-eslint/eslint-plugin": "^21.3.1",
|