@tofrankie/eslint 0.0.23 → 0.2.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 +20 -0
- package/README.md +6 -6
- package/dist/index.cjs +6 -6
- package/dist/index.mjs +6 -6
- package/package.json +7 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## eslint@0.2.0 (2026-04-09)
|
|
4
|
+
|
|
5
|
+
- Update `@antfu/eslint-config` to `v8.1.1`
|
|
6
|
+
- Update `prettierOptions.printWidth` to `100`
|
|
7
|
+
|
|
8
|
+
## eslint@0.1.0 (2026-04-08)
|
|
9
|
+
|
|
10
|
+
### 📢
|
|
11
|
+
|
|
12
|
+
- Require Node.js 22 (previously `^20.19.0`)
|
|
13
|
+
- Require ESLint 10 (previously `^9.10.0 || ^10.0.0`)
|
|
14
|
+
- Require TypeScript 5.0
|
|
15
|
+
|
|
16
|
+
### 🔧
|
|
17
|
+
|
|
18
|
+
- 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)
|
|
19
|
+
- Disable `e18e/prefer-array-at` rule
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
3
23
|
## eslint@0.0.23 (2026-04-07)
|
|
4
24
|
|
|
5
25
|
- 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
|
@@ -47,7 +47,6 @@ const ANTFU_LESS_OPINIONATED_RULES = {
|
|
|
47
47
|
*/
|
|
48
48
|
const E18E_RULES = {
|
|
49
49
|
"e18e/ban-dependencies": "off",
|
|
50
|
-
"e18e/prefer-array-to-sorted": "off",
|
|
51
50
|
"e18e/prefer-static-regex": "off"
|
|
52
51
|
};
|
|
53
52
|
//#endregion
|
|
@@ -128,11 +127,12 @@ const PNPM_RULES = { "pnpm/yaml-enforce-settings": "off" };
|
|
|
128
127
|
//#endregion
|
|
129
128
|
//#region src/presets/react.ts
|
|
130
129
|
/**
|
|
131
|
-
* - rule: `react
|
|
132
|
-
* -
|
|
133
|
-
*
|
|
130
|
+
* - rule: `react/*`
|
|
131
|
+
* - original rule: `react-x/*`
|
|
132
|
+
* - plugin: `@eslint-react/eslint-plugin`
|
|
133
|
+
* @see https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin
|
|
134
134
|
*/
|
|
135
|
-
const REACT_RULES = { "react
|
|
135
|
+
const REACT_RULES = { "react/set-state-in-effect": "off" };
|
|
136
136
|
//#endregion
|
|
137
137
|
//#region src/presets/stylistic.ts
|
|
138
138
|
/**
|
|
@@ -496,7 +496,7 @@ const DEFAULT_OPTIONS = { formatters: {
|
|
|
496
496
|
svg: false,
|
|
497
497
|
xml: false,
|
|
498
498
|
prettierOptions: {
|
|
499
|
-
printWidth:
|
|
499
|
+
printWidth: 100,
|
|
500
500
|
semi: false,
|
|
501
501
|
singleQuote: true,
|
|
502
502
|
arrowParens: "avoid",
|
package/dist/index.mjs
CHANGED
|
@@ -24,7 +24,6 @@ const ANTFU_LESS_OPINIONATED_RULES = {
|
|
|
24
24
|
*/
|
|
25
25
|
const E18E_RULES = {
|
|
26
26
|
"e18e/ban-dependencies": "off",
|
|
27
|
-
"e18e/prefer-array-to-sorted": "off",
|
|
28
27
|
"e18e/prefer-static-regex": "off"
|
|
29
28
|
};
|
|
30
29
|
//#endregion
|
|
@@ -105,11 +104,12 @@ const PNPM_RULES = { "pnpm/yaml-enforce-settings": "off" };
|
|
|
105
104
|
//#endregion
|
|
106
105
|
//#region src/presets/react.ts
|
|
107
106
|
/**
|
|
108
|
-
* - rule: `react
|
|
109
|
-
* -
|
|
110
|
-
*
|
|
107
|
+
* - rule: `react/*`
|
|
108
|
+
* - original rule: `react-x/*`
|
|
109
|
+
* - plugin: `@eslint-react/eslint-plugin`
|
|
110
|
+
* @see https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin
|
|
111
111
|
*/
|
|
112
|
-
const REACT_RULES = { "react
|
|
112
|
+
const REACT_RULES = { "react/set-state-in-effect": "off" };
|
|
113
113
|
//#endregion
|
|
114
114
|
//#region src/presets/stylistic.ts
|
|
115
115
|
/**
|
|
@@ -473,7 +473,7 @@ const DEFAULT_OPTIONS = { formatters: {
|
|
|
473
473
|
svg: false,
|
|
474
474
|
xml: false,
|
|
475
475
|
prettierOptions: {
|
|
476
|
-
printWidth:
|
|
476
|
+
printWidth: 100,
|
|
477
477
|
semi: false,
|
|
478
478
|
singleQuote: true,
|
|
479
479
|
arrowParens: "avoid",
|
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.2.0",
|
|
5
5
|
"description": "Shared ESLint configuration",
|
|
6
6
|
"author": "Frankie <1426203851@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -46,22 +46,22 @@
|
|
|
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",
|
|
56
56
|
"@angular-eslint/eslint-plugin-template": "^21.3.1",
|
|
57
57
|
"@angular-eslint/template-parser": "^21.3.1",
|
|
58
|
-
"@antfu/eslint-config": "^8.
|
|
58
|
+
"@antfu/eslint-config": "^8.1.1",
|
|
59
59
|
"@eslint-react/eslint-plugin": "^3.0.0",
|
|
60
|
-
"@next/eslint-plugin-next": "^16.2.
|
|
60
|
+
"@next/eslint-plugin-next": "^16.2.3",
|
|
61
61
|
"@prettier/plugin-xml": "^3.4.2",
|
|
62
|
-
"@unocss/eslint-plugin": "^66.6.
|
|
62
|
+
"@unocss/eslint-plugin": "^66.6.8",
|
|
63
63
|
"defu": "^6.1.7",
|
|
64
|
-
"eslint-plugin-astro": "^1.
|
|
64
|
+
"eslint-plugin-astro": "^1.7.0",
|
|
65
65
|
"eslint-plugin-format": "^2.0.1",
|
|
66
66
|
"eslint-plugin-jsdoc": "^62.9.0",
|
|
67
67
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
@@ -74,7 +74,6 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"eslint": "^10.2.0",
|
|
77
|
-
"vitest": "^4.1.3",
|
|
78
77
|
"@tofrankie/tsconfig": "0.0.5"
|
|
79
78
|
},
|
|
80
79
|
"scripts": {
|