@sxzz/eslint-config 3.2.1 → 3.2.3

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/index.cjs CHANGED
@@ -423,6 +423,17 @@ var pkgOrder = [
423
423
  {
424
424
  pathPattern: "^(?:dev|peer|optional|bundled)?[Dd]ependencies$",
425
425
  order: { type: "asc" }
426
+ },
427
+ {
428
+ pathPattern: "^exports.*$",
429
+ order: ["types", "require", "import", "default"]
430
+ }
431
+ ],
432
+ "jsonc/sort-array-values": [
433
+ "error",
434
+ {
435
+ pathPattern: "^files$",
436
+ order: { type: "asc" }
426
437
  }
427
438
  ]
428
439
  }
@@ -458,6 +469,7 @@ var markdown = [
458
469
  "@typescript-eslint/no-unused-vars": "off",
459
470
  "@typescript-eslint/no-use-before-define": "off",
460
471
  "@typescript-eslint/no-var-requires": "off",
472
+ "@typescript-eslint/no-extraneous-class": "off",
461
473
  "no-alert": "off",
462
474
  "no-console": "off",
463
475
  "no-restricted-imports": "off",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sxzz/eslint-config",
3
- "version": "3.2.1",
3
+ "version": "3.2.3",
4
4
  "packageManager": "pnpm@8.6.7",
5
5
  "description": "ESLint config for @sxzz.",
6
6
  "type": "module",
@@ -14,8 +14,8 @@
14
14
  "url": "git+https://github.com/sxzz/eslint-config.git"
15
15
  },
16
16
  "files": [
17
- "index.js",
18
17
  "index.cjs",
18
+ "index.js",
19
19
  "src"
20
20
  ],
21
21
  "main": "./index.js",
@@ -31,18 +31,18 @@
31
31
  "eslint": "^8.0.0"
32
32
  },
33
33
  "dependencies": {
34
- "@eslint/js": "^8.44.0",
34
+ "@eslint/js": "^8.45.0",
35
35
  "@typescript-eslint/eslint-plugin": "^6.0.0",
36
36
  "@typescript-eslint/parser": "^6.0.0",
37
37
  "eslint-config-prettier": "^8.8.0",
38
38
  "eslint-define-config": "^1.21.0",
39
- "eslint-plugin-antfu": "^0.39.7",
39
+ "eslint-plugin-antfu": "^0.39.8",
40
40
  "eslint-plugin-eslint-comments": "^3.2.0",
41
41
  "eslint-plugin-import": "^2.27.5",
42
42
  "eslint-plugin-jsonc": "^2.9.0",
43
43
  "eslint-plugin-markdown": "^3.0.0",
44
44
  "eslint-plugin-prettier": "^5.0.0",
45
- "eslint-plugin-unicorn": "^47.0.0",
45
+ "eslint-plugin-unicorn": "^48.0.0",
46
46
  "eslint-plugin-vue": "^9.15.1",
47
47
  "eslint-plugin-yml": "^1.8.0",
48
48
  "globals": "^13.20.0",
@@ -54,9 +54,9 @@
54
54
  },
55
55
  "devDependencies": {
56
56
  "@sxzz/prettier-config": "^1.0.4",
57
- "@types/node": "^20.4.1",
57
+ "@types/node": "^20.4.2",
58
58
  "bumpp": "^9.1.1",
59
- "eslint": "^8.44.0",
59
+ "eslint": "^8.45.0",
60
60
  "tsup": "^7.1.0",
61
61
  "typescript": "^5.1.6"
62
62
  },
package/src/jsonc.js CHANGED
@@ -77,6 +77,17 @@ export const pkgOrder = [
77
77
  pathPattern: '^(?:dev|peer|optional|bundled)?[Dd]ependencies$',
78
78
  order: { type: 'asc' },
79
79
  },
80
+ {
81
+ pathPattern: '^exports.*$',
82
+ order: ['types', 'require', 'import', 'default'],
83
+ },
84
+ ],
85
+ 'jsonc/sort-array-values': [
86
+ 'error',
87
+ {
88
+ pathPattern: '^files$',
89
+ order: { type: 'asc' },
90
+ },
80
91
  ],
81
92
  },
82
93
  },
package/src/markdown.js CHANGED
@@ -30,6 +30,7 @@ export const markdown = [
30
30
  '@typescript-eslint/no-unused-vars': 'off',
31
31
  '@typescript-eslint/no-use-before-define': 'off',
32
32
  '@typescript-eslint/no-var-requires': 'off',
33
+ '@typescript-eslint/no-extraneous-class': 'off',
33
34
  'no-alert': 'off',
34
35
  'no-console': 'off',
35
36
  'no-restricted-imports': 'off',