@lincy/eslint-config 3.0.4 → 3.0.6
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.js +11 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1147,6 +1147,15 @@ function vue(options = {}) {
|
|
|
1147
1147
|
"vue/html-comment-content-spacing": ["error", "always", {
|
|
1148
1148
|
exceptions: ["-"]
|
|
1149
1149
|
}],
|
|
1150
|
+
"vue/html-self-closing": ["error", {
|
|
1151
|
+
html: {
|
|
1152
|
+
void: "never",
|
|
1153
|
+
normal: "any",
|
|
1154
|
+
component: "any"
|
|
1155
|
+
},
|
|
1156
|
+
svg: "always",
|
|
1157
|
+
math: "always"
|
|
1158
|
+
}],
|
|
1150
1159
|
"vue/key-spacing": ["error", { afterColon: true, beforeColon: false }],
|
|
1151
1160
|
"vue/keyword-spacing": ["error", { after: true, before: true }],
|
|
1152
1161
|
"vue/max-attributes-per-line": OFF,
|
|
@@ -1192,7 +1201,8 @@ function vue(options = {}) {
|
|
|
1192
1201
|
"vue/space-in-parens": ["error", "never"],
|
|
1193
1202
|
"vue/space-infix-ops": "error",
|
|
1194
1203
|
"vue/space-unary-ops": ["error", { nonwords: false, words: true }],
|
|
1195
|
-
"vue/template-curly-spacing": "error"
|
|
1204
|
+
"vue/template-curly-spacing": "error",
|
|
1205
|
+
"vue/singleline-html-element-content-newline": "off"
|
|
1196
1206
|
}
|
|
1197
1207
|
}
|
|
1198
1208
|
];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lincy/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.6",
|
|
5
5
|
"packageManager": "pnpm@8.7.6",
|
|
6
6
|
"description": "LinCenYing's ESLint config",
|
|
7
7
|
"author": "LinCenYing <lincenying@gmail.com> (https://github.com/lincenying/)",
|
|
@@ -80,10 +80,10 @@
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
"simple-git-hooks": {
|
|
83
|
-
"pre-commit": "
|
|
83
|
+
"pre-commit": "npx lint-staged"
|
|
84
84
|
},
|
|
85
85
|
"lint-staged": {
|
|
86
|
-
"*.{
|
|
86
|
+
"*.{[jt]s?(x),vue,md}": "eslint --fix"
|
|
87
87
|
},
|
|
88
88
|
"publishConfig": {
|
|
89
89
|
"registry": "https://registry.npmjs.org/"
|