@pengzhanbo/eslint-config 1.45.0 → 1.46.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/dist/index.d.mts +785 -350
- package/dist/index.mjs +15 -10
- package/package.json +27 -29
package/dist/index.mjs
CHANGED
|
@@ -892,7 +892,7 @@ async function jsonc(options = {}) {
|
|
|
892
892
|
"jsonc/array-bracket-spacing": ["error", "never"],
|
|
893
893
|
"jsonc/comma-dangle": ["error", "never"],
|
|
894
894
|
"jsonc/comma-style": ["error", "last"],
|
|
895
|
-
"jsonc/indent": ["error", indent],
|
|
895
|
+
"jsonc/indent": ["error", typeof indent === "number" ? indent : indent === "tab" ? "tab" : 2],
|
|
896
896
|
"jsonc/key-spacing": ["error", {
|
|
897
897
|
afterColon: true,
|
|
898
898
|
beforeColon: false
|
|
@@ -1087,18 +1087,22 @@ async function perfectionist() {
|
|
|
1087
1087
|
"type-sibling",
|
|
1088
1088
|
"type-index"
|
|
1089
1089
|
],
|
|
1090
|
-
"builtin",
|
|
1091
|
-
"external",
|
|
1092
|
-
"internal",
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1090
|
+
"value-builtin",
|
|
1091
|
+
"value-external",
|
|
1092
|
+
"value-internal",
|
|
1093
|
+
[
|
|
1094
|
+
"value-parent",
|
|
1095
|
+
"value-sibling",
|
|
1096
|
+
"value-index"
|
|
1097
|
+
],
|
|
1096
1098
|
"side-effect",
|
|
1099
|
+
"ts-equals-import",
|
|
1097
1100
|
"unknown",
|
|
1098
1101
|
"style",
|
|
1099
1102
|
"side-effect-style"
|
|
1100
1103
|
],
|
|
1101
1104
|
newlinesBetween: "ignore",
|
|
1105
|
+
newlinesInside: "ignore",
|
|
1102
1106
|
order: "asc",
|
|
1103
1107
|
type: "natural"
|
|
1104
1108
|
}],
|
|
@@ -1334,6 +1338,7 @@ async function react(options = {}) {
|
|
|
1334
1338
|
"react/no-use-context": "warn",
|
|
1335
1339
|
"react/no-useless-forward-ref": "warn",
|
|
1336
1340
|
"react/prefer-use-state-lazy-initialization": "warn",
|
|
1341
|
+
"react/prefer-namespace-import": "error",
|
|
1337
1342
|
"react-dom/no-dangerously-set-innerhtml": "warn",
|
|
1338
1343
|
"react-dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
1339
1344
|
"react-dom/no-find-dom-node": "error",
|
|
@@ -1781,7 +1786,7 @@ async function svelte(options = {}) {
|
|
|
1781
1786
|
"svelte/html-quotes": ["error", { prefer: quotes === "backtick" ? "double" : quotes }],
|
|
1782
1787
|
"svelte/indent": ["error", {
|
|
1783
1788
|
alignAttributesVertically: true,
|
|
1784
|
-
indent
|
|
1789
|
+
indent: typeof indent === "number" ? indent : indent === "tab" ? "tab" : 2
|
|
1785
1790
|
}],
|
|
1786
1791
|
"svelte/mustache-spacing": "error",
|
|
1787
1792
|
"svelte/no-spaces-around-equal-signs-in-attribute": "error",
|
|
@@ -1893,7 +1898,7 @@ async function toml(options = {}) {
|
|
|
1893
1898
|
"toml/array-bracket-newline": "error",
|
|
1894
1899
|
"toml/array-bracket-spacing": "error",
|
|
1895
1900
|
"toml/array-element-newline": "error",
|
|
1896
|
-
"toml/indent": ["error", indent === "tab" ?
|
|
1901
|
+
"toml/indent": ["error", typeof indent === "number" ? indent : indent === "tab" ? "tab" : 2],
|
|
1897
1902
|
"toml/inline-table-curly-spacing": "error",
|
|
1898
1903
|
"toml/key-spacing": "error",
|
|
1899
1904
|
"toml/padding-line-between-pairs": "error",
|
|
@@ -2336,7 +2341,7 @@ async function yaml(options = {}) {
|
|
|
2336
2341
|
"yaml/flow-mapping-curly-spacing": "error",
|
|
2337
2342
|
"yaml/flow-sequence-bracket-newline": "error",
|
|
2338
2343
|
"yaml/flow-sequence-bracket-spacing": "error",
|
|
2339
|
-
"yaml/indent": ["error", indent === "
|
|
2344
|
+
"yaml/indent": ["error", typeof indent === "number" ? indent : 2],
|
|
2340
2345
|
"yaml/key-spacing": "error",
|
|
2341
2346
|
"yaml/no-tab-indent": "error",
|
|
2342
2347
|
"yaml/quotes": ["error", {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pengzhanbo/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.46.0",
|
|
5
5
|
"author": "pengzhanbo <q942450674@outlook.com> (https://github/pengzhanbo/)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/pengzhanbo/configs#readme",
|
|
@@ -17,27 +17,25 @@
|
|
|
17
17
|
".": "./dist/index.mjs",
|
|
18
18
|
"./package.json": "./package.json"
|
|
19
19
|
},
|
|
20
|
-
"main": "./dist/index.mjs",
|
|
21
|
-
"module": "./dist/index.mjs",
|
|
22
20
|
"types": "./dist/index.d.mts",
|
|
23
21
|
"files": [
|
|
24
22
|
"dist"
|
|
25
23
|
],
|
|
26
24
|
"peerDependencies": {
|
|
27
|
-
"@eslint-react/eslint-plugin": "^2.
|
|
28
|
-
"@next/eslint-plugin-next": "^16.1.
|
|
25
|
+
"@eslint-react/eslint-plugin": "^2.7.1",
|
|
26
|
+
"@next/eslint-plugin-next": "^16.1.2",
|
|
29
27
|
"@prettier/plugin-xml": "^3.4.2",
|
|
30
|
-
"@unocss/eslint-plugin": "^66.
|
|
28
|
+
"@unocss/eslint-plugin": "^66.6.0",
|
|
31
29
|
"astro-eslint-parser": "^1.2.2",
|
|
32
30
|
"eslint": "^9.39.2",
|
|
33
31
|
"eslint-plugin-astro": "^1.5.0",
|
|
34
|
-
"eslint-plugin-format": "^1.1
|
|
32
|
+
"eslint-plugin-format": "^1.3.1",
|
|
35
33
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
36
34
|
"eslint-plugin-react-refresh": "^0.4.26",
|
|
37
35
|
"eslint-plugin-solid": "^0.14.5",
|
|
38
|
-
"eslint-plugin-svelte": "^3.
|
|
36
|
+
"eslint-plugin-svelte": "^3.14.0",
|
|
39
37
|
"eslint-plugin-tailwindcss": "^3.18.2",
|
|
40
|
-
"eslint-plugin-vue": "^10.
|
|
38
|
+
"eslint-plugin-vue": "^10.7.0",
|
|
41
39
|
"eslint-plugin-vuejs-accessibility": "^2.4.1",
|
|
42
40
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
43
41
|
"prettier-plugin-astro": "^0.14.1",
|
|
@@ -103,61 +101,61 @@
|
|
|
103
101
|
},
|
|
104
102
|
"dependencies": {
|
|
105
103
|
"@antfu/install-pkg": "^1.1.0",
|
|
106
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.
|
|
104
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.6.0",
|
|
107
105
|
"@eslint/markdown": "^7.5.1",
|
|
108
|
-
"@stylistic/eslint-plugin": "^5.
|
|
109
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
110
|
-
"@typescript-eslint/parser": "^8.
|
|
111
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
106
|
+
"@stylistic/eslint-plugin": "^5.7.0",
|
|
107
|
+
"@typescript-eslint/eslint-plugin": "^8.53.0",
|
|
108
|
+
"@typescript-eslint/parser": "^8.53.0",
|
|
109
|
+
"@vitest/eslint-plugin": "^1.6.6",
|
|
112
110
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
113
111
|
"eslint-flat-config-utils": "^2.1.4",
|
|
114
112
|
"eslint-merge-processors": "^2.0.0",
|
|
115
|
-
"eslint-plugin-antfu": "^3.1.
|
|
113
|
+
"eslint-plugin-antfu": "^3.1.3",
|
|
116
114
|
"eslint-plugin-command": "^3.4.0",
|
|
117
115
|
"eslint-plugin-erasable-syntax-only": "^0.4.0",
|
|
118
|
-
"eslint-plugin-import-lite": "^0.
|
|
119
|
-
"eslint-plugin-jsdoc": "^
|
|
116
|
+
"eslint-plugin-import-lite": "^0.5.0",
|
|
117
|
+
"eslint-plugin-jsdoc": "^62.0.0",
|
|
120
118
|
"eslint-plugin-jsonc": "^2.21.0",
|
|
121
119
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
122
|
-
"eslint-plugin-n": "^17.23.
|
|
120
|
+
"eslint-plugin-n": "^17.23.2",
|
|
123
121
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
124
|
-
"eslint-plugin-perfectionist": "^5.
|
|
122
|
+
"eslint-plugin-perfectionist": "^5.3.1",
|
|
125
123
|
"eslint-plugin-pnpm": "^1.4.3",
|
|
126
124
|
"eslint-plugin-regexp": "^2.10.0",
|
|
127
|
-
"eslint-plugin-toml": "^0.
|
|
125
|
+
"eslint-plugin-toml": "^1.0.0",
|
|
128
126
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
129
127
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
130
128
|
"eslint-plugin-yml": "^1.19.1",
|
|
131
|
-
"globals": "^
|
|
129
|
+
"globals": "^17.0.0",
|
|
132
130
|
"jsonc-eslint-parser": "^2.4.2",
|
|
133
131
|
"local-pkg": "^1.1.2",
|
|
134
132
|
"parse-gitignore": "^2.0.0",
|
|
135
|
-
"toml-eslint-parser": "^0.
|
|
133
|
+
"toml-eslint-parser": "^1.0.2",
|
|
136
134
|
"yaml-eslint-parser": "^1.3.2"
|
|
137
135
|
},
|
|
138
136
|
"devDependencies": {
|
|
139
|
-
"@eslint-react/eslint-plugin": "^2.
|
|
137
|
+
"@eslint-react/eslint-plugin": "^2.7.1",
|
|
140
138
|
"@eslint/config-inspector": "^1.4.2",
|
|
141
|
-
"@next/eslint-plugin-next": "^16.1.
|
|
139
|
+
"@next/eslint-plugin-next": "^16.1.2",
|
|
142
140
|
"@prettier/plugin-xml": "^3.4.2",
|
|
143
|
-
"@unocss/eslint-plugin": "^66.
|
|
141
|
+
"@unocss/eslint-plugin": "^66.6.0",
|
|
144
142
|
"astro-eslint-parser": "^1.2.2",
|
|
145
143
|
"eslint": "^9.39.2",
|
|
146
144
|
"eslint-plugin-astro": "^1.5.0",
|
|
147
|
-
"eslint-plugin-format": "^1.1
|
|
145
|
+
"eslint-plugin-format": "^1.3.1",
|
|
148
146
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
149
147
|
"eslint-plugin-react-refresh": "^0.4.26",
|
|
150
148
|
"eslint-plugin-solid": "^0.14.5",
|
|
151
|
-
"eslint-plugin-svelte": "^3.
|
|
149
|
+
"eslint-plugin-svelte": "^3.14.0",
|
|
152
150
|
"eslint-plugin-tailwindcss": "^3.18.2",
|
|
153
|
-
"eslint-plugin-vue": "^10.
|
|
151
|
+
"eslint-plugin-vue": "^10.7.0",
|
|
154
152
|
"eslint-plugin-vuejs-accessibility": "^2.4.1",
|
|
155
153
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
156
154
|
"eslint-typegen": "^2.3.0",
|
|
157
155
|
"find-up-simple": "^1.0.1",
|
|
158
156
|
"prettier-plugin-astro": "^0.14.1",
|
|
159
157
|
"prettier-plugin-slidev": "^1.0.5",
|
|
160
|
-
"svelte": "^5.46.
|
|
158
|
+
"svelte": "^5.46.4",
|
|
161
159
|
"svelte-eslint-parser": "^1.4.1",
|
|
162
160
|
"vue-eslint-parser": "^10.2.0"
|
|
163
161
|
},
|