@lntvow/eslint-config 9.6.0 → 9.6.2
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.cjs +3 -10
- package/dist/index.mjs +3 -10
- package/package.json +3 -2
package/dist/index.cjs
CHANGED
|
@@ -788,14 +788,7 @@ async function vue(options = {}) {
|
|
|
788
788
|
// vue禁用标签缩进
|
|
789
789
|
"vue/html-indent": "off",
|
|
790
790
|
// 标签自闭合
|
|
791
|
-
"vue/html-self-closing":
|
|
792
|
-
"error",
|
|
793
|
-
{
|
|
794
|
-
html: { void: "always", normal: "always", component: "always" },
|
|
795
|
-
svg: "always",
|
|
796
|
-
math: "always"
|
|
797
|
-
}
|
|
798
|
-
],
|
|
791
|
+
"vue/html-self-closing": "error",
|
|
799
792
|
// vue禁用标签属性换行
|
|
800
793
|
"vue/max-attributes-per-line": "off",
|
|
801
794
|
// vue内容强制换行
|
|
@@ -1051,7 +1044,7 @@ function lntvow(options = {}, ...userConfigs) {
|
|
|
1051
1044
|
javascript({
|
|
1052
1045
|
...resolveSubOptions(options, "javascript")
|
|
1053
1046
|
}),
|
|
1054
|
-
imports({ typescript: !!enableTypeScript })
|
|
1047
|
+
imports({ typescript: !!enableTypeScript }),
|
|
1055
1048
|
// comments(),
|
|
1056
1049
|
// node(),
|
|
1057
1050
|
// jsdoc({
|
|
@@ -1061,6 +1054,7 @@ function lntvow(options = {}, ...userConfigs) {
|
|
|
1061
1054
|
// command(),
|
|
1062
1055
|
// Optional plugins (installed but not enabled by default)
|
|
1063
1056
|
// perfectionist(),
|
|
1057
|
+
prettier()
|
|
1064
1058
|
);
|
|
1065
1059
|
if (enableGitignore) {
|
|
1066
1060
|
configs2.push(gitignore({ ...resolveSubOptions(options, "gitignore") }));
|
|
@@ -1092,7 +1086,6 @@ function lntvow(options = {}, ...userConfigs) {
|
|
|
1092
1086
|
if (Object.keys(fusedConfig).length) {
|
|
1093
1087
|
configs2.push([fusedConfig]);
|
|
1094
1088
|
}
|
|
1095
|
-
configs2.push(prettier());
|
|
1096
1089
|
let composer = new import_eslint_flat_config_utils.FlatConfigComposer();
|
|
1097
1090
|
composer = composer.append(...configs2, ...userConfigs);
|
|
1098
1091
|
if (autoRenamePlugins) {
|
package/dist/index.mjs
CHANGED
|
@@ -708,14 +708,7 @@ async function vue(options = {}) {
|
|
|
708
708
|
// vue禁用标签缩进
|
|
709
709
|
"vue/html-indent": "off",
|
|
710
710
|
// 标签自闭合
|
|
711
|
-
"vue/html-self-closing":
|
|
712
|
-
"error",
|
|
713
|
-
{
|
|
714
|
-
html: { void: "always", normal: "always", component: "always" },
|
|
715
|
-
svg: "always",
|
|
716
|
-
math: "always"
|
|
717
|
-
}
|
|
718
|
-
],
|
|
711
|
+
"vue/html-self-closing": "error",
|
|
719
712
|
// vue禁用标签属性换行
|
|
720
713
|
"vue/max-attributes-per-line": "off",
|
|
721
714
|
// vue内容强制换行
|
|
@@ -971,7 +964,7 @@ function lntvow(options = {}, ...userConfigs) {
|
|
|
971
964
|
javascript({
|
|
972
965
|
...resolveSubOptions(options, "javascript")
|
|
973
966
|
}),
|
|
974
|
-
imports({ typescript: !!enableTypeScript })
|
|
967
|
+
imports({ typescript: !!enableTypeScript }),
|
|
975
968
|
// comments(),
|
|
976
969
|
// node(),
|
|
977
970
|
// jsdoc({
|
|
@@ -981,6 +974,7 @@ function lntvow(options = {}, ...userConfigs) {
|
|
|
981
974
|
// command(),
|
|
982
975
|
// Optional plugins (installed but not enabled by default)
|
|
983
976
|
// perfectionist(),
|
|
977
|
+
prettier()
|
|
984
978
|
);
|
|
985
979
|
if (enableGitignore) {
|
|
986
980
|
configs2.push(gitignore({ ...resolveSubOptions(options, "gitignore") }));
|
|
@@ -1012,7 +1006,6 @@ function lntvow(options = {}, ...userConfigs) {
|
|
|
1012
1006
|
if (Object.keys(fusedConfig).length) {
|
|
1013
1007
|
configs2.push([fusedConfig]);
|
|
1014
1008
|
}
|
|
1015
|
-
configs2.push(prettier());
|
|
1016
1009
|
let composer = new FlatConfigComposer();
|
|
1017
1010
|
composer = composer.append(...configs2, ...userConfigs);
|
|
1018
1011
|
if (autoRenamePlugins) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lntvow/eslint-config",
|
|
3
|
-
"version": "9.6.
|
|
3
|
+
"version": "9.6.2",
|
|
4
4
|
"author": "lntvow",
|
|
5
5
|
"description": "eslint-config",
|
|
6
6
|
"type": "module",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"eslint": "^9.6.0",
|
|
42
42
|
"eslint-config-prettier": "^9.1.0",
|
|
43
43
|
"eslint-flat-config-utils": "^0.2.5",
|
|
44
|
+
"eslint-import-resolver-alias": "^1.1.2",
|
|
44
45
|
"eslint-plugin-import-x": "^0.5.3",
|
|
45
46
|
"eslint-plugin-prettier": "^5.1.3",
|
|
46
47
|
"eslint-plugin-regexp": "^2.6.0",
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
"tslib": "^2.6.3",
|
|
53
54
|
"typescript": "^5.5.3",
|
|
54
55
|
"vue-eslint-parser": "^9.4.3",
|
|
55
|
-
"@lntvow/eslint-plugin": "^9.6.
|
|
56
|
+
"@lntvow/eslint-plugin": "^9.6.2"
|
|
56
57
|
},
|
|
57
58
|
"scripts": {
|
|
58
59
|
"dev": "pnpm build --format esm --watch",
|