@tofrankie/eslint 0.0.10 → 0.0.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/CHANGELOG.md +7 -0
- package/README.md +2 -0
- package/dist/index.cjs +21 -2
- package/dist/index.mjs +21 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## eslint@0.0.11 (2026-03-13)
|
|
4
|
+
|
|
5
|
+
- Add `style/member-delimiter-style` rule
|
|
6
|
+
- Update `style/operator-linebreak` rule
|
|
7
|
+
- Disable `style/indent-binary-ops` rule to avoid conflicts with Prettier
|
|
8
|
+
- Update `@antfu/eslint-config` to v7.7.2 and its related dependencies
|
|
9
|
+
|
|
3
10
|
## eslint@0.0.10 (2026-02-26)
|
|
4
11
|
|
|
5
12
|
- Update `@antfu/eslint-config` to v7.6.1 and its related dependencies
|
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @tofrankie/eslint
|
|
2
2
|
|
|
3
|
+
   
|
|
4
|
+
|
|
3
5
|
A shared ESLint configuration based on [@antfu/eslint-config](https://github.com/antfu/eslint-config), with preset rules tailored to personal preferences.
|
|
4
6
|
|
|
5
7
|
> [!IMPORTANT]
|
package/dist/index.cjs
CHANGED
|
@@ -201,10 +201,29 @@ const STYLE_PRESET_RULES = {
|
|
|
201
201
|
{ overrides: {
|
|
202
202
|
"&&": "after",
|
|
203
203
|
"||": "after",
|
|
204
|
-
"
|
|
204
|
+
"??": "after",
|
|
205
|
+
"=": "after",
|
|
206
|
+
"+": "after",
|
|
207
|
+
"-": "after"
|
|
205
208
|
} }
|
|
206
209
|
],
|
|
207
|
-
"style/comma-dangle": "off"
|
|
210
|
+
"style/comma-dangle": "off",
|
|
211
|
+
"style/indent-binary-ops": "off",
|
|
212
|
+
"style/member-delimiter-style": ["error", {
|
|
213
|
+
multiline: {
|
|
214
|
+
delimiter: "none",
|
|
215
|
+
requireLast: false
|
|
216
|
+
},
|
|
217
|
+
singleline: {
|
|
218
|
+
delimiter: "semi",
|
|
219
|
+
requireLast: false
|
|
220
|
+
},
|
|
221
|
+
multilineDetection: "brackets",
|
|
222
|
+
overrides: { interface: { multiline: {
|
|
223
|
+
delimiter: "none",
|
|
224
|
+
requireLast: false
|
|
225
|
+
} } }
|
|
226
|
+
}]
|
|
208
227
|
};
|
|
209
228
|
|
|
210
229
|
//#endregion
|
package/dist/index.mjs
CHANGED
|
@@ -172,10 +172,29 @@ const STYLE_PRESET_RULES = {
|
|
|
172
172
|
{ overrides: {
|
|
173
173
|
"&&": "after",
|
|
174
174
|
"||": "after",
|
|
175
|
-
"
|
|
175
|
+
"??": "after",
|
|
176
|
+
"=": "after",
|
|
177
|
+
"+": "after",
|
|
178
|
+
"-": "after"
|
|
176
179
|
} }
|
|
177
180
|
],
|
|
178
|
-
"style/comma-dangle": "off"
|
|
181
|
+
"style/comma-dangle": "off",
|
|
182
|
+
"style/indent-binary-ops": "off",
|
|
183
|
+
"style/member-delimiter-style": ["error", {
|
|
184
|
+
multiline: {
|
|
185
|
+
delimiter: "none",
|
|
186
|
+
requireLast: false
|
|
187
|
+
},
|
|
188
|
+
singleline: {
|
|
189
|
+
delimiter: "semi",
|
|
190
|
+
requireLast: false
|
|
191
|
+
},
|
|
192
|
+
multilineDetection: "brackets",
|
|
193
|
+
overrides: { interface: { multiline: {
|
|
194
|
+
delimiter: "none",
|
|
195
|
+
requireLast: false
|
|
196
|
+
} } }
|
|
197
|
+
}]
|
|
179
198
|
};
|
|
180
199
|
|
|
181
200
|
//#endregion
|
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.0.11",
|
|
5
5
|
"description": "Shared ESLint configuration",
|
|
6
6
|
"author": "Frankie <1426203851@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -41,21 +41,21 @@
|
|
|
41
41
|
"node": ">=18"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@antfu/eslint-config": "
|
|
45
|
-
"eslint": "
|
|
44
|
+
"@antfu/eslint-config": "^7.6.1",
|
|
45
|
+
"eslint": "^9.10.0 || ^10.0.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@eslint-react/eslint-plugin": "^2.13.0",
|
|
49
49
|
"eslint-plugin-format": "^2.0.1",
|
|
50
|
-
"eslint-plugin-jsdoc": "^62.
|
|
50
|
+
"eslint-plugin-jsdoc": "^62.8.0",
|
|
51
51
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
52
52
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
53
53
|
"lodash.merge": "^4.6.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@antfu/eslint-config": "^7.
|
|
56
|
+
"@antfu/eslint-config": "^7.7.2",
|
|
57
57
|
"@types/lodash.merge": "^4.6.9",
|
|
58
|
-
"eslint": "^9.39.
|
|
58
|
+
"eslint": "^9.39.4"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "tsdown",
|