@sxzz/eslint-config 3.1.2 → 3.2.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/index.cjs CHANGED
@@ -502,8 +502,7 @@ var typescript = [
502
502
  },
503
503
  rules: {
504
504
  ...import_eslint_plugin2.default.configs["eslint-recommended"].overrides[0].rules,
505
- ...import_eslint_plugin2.default.configs["recommended"].rules,
506
- "@typescript-eslint/no-unused-vars": "error",
505
+ ...import_eslint_plugin2.default.configs["strict"].overrides[0].rules,
507
506
  "@typescript-eslint/no-redeclare": "error",
508
507
  "@typescript-eslint/ban-ts-comment": "off",
509
508
  "@typescript-eslint/ban-types": "off",
@@ -511,7 +510,6 @@ var typescript = [
511
510
  "error",
512
511
  { fixStyle: "inline-type-imports", disallowTypeAnnotations: false }
513
512
  ],
514
- "@typescript-eslint/explicit-module-boundary-types": "off",
515
513
  "@typescript-eslint/no-explicit-any": "off",
516
514
  "@typescript-eslint/no-non-null-assertion": "off",
517
515
  "@typescript-eslint/prefer-as-const": "warn"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sxzz/eslint-config",
3
- "version": "3.1.2",
4
- "packageManager": "pnpm@8.6.5",
3
+ "version": "3.2.0",
4
+ "packageManager": "pnpm@8.6.7",
5
5
  "description": "ESLint config for @sxzz.",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@eslint/js": "^8.44.0",
35
- "@typescript-eslint/eslint-plugin": "^5.61.0",
36
- "@typescript-eslint/parser": "^5.61.0",
35
+ "@typescript-eslint/eslint-plugin": "^6.0.0",
36
+ "@typescript-eslint/parser": "^6.0.0",
37
37
  "eslint-config-prettier": "^8.8.0",
38
38
  "eslint-define-config": "^1.21.0",
39
39
  "eslint-plugin-antfu": "^0.39.7",
@@ -41,7 +41,7 @@
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
- "eslint-plugin-prettier": "^5.0.0-alpha.2",
44
+ "eslint-plugin-prettier": "^5.0.0",
45
45
  "eslint-plugin-unicorn": "^47.0.0",
46
46
  "eslint-plugin-vue": "^9.15.1",
47
47
  "eslint-plugin-yml": "^1.8.0",
@@ -53,8 +53,8 @@
53
53
  "yaml-eslint-parser": "^1.2.2"
54
54
  },
55
55
  "devDependencies": {
56
- "@sxzz/prettier-config": "^1.0.3",
57
- "@types/node": "^20.4.0",
56
+ "@sxzz/prettier-config": "^1.0.4",
57
+ "@types/node": "^20.4.1",
58
58
  "bumpp": "^9.1.1",
59
59
  "eslint": "^8.44.0",
60
60
  "tsup": "^7.1.0",
package/src/typescript.js CHANGED
@@ -19,9 +19,8 @@ export const typescript = [
19
19
  },
20
20
  rules: {
21
21
  ...tsPlugin.configs['eslint-recommended'].overrides[0].rules,
22
- ...tsPlugin.configs['recommended'].rules,
22
+ ...tsPlugin.configs['strict'].overrides[0].rules,
23
23
 
24
- '@typescript-eslint/no-unused-vars': 'error',
25
24
  '@typescript-eslint/no-redeclare': 'error',
26
25
 
27
26
  '@typescript-eslint/ban-ts-comment': 'off',
@@ -30,7 +29,6 @@ export const typescript = [
30
29
  'error',
31
30
  { fixStyle: 'inline-type-imports', disallowTypeAnnotations: false },
32
31
  ],
33
- '@typescript-eslint/explicit-module-boundary-types': 'off',
34
32
  '@typescript-eslint/no-explicit-any': 'off',
35
33
  '@typescript-eslint/no-non-null-assertion': 'off',
36
34
  '@typescript-eslint/prefer-as-const': 'warn',