@tb-dev/eslint-config 3.4.0 → 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)
@@ -663,9 +663,9 @@ async function vue(options) {
663
663
  return [];
664
664
  const [vuePlugin, vueParser, tsParser] = await Promise.all([
665
665
  // @ts-expect-error no types
666
- await interopDefault(import("eslint-plugin-vue")),
667
- await interopDefault(import("vue-eslint-parser")),
668
- await interopDefault(import("@typescript-eslint/parser"))
666
+ interopDefault(import("eslint-plugin-vue")),
667
+ interopDefault(import("vue-eslint-parser")),
668
+ interopDefault(import("@typescript-eslint/parser"))
669
669
  ]);
670
670
  const rules = {
671
671
  ...vuePlugin.configs.base.rules,
@@ -709,7 +709,7 @@ async function vue(options) {
709
709
  "vue/define-macros-order": [
710
710
  "error",
711
711
  {
712
- order: ["defineOptions", "defineModel", "defineProps", "defineEmits", "defineSlots"],
712
+ order: ["defineOptions", "defineProps", "defineModel", "defineEmits", "defineSlots"],
713
713
  defineExposeLast: true
714
714
  }
715
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)
@@ -640,9 +640,9 @@ async function vue(options) {
640
640
  return [];
641
641
  const [vuePlugin, vueParser, tsParser] = await Promise.all([
642
642
  // @ts-expect-error no types
643
- await interopDefault(import("eslint-plugin-vue")),
644
- await interopDefault(import("vue-eslint-parser")),
645
- await interopDefault(import("@typescript-eslint/parser"))
643
+ interopDefault(import("eslint-plugin-vue")),
644
+ interopDefault(import("vue-eslint-parser")),
645
+ interopDefault(import("@typescript-eslint/parser"))
646
646
  ]);
647
647
  const rules = {
648
648
  ...vuePlugin.configs.base.rules,
@@ -686,7 +686,7 @@ async function vue(options) {
686
686
  "vue/define-macros-order": [
687
687
  "error",
688
688
  {
689
- order: ["defineOptions", "defineModel", "defineProps", "defineEmits", "defineSlots"],
689
+ order: ["defineOptions", "defineProps", "defineModel", "defineEmits", "defineSlots"],
690
690
  defineExposeLast: true
691
691
  }
692
692
  ],
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@tb-dev/eslint-config",
3
- "version": "3.4.0",
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",
@@ -25,24 +24,24 @@
25
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"