@tb-dev/eslint-config 3.3.3 → 3.4.1

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
@@ -287,8 +287,8 @@ async function perfectionist(options) {
287
287
  async function typescript(options) {
288
288
  const { project, overrides } = options;
289
289
  const [tsParser, tsPlugin] = await Promise.all([
290
- await interopDefault(import("@typescript-eslint/parser")),
291
- await interopDefault(import("@typescript-eslint/eslint-plugin"))
290
+ interopDefault(import("@typescript-eslint/parser")),
291
+ interopDefault(import("@typescript-eslint/eslint-plugin"))
292
292
  ]);
293
293
  const files = [Glob.TYPESCRIPT];
294
294
  if (options.vue)
@@ -572,7 +572,9 @@ async function unicorn(options) {
572
572
  "unicorn/no-array-method-this-argument": "error",
573
573
  "unicorn/no-array-push-push": "error",
574
574
  "unicorn/no-await-expression-member": "error",
575
+ "unicorn/no-await-in-promise-methods": "error",
575
576
  "unicorn/no-invalid-remove-event-listener": "error",
577
+ "unicorn/no-single-promise-in-promise-methods": "error",
576
578
  "unicorn/no-thenable": "error",
577
579
  "unicorn/no-typeof-undefined": "off",
578
580
  "unicorn/no-useless-fallback-in-spread": "error",
@@ -661,9 +663,9 @@ async function vue(options) {
661
663
  return [];
662
664
  const [vuePlugin, vueParser, tsParser] = await Promise.all([
663
665
  // @ts-expect-error no types
664
- await interopDefault(import("eslint-plugin-vue")),
665
- await interopDefault(import("vue-eslint-parser")),
666
- await interopDefault(import("@typescript-eslint/parser"))
666
+ interopDefault(import("eslint-plugin-vue")),
667
+ interopDefault(import("vue-eslint-parser")),
668
+ interopDefault(import("@typescript-eslint/parser"))
667
669
  ]);
668
670
  const rules = {
669
671
  ...vuePlugin.configs.base.rules,
@@ -707,7 +709,7 @@ async function vue(options) {
707
709
  "vue/define-macros-order": [
708
710
  "error",
709
711
  {
710
- order: ["defineOptions", "defineModel", "defineProps", "defineEmits", "defineSlots"],
712
+ order: ["defineOptions", "defineProps", "defineModel", "defineEmits", "defineSlots"],
711
713
  defineExposeLast: true
712
714
  }
713
715
  ],
package/dist/index.js CHANGED
@@ -264,8 +264,8 @@ async function perfectionist(options) {
264
264
  async function typescript(options) {
265
265
  const { project, overrides } = options;
266
266
  const [tsParser, tsPlugin] = await Promise.all([
267
- await interopDefault(import("@typescript-eslint/parser")),
268
- await interopDefault(import("@typescript-eslint/eslint-plugin"))
267
+ interopDefault(import("@typescript-eslint/parser")),
268
+ interopDefault(import("@typescript-eslint/eslint-plugin"))
269
269
  ]);
270
270
  const files = [Glob.TYPESCRIPT];
271
271
  if (options.vue)
@@ -549,7 +549,9 @@ async function unicorn(options) {
549
549
  "unicorn/no-array-method-this-argument": "error",
550
550
  "unicorn/no-array-push-push": "error",
551
551
  "unicorn/no-await-expression-member": "error",
552
+ "unicorn/no-await-in-promise-methods": "error",
552
553
  "unicorn/no-invalid-remove-event-listener": "error",
554
+ "unicorn/no-single-promise-in-promise-methods": "error",
553
555
  "unicorn/no-thenable": "error",
554
556
  "unicorn/no-typeof-undefined": "off",
555
557
  "unicorn/no-useless-fallback-in-spread": "error",
@@ -638,9 +640,9 @@ async function vue(options) {
638
640
  return [];
639
641
  const [vuePlugin, vueParser, tsParser] = await Promise.all([
640
642
  // @ts-expect-error no types
641
- await interopDefault(import("eslint-plugin-vue")),
642
- await interopDefault(import("vue-eslint-parser")),
643
- await interopDefault(import("@typescript-eslint/parser"))
643
+ interopDefault(import("eslint-plugin-vue")),
644
+ interopDefault(import("vue-eslint-parser")),
645
+ interopDefault(import("@typescript-eslint/parser"))
644
646
  ]);
645
647
  const rules = {
646
648
  ...vuePlugin.configs.base.rules,
@@ -684,7 +686,7 @@ async function vue(options) {
684
686
  "vue/define-macros-order": [
685
687
  "error",
686
688
  {
687
- order: ["defineOptions", "defineModel", "defineProps", "defineEmits", "defineSlots"],
689
+ order: ["defineOptions", "defineProps", "defineModel", "defineEmits", "defineSlots"],
688
690
  defineExposeLast: true
689
691
  }
690
692
  ],
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@tb-dev/eslint-config",
3
- "version": "3.3.3",
3
+ "version": "3.4.1",
4
4
  "description": "ESLint config",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "private": false,
8
- "packageManager": "pnpm@8.15.5",
9
8
  "homepage": "https://github.com/ferreira-tb/eslint-config",
10
9
  "repository": {
11
10
  "type": "git",
@@ -22,27 +21,27 @@
22
21
  "@typescript-eslint/parser": "^7.5.0",
23
22
  "eslint-config-prettier": "^9.1.0",
24
23
  "eslint-plugin-perfectionist": "^2.7.0",
25
- "eslint-plugin-unicorn": "^51.0.1",
24
+ "eslint-plugin-unicorn": "^52.0.0",
26
25
  "eslint-plugin-vitest": "^0.4.1",
27
26
  "eslint-plugin-vue": "^9.24.0",
28
- "globals": "^15.0.0",
27
+ "globals": "^15.1.0",
29
28
  "vue-eslint-parser": "^9.4.2"
30
29
  },
31
30
  "devDependencies": {
32
31
  "@types/eslint-config-prettier": "^6.11.3",
33
- "@types/node": "^20.12.3",
32
+ "@types/node": "^20.12.8",
34
33
  "eslint": "^8.57.0",
35
34
  "husky": "^9.0.11",
36
35
  "lint-staged": "^15.2.2",
37
36
  "prettier": "^3.2.5",
38
37
  "tslib": "^2.6.2",
39
- "typescript": "^5.4.3",
40
- "vite": "^5.2.8",
41
- "vite-plugin-dts": "^3.8.1"
38
+ "typescript": "^5.4.5",
39
+ "vite": "^5.2.11",
40
+ "vite-plugin-dts": "^3.9.0"
42
41
  },
43
42
  "peerDependencies": {
44
43
  "eslint": "^8.57.0",
45
- "typescript": "^5.3.0"
44
+ "typescript": "^5.4.0"
46
45
  },
47
46
  "engines": {
48
47
  "node": ">=20"