@ntnyq/eslint-config 4.0.0 → 4.0.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.
Files changed (2) hide show
  1. package/dist/index.mjs +10 -3
  2. package/package.json +9 -17
package/dist/index.mjs CHANGED
@@ -1097,8 +1097,13 @@ const configSort = (options = {}) => {
1097
1097
  "jsonc/sort-keys": [
1098
1098
  "error",
1099
1099
  {
1100
- order: { type: "asc" },
1101
- pathPattern: ".*"
1100
+ pathPattern: ".*",
1101
+ order: [
1102
+ "$schema",
1103
+ {
1104
+ order: { type: "asc" }
1105
+ }
1106
+ ]
1102
1107
  }
1103
1108
  ]
1104
1109
  }
@@ -1145,7 +1150,7 @@ const configSVGO = (options = {}) => {
1145
1150
  const hasPinia = () => isPackageExists("pinia");
1146
1151
  const hasVitest = () => isPackageExists("vitest");
1147
1152
  const hasTypeScript = () => isPackageExists("typescript");
1148
- const hasShadcnVue = () => isPackageExists("radix-vue") && isPackageExists("clsx");
1153
+ const hasShadcnVue = () => (isPackageExists("radix-vue") || isPackageExists("reka-ui")) && isPackageExists("class-variance-authority") && isPackageExists("clsx");
1149
1154
  const hasUnoCSS = () => isPackageExists("unocss") || isPackageExists("@unocss/postcss") || isPackageExists("@unocss/webpack") || isPackageExists("@unocss/nuxt");
1150
1155
  const hasVue = () => isPackageExists("vue") || isPackageExists("nuxt") || isPackageExists("vitepress") || isPackageExists("vuepress") || isPackageExists("@slidev/cli") || isPackageExists("vue", {
1151
1156
  paths: [
@@ -2349,6 +2354,8 @@ const configSpecials = (options = {}) => {
2349
2354
  "@typescript-eslint/no-unused-vars": "off",
2350
2355
  "import-x/consistent-type-specifier-style": "off",
2351
2356
  "vue/define-emits-declaration": "off",
2357
+ "vue/html-button-has-type": "off",
2358
+ "vue/no-duplicate-attr-inheritance": "off",
2352
2359
  // Overrides rules
2353
2360
  ...shadcnOptions.overridesRules
2354
2361
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@ntnyq/eslint-config",
3
3
  "type": "module",
4
- "version": "4.0.0",
5
- "packageManager": "pnpm@10.6.1",
4
+ "version": "4.0.1",
5
+ "packageManager": "pnpm@10.6.2",
6
6
  "description": "An opinionated ESLint config preset of ntnyq",
7
7
  "keywords": [
8
8
  "eslint",
@@ -47,9 +47,10 @@
47
47
  "generate:type": "tsx scripts/generateType.ts",
48
48
  "lint": "eslint --cache",
49
49
  "prepare": "husky",
50
- "release": "run-s release:check release:version",
50
+ "release": "run-s release:check release:version release:publish",
51
51
  "release:check": "run-s build lint typecheck",
52
- "release:version": "bumpp && npm publish --tag next",
52
+ "release:publish": "npm publish",
53
+ "release:version": "bumpp",
53
54
  "stub": "unbuild --stub",
54
55
  "test": "vitest",
55
56
  "typecheck": "tsc --noEmit"
@@ -78,10 +79,10 @@
78
79
  "@eslint/js": "^9.22.0",
79
80
  "@eslint/markdown": "^6.3.0",
80
81
  "@unocss/eslint-plugin": "^66.1.0-beta.3",
81
- "@vitest/eslint-plugin": "^1.1.36",
82
+ "@vitest/eslint-plugin": "^1.1.37",
82
83
  "eslint-config-flat-gitignore": "^2.1.0",
83
84
  "eslint-flat-config-utils": "^2.0.1",
84
- "eslint-import-resolver-typescript": "^3.8.3",
85
+ "eslint-import-resolver-typescript": "^3.8.4",
85
86
  "eslint-merge-processors": "^2.0.0",
86
87
  "eslint-plugin-antfu": "^3.1.1",
87
88
  "eslint-plugin-command": "^3.1.0",
@@ -89,7 +90,7 @@
89
90
  "eslint-plugin-depend": "^0.12.0",
90
91
  "eslint-plugin-github-action": "^0.0.14",
91
92
  "eslint-plugin-import-x": "^4.6.1",
92
- "eslint-plugin-jsdoc": "^50.6.3",
93
+ "eslint-plugin-jsdoc": "^50.6.6",
93
94
  "eslint-plugin-jsonc": "^2.19.1",
94
95
  "eslint-plugin-n": "^17.16.2",
95
96
  "eslint-plugin-no-only-tests": "^3.3.0",
@@ -110,7 +111,7 @@
110
111
  "local-pkg": "^1.1.1",
111
112
  "prettier": "^3.5.3",
112
113
  "toml-eslint-parser": "^0.10.0",
113
- "typescript-eslint": "^8.26.0",
114
+ "typescript-eslint": "^8.26.1",
114
115
  "vue-eslint-parser": "^10.1.1",
115
116
  "yaml-eslint-parser": "^1.3.0"
116
117
  },
@@ -135,15 +136,6 @@
135
136
  "engines": {
136
137
  "node": ">=18.18.0"
137
138
  },
138
- "resolutions": {
139
- "@shikijs/core": "^3.1.0",
140
- "@shikijs/markdown-it": "^3.1.0",
141
- "@shikijs/rehype": "^3.1.0",
142
- "@shikijs/transformers": "^3.1.0",
143
- "@shikijs/types": "^3.1.0",
144
- "esbuild": "^0.25.0",
145
- "shiki": "^3.1.0"
146
- },
147
139
  "nano-staged": {
148
140
  "*.{js,ts,mjs,cjs,md,vue,svg,yml,yaml,toml,json}": "eslint --fix",
149
141
  "*.{css,scss,html}": "prettier -uw"