@lincy/eslint-config 3.0.5 → 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 +9 -0
- 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,
|
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/"
|