@lntvow/eslint-config 9.5.3 → 9.6.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.cjs CHANGED
@@ -321,7 +321,6 @@ async function imports(options) {
321
321
  import: import_eslint_plugin_import_x.default
322
322
  },
323
323
  rules: {
324
- // Update to eslint-plugin-import-x v0.5.2
325
324
  // Helpful warnings
326
325
  // 'import/export': 'error',
327
326
  // 'import/no-deprecated': 'error',
@@ -371,6 +370,15 @@ async function imports(options) {
371
370
  // 'import/no-unassigned-import': 'off',
372
371
  "import/order": "error"
373
372
  // 'import/prefer-default-export': 'off',
373
+ },
374
+ settings: {
375
+ "import-x/resolver": {
376
+ alias: {
377
+ map: [["@", "./src"]],
378
+ extensions: [".ts", ".js", ".jsx", ".tsx", ".d.ts"]
379
+ },
380
+ node: true
381
+ }
374
382
  }
375
383
  }
376
384
  ];
@@ -407,7 +415,6 @@ async function javascript(options = {}) {
407
415
  reportUnusedDisableDirectives: true
408
416
  },
409
417
  rules: {
410
- // Update to eslint-plugin-vue v9.4.0
411
418
  ...import_js.default.configs.all.rules,
412
419
  // Possible Problems
413
420
  // 禁止未使用过的变量
@@ -589,7 +596,6 @@ async function regexp(options = {}) {
589
596
  regexp: pluginRegexp
590
597
  },
591
598
  rules: {
592
- // Update to eslint-plugin-regexp v2.6.0
593
599
  ...rules,
594
600
  // Overrides
595
601
  ...overrides
@@ -772,14 +778,13 @@ async function vue(options = {}) {
772
778
  processor: import_eslint_plugin_vue.default.processors[".vue"],
773
779
  files: [GLOB_VUE],
774
780
  rules: {
775
- // Update to eslint-plugin-vue v9.26.0
776
781
  ...import_eslint_plugin_vue.default.configs.base.rules,
777
782
  ...vueVersion === 3 ? vue3Rules : vue2Rules,
778
783
  // Override default configuration
779
784
  // vue禁用多个单词组件名
780
785
  "vue/multi-word-component-names": "off",
781
786
  // vue禁用 属性-连接 个人喜欢驼峰
782
- "vue/attribute-hyphenation": ["error", "never"],
787
+ "vue/attribute-hyphenation": "off",
783
788
  // vue禁用标签缩进
784
789
  "vue/html-indent": "off",
785
790
  // 标签自闭合
@@ -796,7 +801,7 @@ async function vue(options = {}) {
796
801
  // vue内容强制换行
797
802
  "vue/singleline-html-element-content-newline": "off",
798
803
  // 禁用事件驼峰 个人喜欢驼峰
799
- "vue/v-on-event-hyphenation": ["error", "never"],
804
+ "vue/v-on-event-hyphenation": "off",
800
805
  // Custom rules
801
806
  // 标签换行
802
807
  "vue/block-tag-newline": "error",
package/dist/index.mjs CHANGED
@@ -241,7 +241,6 @@ async function imports(options) {
241
241
  import: pluginImport
242
242
  },
243
243
  rules: {
244
- // Update to eslint-plugin-import-x v0.5.2
245
244
  // Helpful warnings
246
245
  // 'import/export': 'error',
247
246
  // 'import/no-deprecated': 'error',
@@ -291,6 +290,15 @@ async function imports(options) {
291
290
  // 'import/no-unassigned-import': 'off',
292
291
  "import/order": "error"
293
292
  // 'import/prefer-default-export': 'off',
293
+ },
294
+ settings: {
295
+ "import-x/resolver": {
296
+ alias: {
297
+ map: [["@", "./src"]],
298
+ extensions: [".ts", ".js", ".jsx", ".tsx", ".d.ts"]
299
+ },
300
+ node: true
301
+ }
294
302
  }
295
303
  }
296
304
  ];
@@ -327,7 +335,6 @@ async function javascript(options = {}) {
327
335
  reportUnusedDisableDirectives: true
328
336
  },
329
337
  rules: {
330
- // Update to eslint-plugin-vue v9.4.0
331
338
  ...js.configs.all.rules,
332
339
  // Possible Problems
333
340
  // 禁止未使用过的变量
@@ -509,7 +516,6 @@ async function regexp(options = {}) {
509
516
  regexp: pluginRegexp
510
517
  },
511
518
  rules: {
512
- // Update to eslint-plugin-regexp v2.6.0
513
519
  ...rules,
514
520
  // Overrides
515
521
  ...overrides
@@ -692,14 +698,13 @@ async function vue(options = {}) {
692
698
  processor: pluginVue.processors[".vue"],
693
699
  files: [GLOB_VUE],
694
700
  rules: {
695
- // Update to eslint-plugin-vue v9.26.0
696
701
  ...pluginVue.configs.base.rules,
697
702
  ...vueVersion === 3 ? vue3Rules : vue2Rules,
698
703
  // Override default configuration
699
704
  // vue禁用多个单词组件名
700
705
  "vue/multi-word-component-names": "off",
701
706
  // vue禁用 属性-连接 个人喜欢驼峰
702
- "vue/attribute-hyphenation": ["error", "never"],
707
+ "vue/attribute-hyphenation": "off",
703
708
  // vue禁用标签缩进
704
709
  "vue/html-indent": "off",
705
710
  // 标签自闭合
@@ -716,7 +721,7 @@ async function vue(options = {}) {
716
721
  // vue内容强制换行
717
722
  "vue/singleline-html-element-content-newline": "off",
718
723
  // 禁用事件驼峰 个人喜欢驼峰
719
- "vue/v-on-event-hyphenation": ["error", "never"],
724
+ "vue/v-on-event-hyphenation": "off",
720
725
  // Custom rules
721
726
  // 标签换行
722
727
  "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",
3
+ "version": "9.6.0",
4
4
  "author": "lntvow",
5
5
  "description": "eslint-config",
6
6
  "type": "module",
@@ -24,37 +24,35 @@
24
24
  "module": "./dist/index.mjs",
25
25
  "types": "./dist/index.d.ts",
26
26
  "devDependencies": {
27
- "@lntvow/dev": "^1.1.5",
28
- "@types/eslint": "^8.56.10",
29
- "@types/node": "^20.14.8",
27
+ "@lntvow/dev": "^1.1.6",
28
+ "@types/node": "^20.14.10",
30
29
  "axios": "^1.7.2",
31
30
  "cheerio": "1.0.0-rc.12",
31
+ "find-up": "^7.0.0",
32
32
  "tsup": "^8.1.0",
33
- "typescript": "^5.4.5",
34
- "vue": "^3.4.30"
33
+ "vue": "^3.4.31"
35
34
  },
36
35
  "dependencies": {
37
- "@eslint/js": "^9.5.0",
38
- "@lntvow/utils": "^3.0.12",
39
- "@stylistic/eslint-plugin": "^2.2.2",
40
- "@typescript-eslint/eslint-plugin": "^7.13.1",
41
- "@typescript-eslint/parser": "^7.13.1",
42
- "eslint": "^9.5.0",
36
+ "@eslint/js": "^9.6.0",
37
+ "@lntvow/utils": "^3.1.2",
38
+ "@stylistic/eslint-plugin": "^2.3.0",
39
+ "@typescript-eslint/eslint-plugin": "^7.16.0",
40
+ "@typescript-eslint/parser": "^7.16.0",
41
+ "eslint": "^9.6.0",
43
42
  "eslint-config-prettier": "^9.1.0",
44
43
  "eslint-flat-config-utils": "^0.2.5",
45
- "eslint-plugin-import-x": "^0.5.2",
44
+ "eslint-plugin-import-x": "^0.5.3",
46
45
  "eslint-plugin-prettier": "^5.1.3",
47
46
  "eslint-plugin-regexp": "^2.6.0",
48
47
  "eslint-plugin-vitest": "^0.5.4",
49
- "eslint-plugin-vue": "^9.26.0",
50
- "find-up": "^7.0.0",
51
- "globals": "^15.6.0",
48
+ "eslint-plugin-vue": "^9.27.0",
49
+ "globals": "^15.8.0",
52
50
  "local-pkg": "^0.5.0",
53
51
  "parse-gitignore": "^2.0.0",
54
52
  "tslib": "^2.6.3",
55
- "typescript": "^5.5.2",
53
+ "typescript": "^5.5.3",
56
54
  "vue-eslint-parser": "^9.4.3",
57
- "@lntvow/eslint-plugin": "^9.5.3"
55
+ "@lntvow/eslint-plugin": "^9.6.0"
58
56
  },
59
57
  "scripts": {
60
58
  "dev": "pnpm build --format esm --watch",