@tofrankie/eslint 0.0.10 → 0.0.12
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 +12 -0
- package/README.md +2 -0
- package/dist/index.cjs +23 -2
- package/dist/index.mjs +23 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## eslint@0.0.12 (2026-03-13)
|
|
4
|
+
|
|
5
|
+
- Update `style/operator-linebreak` rule
|
|
6
|
+
- Disable `style/indent` rule to avoid conflicts with Prettier
|
|
7
|
+
|
|
8
|
+
## eslint@0.0.11 (2026-03-13)
|
|
9
|
+
|
|
10
|
+
- Add `style/member-delimiter-style` rule
|
|
11
|
+
- Update `style/operator-linebreak` rule
|
|
12
|
+
- Disable `style/indent-binary-ops` rule to avoid conflicts with Prettier
|
|
13
|
+
- Update `@antfu/eslint-config` to v7.7.2 and its related dependencies
|
|
14
|
+
|
|
3
15
|
## eslint@0.0.10 (2026-02-26)
|
|
4
16
|
|
|
5
17
|
- 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,31 @@ const STYLE_PRESET_RULES = {
|
|
|
201
201
|
{ overrides: {
|
|
202
202
|
"&&": "after",
|
|
203
203
|
"||": "after",
|
|
204
|
-
"
|
|
204
|
+
"??": "after",
|
|
205
|
+
"=": "after",
|
|
206
|
+
"+": "after",
|
|
207
|
+
"-": "after",
|
|
208
|
+
"&": "after"
|
|
205
209
|
} }
|
|
206
210
|
],
|
|
207
|
-
"style/comma-dangle": "off"
|
|
211
|
+
"style/comma-dangle": "off",
|
|
212
|
+
"style/indent": "off",
|
|
213
|
+
"style/indent-binary-ops": "off",
|
|
214
|
+
"style/member-delimiter-style": ["error", {
|
|
215
|
+
multiline: {
|
|
216
|
+
delimiter: "none",
|
|
217
|
+
requireLast: false
|
|
218
|
+
},
|
|
219
|
+
singleline: {
|
|
220
|
+
delimiter: "semi",
|
|
221
|
+
requireLast: false
|
|
222
|
+
},
|
|
223
|
+
multilineDetection: "brackets",
|
|
224
|
+
overrides: { interface: { multiline: {
|
|
225
|
+
delimiter: "none",
|
|
226
|
+
requireLast: false
|
|
227
|
+
} } }
|
|
228
|
+
}]
|
|
208
229
|
};
|
|
209
230
|
|
|
210
231
|
//#endregion
|
package/dist/index.mjs
CHANGED
|
@@ -172,10 +172,31 @@ const STYLE_PRESET_RULES = {
|
|
|
172
172
|
{ overrides: {
|
|
173
173
|
"&&": "after",
|
|
174
174
|
"||": "after",
|
|
175
|
-
"
|
|
175
|
+
"??": "after",
|
|
176
|
+
"=": "after",
|
|
177
|
+
"+": "after",
|
|
178
|
+
"-": "after",
|
|
179
|
+
"&": "after"
|
|
176
180
|
} }
|
|
177
181
|
],
|
|
178
|
-
"style/comma-dangle": "off"
|
|
182
|
+
"style/comma-dangle": "off",
|
|
183
|
+
"style/indent": "off",
|
|
184
|
+
"style/indent-binary-ops": "off",
|
|
185
|
+
"style/member-delimiter-style": ["error", {
|
|
186
|
+
multiline: {
|
|
187
|
+
delimiter: "none",
|
|
188
|
+
requireLast: false
|
|
189
|
+
},
|
|
190
|
+
singleline: {
|
|
191
|
+
delimiter: "semi",
|
|
192
|
+
requireLast: false
|
|
193
|
+
},
|
|
194
|
+
multilineDetection: "brackets",
|
|
195
|
+
overrides: { interface: { multiline: {
|
|
196
|
+
delimiter: "none",
|
|
197
|
+
requireLast: false
|
|
198
|
+
} } }
|
|
199
|
+
}]
|
|
179
200
|
};
|
|
180
201
|
|
|
181
202
|
//#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.12",
|
|
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",
|