@tofrankie/eslint 0.1.0 → 0.2.1
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 +9 -0
- package/dist/index.cjs +4 -5
- package/dist/index.mjs +4 -5
- package/package.json +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## eslint@0.2.1 (2026-04-09)
|
|
4
|
+
|
|
5
|
+
- Update `style/operator-linebreak` rule
|
|
6
|
+
|
|
7
|
+
## eslint@0.2.0 (2026-04-09)
|
|
8
|
+
|
|
9
|
+
- Update `@antfu/eslint-config` to `v8.1.1`
|
|
10
|
+
- Update `prettierOptions.printWidth` to `100`
|
|
11
|
+
|
|
3
12
|
## eslint@0.1.0 (2026-04-08)
|
|
4
13
|
|
|
5
14
|
### 📢
|
package/dist/index.cjs
CHANGED
|
@@ -47,9 +47,7 @@ const ANTFU_LESS_OPINIONATED_RULES = {
|
|
|
47
47
|
*/
|
|
48
48
|
const E18E_RULES = {
|
|
49
49
|
"e18e/ban-dependencies": "off",
|
|
50
|
-
"e18e/prefer-
|
|
51
|
-
"e18e/prefer-static-regex": "off",
|
|
52
|
-
"e18e/prefer-array-at": "off"
|
|
50
|
+
"e18e/prefer-static-regex": "off"
|
|
53
51
|
};
|
|
54
52
|
//#endregion
|
|
55
53
|
//#region src/presets/eslint-comments.ts
|
|
@@ -165,7 +163,8 @@ const STYLISTIC_RULES = {
|
|
|
165
163
|
"after",
|
|
166
164
|
{ overrides: {
|
|
167
165
|
"?": "before",
|
|
168
|
-
":": "before"
|
|
166
|
+
":": "before",
|
|
167
|
+
"|": "before"
|
|
169
168
|
} }
|
|
170
169
|
],
|
|
171
170
|
"style/member-delimiter-style": ["error", {
|
|
@@ -498,7 +497,7 @@ const DEFAULT_OPTIONS = { formatters: {
|
|
|
498
497
|
svg: false,
|
|
499
498
|
xml: false,
|
|
500
499
|
prettierOptions: {
|
|
501
|
-
printWidth:
|
|
500
|
+
printWidth: 100,
|
|
502
501
|
semi: false,
|
|
503
502
|
singleQuote: true,
|
|
504
503
|
arrowParens: "avoid",
|
package/dist/index.mjs
CHANGED
|
@@ -24,9 +24,7 @@ const ANTFU_LESS_OPINIONATED_RULES = {
|
|
|
24
24
|
*/
|
|
25
25
|
const E18E_RULES = {
|
|
26
26
|
"e18e/ban-dependencies": "off",
|
|
27
|
-
"e18e/prefer-
|
|
28
|
-
"e18e/prefer-static-regex": "off",
|
|
29
|
-
"e18e/prefer-array-at": "off"
|
|
27
|
+
"e18e/prefer-static-regex": "off"
|
|
30
28
|
};
|
|
31
29
|
//#endregion
|
|
32
30
|
//#region src/presets/eslint-comments.ts
|
|
@@ -142,7 +140,8 @@ const STYLISTIC_RULES = {
|
|
|
142
140
|
"after",
|
|
143
141
|
{ overrides: {
|
|
144
142
|
"?": "before",
|
|
145
|
-
":": "before"
|
|
143
|
+
":": "before",
|
|
144
|
+
"|": "before"
|
|
146
145
|
} }
|
|
147
146
|
],
|
|
148
147
|
"style/member-delimiter-style": ["error", {
|
|
@@ -475,7 +474,7 @@ const DEFAULT_OPTIONS = { formatters: {
|
|
|
475
474
|
svg: false,
|
|
476
475
|
xml: false,
|
|
477
476
|
prettierOptions: {
|
|
478
|
-
printWidth:
|
|
477
|
+
printWidth: 100,
|
|
479
478
|
semi: false,
|
|
480
479
|
singleQuote: true,
|
|
481
480
|
arrowParens: "avoid",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tofrankie/eslint",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"description": "Shared ESLint configuration",
|
|
6
6
|
"author": "Frankie <1426203851@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -55,13 +55,13 @@
|
|
|
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": {
|