@sxzz/eslint-config 3.5.1 → 3.5.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/README.md CHANGED
@@ -16,6 +16,8 @@ Flat ESLint config for JavaScript, TypeScript, Vue 2, Vue 3, Prettier.
16
16
  npm i -D @sxzz/eslint-config
17
17
  ```
18
18
 
19
+ Require Node.js >= 16.14.
20
+
19
21
  ## Usage
20
22
 
21
23
  ```js
package/index.cjs CHANGED
@@ -498,7 +498,8 @@ var markdown = [
498
498
  "no-undef": "off",
499
499
  "no-unused-expressions": "off",
500
500
  "no-unused-vars": "off",
501
- "unused-imports/no-unused-vars": "off"
501
+ "unused-imports/no-unused-vars": "off",
502
+ "unused-imports/no-unused-imports": "off"
502
503
  }
503
504
  }
504
505
  ];
@@ -548,7 +549,9 @@ var typescript = [
548
549
  ],
549
550
  "@typescript-eslint/no-explicit-any": "off",
550
551
  "@typescript-eslint/no-non-null-assertion": "off",
551
- "@typescript-eslint/prefer-as-const": "warn"
552
+ "@typescript-eslint/prefer-as-const": "warn",
553
+ // handled by unused-imports/no-unused-imports
554
+ "@typescript-eslint/no-unused-vars": "off"
552
555
  }
553
556
  },
554
557
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sxzz/eslint-config",
3
- "version": "3.5.1",
4
- "packageManager": "pnpm@8.7.0",
3
+ "version": "3.5.3",
4
+ "packageManager": "pnpm@8.7.1",
5
5
  "description": "ESLint config for @sxzz.",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -32,9 +32,9 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@eslint/js": "^8.48.0",
35
- "@typescript-eslint/eslint-plugin": "^6.4.1",
36
- "@typescript-eslint/parser": "^6.4.1",
37
- "@unocss/eslint-plugin": "^0.55.3",
35
+ "@typescript-eslint/eslint-plugin": "^6.5.0",
36
+ "@typescript-eslint/parser": "^6.5.0",
37
+ "@unocss/eslint-plugin": "^0.55.6",
38
38
  "eslint-config-prettier": "^9.0.0",
39
39
  "eslint-define-config": "^1.23.0",
40
40
  "eslint-plugin-antfu": "^0.41.0",
@@ -50,13 +50,13 @@
50
50
  "globals": "^13.21.0",
51
51
  "jsonc-eslint-parser": "^2.3.0",
52
52
  "local-pkg": "^0.4.3",
53
- "prettier": "^3.0.2",
53
+ "prettier": "^3.0.3",
54
54
  "vue-eslint-parser": "^9.3.1",
55
55
  "yaml-eslint-parser": "^1.2.2"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@sxzz/prettier-config": "^1.0.4",
59
- "@types/node": "^20.5.7",
59
+ "@types/node": "^20.5.9",
60
60
  "bumpp": "^9.2.0",
61
61
  "eslint": "^8.48.0",
62
62
  "tsup": "^7.2.0",
package/src/markdown.js CHANGED
@@ -38,6 +38,7 @@ export const markdown = [
38
38
  'no-unused-expressions': 'off',
39
39
  'no-unused-vars': 'off',
40
40
  'unused-imports/no-unused-vars': 'off',
41
+ 'unused-imports/no-unused-imports': 'off',
41
42
  },
42
43
  },
43
44
  ]
package/src/typescript.js CHANGED
@@ -32,6 +32,9 @@ export const typescript = [
32
32
  '@typescript-eslint/no-explicit-any': 'off',
33
33
  '@typescript-eslint/no-non-null-assertion': 'off',
34
34
  '@typescript-eslint/prefer-as-const': 'warn',
35
+
36
+ // handled by unused-imports/no-unused-imports
37
+ '@typescript-eslint/no-unused-vars': 'off',
35
38
  },
36
39
  },
37
40
  {