@ntnyq/eslint-config 2.0.1 → 2.1.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/README.md CHANGED
@@ -21,8 +21,6 @@ import { ntnyq } from '@ntnyq/eslint-config'
21
21
  export default ntnyq()
22
22
  ```
23
23
 
24
- Make sure to config `"eslint.experimental.useFlatConfig": true` in `.vscode/settings.json`
25
-
26
24
  ## Credits
27
25
 
28
26
  - [@sxzz/eslint-config](https://github.com/sxzz/eslint-config)
package/dist/index.cjs CHANGED
@@ -164,6 +164,7 @@ var GLOB_EXCLUDE = [
164
164
  "**/.stylelintcache",
165
165
  "**/.vite-inspect",
166
166
  "**/.nuxt",
167
+ "**/.wxt",
167
168
  "**/.output",
168
169
  "**/.tsup",
169
170
  "**/.nitro",
@@ -801,7 +802,18 @@ var typescriptCore = import_typescript_eslint.default.config({
801
802
  }
802
803
  },
803
804
  rules: {
804
- "@typescript-eslint/no-unused-vars": "error",
805
+ "@typescript-eslint/no-unused-vars": [
806
+ "error",
807
+ {
808
+ args: "all",
809
+ argsIgnorePattern: "^_",
810
+ caughtErrors: "all",
811
+ caughtErrorsIgnorePattern: "^_",
812
+ destructuredArrayIgnorePattern: "^_",
813
+ varsIgnorePattern: "^_",
814
+ ignoreRestSiblings: true
815
+ }
816
+ ],
805
817
  "@typescript-eslint/no-redeclare": "error",
806
818
  "@typescript-eslint/consistent-type-imports": [
807
819
  "error",
package/dist/index.js CHANGED
@@ -62,6 +62,7 @@ var GLOB_EXCLUDE = [
62
62
  "**/.stylelintcache",
63
63
  "**/.vite-inspect",
64
64
  "**/.nuxt",
65
+ "**/.wxt",
65
66
  "**/.output",
66
67
  "**/.tsup",
67
68
  "**/.nitro",
@@ -699,7 +700,18 @@ var typescriptCore = tseslint.config({
699
700
  }
700
701
  },
701
702
  rules: {
702
- "@typescript-eslint/no-unused-vars": "error",
703
+ "@typescript-eslint/no-unused-vars": [
704
+ "error",
705
+ {
706
+ args: "all",
707
+ argsIgnorePattern: "^_",
708
+ caughtErrors: "all",
709
+ caughtErrorsIgnorePattern: "^_",
710
+ destructuredArrayIgnorePattern: "^_",
711
+ varsIgnorePattern: "^_",
712
+ ignoreRestSiblings: true
713
+ }
714
+ ],
703
715
  "@typescript-eslint/no-redeclare": "error",
704
716
  "@typescript-eslint/consistent-type-imports": [
705
717
  "error",
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@ntnyq/eslint-config",
3
3
  "type": "module",
4
- "version": "2.0.1",
4
+ "version": "2.1.1",
5
+ "packageManager": "pnpm@9.2.0",
5
6
  "description": "ESLint flat config of ntnyq",
6
7
  "keywords": [
7
8
  "eslint",
@@ -51,38 +52,39 @@
51
52
  "eslint": "^9.0.0"
52
53
  },
53
54
  "dependencies": {
54
- "@eslint/js": "^9.1.1",
55
- "@unocss/eslint-plugin": "^0.59.4",
55
+ "@eslint/js": "^9.4.0",
56
+ "@unocss/eslint-plugin": "^0.60.4",
56
57
  "eslint-config-prettier": "^9.1.0",
57
58
  "eslint-define-config": "^2.1.0",
58
59
  "eslint-plugin-eslint-comments": "^3.2.0",
59
- "eslint-plugin-import-x": "^0.5.0",
60
- "eslint-plugin-jsdoc": "^48.2.3",
61
- "eslint-plugin-jsonc": "^2.15.1",
62
- "eslint-plugin-markdown": "^4.0.1",
63
- "eslint-plugin-n": "^17.2.1",
60
+ "eslint-plugin-import-x": "^0.5.1",
61
+ "eslint-plugin-jsdoc": "^48.2.8",
62
+ "eslint-plugin-jsonc": "^2.16.0",
63
+ "eslint-plugin-markdown": "^5.0.0",
64
+ "eslint-plugin-n": "^17.8.1",
64
65
  "eslint-plugin-prettier": "^5.1.3",
65
- "eslint-plugin-unicorn": "^52.0.0",
66
- "eslint-plugin-vue": "^9.25.0",
66
+ "eslint-plugin-unicorn": "^53.0.0",
67
+ "eslint-plugin-unused-imports": "^4.0.0",
68
+ "eslint-plugin-vue": "^9.26.0",
67
69
  "eslint-plugin-yml": "^1.14.0",
68
- "globals": "^15.0.0",
70
+ "globals": "^15.4.0",
69
71
  "jsonc-eslint-parser": "^2.4.0",
70
72
  "local-pkg": "^0.5.0",
71
- "prettier": "^3.2.5",
72
- "typescript-eslint": "^7.7.1",
73
- "vue-eslint-parser": "^9.4.2",
74
- "yaml-eslint-parser": "^1.2.2"
73
+ "prettier": "^3.3.1",
74
+ "typescript-eslint": "rc-v8",
75
+ "vue-eslint-parser": "^9.4.3",
76
+ "yaml-eslint-parser": "^1.2.3"
75
77
  },
76
78
  "devDependencies": {
77
79
  "@ntnyq/prettier-config": "^1.21.2",
78
- "@types/node": "^20.12.7",
79
- "bumpp": "^9.4.0",
80
- "eslint": "^9.1.1",
80
+ "@types/node": "^20.14.2",
81
+ "bumpp": "^9.4.1",
82
+ "eslint": "^9.4.0",
81
83
  "husky": "^9.0.11",
82
84
  "nano-staged": "^0.8.0",
83
- "npm-run-all2": "^6.1.2",
84
- "rimraf": "^5.0.5",
85
- "tsup": "^8.0.2",
85
+ "npm-run-all2": "^6.2.0",
86
+ "rimraf": "^5.0.7",
87
+ "tsup": "^8.1.0",
86
88
  "typescript": "^5.4.5"
87
89
  },
88
90
  "engines": {
@@ -90,6 +92,6 @@
90
92
  },
91
93
  "prettier": "@ntnyq/prettier-config",
92
94
  "nano-staged": {
93
- "*.{js,ts,json,jsonc,md,yaml,yml}": "bun run lint --fix"
95
+ "*.{js,ts,json,jsonc,md,yaml,yml}": "eslint --fix"
94
96
  }
95
97
  }