@lntvow/eslint-config 9.5.3 → 9.5.4
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 +11 -2
- package/dist/index.mjs +11 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -371,6 +371,15 @@ async function imports(options) {
|
|
|
371
371
|
// 'import/no-unassigned-import': 'off',
|
|
372
372
|
"import/order": "error"
|
|
373
373
|
// 'import/prefer-default-export': 'off',
|
|
374
|
+
},
|
|
375
|
+
settings: {
|
|
376
|
+
"import-x/resolver": {
|
|
377
|
+
alias: {
|
|
378
|
+
map: [["@", "./src"]],
|
|
379
|
+
extensions: [".ts", ".js", ".jsx", ".tsx", ".d.ts"]
|
|
380
|
+
},
|
|
381
|
+
node: true
|
|
382
|
+
}
|
|
374
383
|
}
|
|
375
384
|
}
|
|
376
385
|
];
|
|
@@ -779,7 +788,7 @@ async function vue(options = {}) {
|
|
|
779
788
|
// vue禁用多个单词组件名
|
|
780
789
|
"vue/multi-word-component-names": "off",
|
|
781
790
|
// vue禁用 属性-连接 个人喜欢驼峰
|
|
782
|
-
"vue/attribute-hyphenation":
|
|
791
|
+
"vue/attribute-hyphenation": "off",
|
|
783
792
|
// vue禁用标签缩进
|
|
784
793
|
"vue/html-indent": "off",
|
|
785
794
|
// 标签自闭合
|
|
@@ -796,7 +805,7 @@ async function vue(options = {}) {
|
|
|
796
805
|
// vue内容强制换行
|
|
797
806
|
"vue/singleline-html-element-content-newline": "off",
|
|
798
807
|
// 禁用事件驼峰 个人喜欢驼峰
|
|
799
|
-
"vue/v-on-event-hyphenation":
|
|
808
|
+
"vue/v-on-event-hyphenation": "off",
|
|
800
809
|
// Custom rules
|
|
801
810
|
// 标签换行
|
|
802
811
|
"vue/block-tag-newline": "error",
|
package/dist/index.mjs
CHANGED
|
@@ -291,6 +291,15 @@ async function imports(options) {
|
|
|
291
291
|
// 'import/no-unassigned-import': 'off',
|
|
292
292
|
"import/order": "error"
|
|
293
293
|
// 'import/prefer-default-export': 'off',
|
|
294
|
+
},
|
|
295
|
+
settings: {
|
|
296
|
+
"import-x/resolver": {
|
|
297
|
+
alias: {
|
|
298
|
+
map: [["@", "./src"]],
|
|
299
|
+
extensions: [".ts", ".js", ".jsx", ".tsx", ".d.ts"]
|
|
300
|
+
},
|
|
301
|
+
node: true
|
|
302
|
+
}
|
|
294
303
|
}
|
|
295
304
|
}
|
|
296
305
|
];
|
|
@@ -699,7 +708,7 @@ async function vue(options = {}) {
|
|
|
699
708
|
// vue禁用多个单词组件名
|
|
700
709
|
"vue/multi-word-component-names": "off",
|
|
701
710
|
// vue禁用 属性-连接 个人喜欢驼峰
|
|
702
|
-
"vue/attribute-hyphenation":
|
|
711
|
+
"vue/attribute-hyphenation": "off",
|
|
703
712
|
// vue禁用标签缩进
|
|
704
713
|
"vue/html-indent": "off",
|
|
705
714
|
// 标签自闭合
|
|
@@ -716,7 +725,7 @@ async function vue(options = {}) {
|
|
|
716
725
|
// vue内容强制换行
|
|
717
726
|
"vue/singleline-html-element-content-newline": "off",
|
|
718
727
|
// 禁用事件驼峰 个人喜欢驼峰
|
|
719
|
-
"vue/v-on-event-hyphenation":
|
|
728
|
+
"vue/v-on-event-hyphenation": "off",
|
|
720
729
|
// Custom rules
|
|
721
730
|
// 标签换行
|
|
722
731
|
"vue/block-tag-newline": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lntvow/eslint-config",
|
|
3
|
-
"version": "9.5.
|
|
3
|
+
"version": "9.5.4",
|
|
4
4
|
"author": "lntvow",
|
|
5
5
|
"description": "eslint-config",
|
|
6
6
|
"type": "module",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"tslib": "^2.6.3",
|
|
55
55
|
"typescript": "^5.5.2",
|
|
56
56
|
"vue-eslint-parser": "^9.4.3",
|
|
57
|
-
"@lntvow/eslint-plugin": "^9.5.
|
|
57
|
+
"@lntvow/eslint-plugin": "^9.5.4"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"dev": "pnpm build --format esm --watch",
|