@ntnyq/eslint-config 4.0.0-beta.7 → 4.0.0-beta.8

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.js +18 -3
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1151,12 +1151,27 @@ var configTest = (options = {}) => {
1151
1151
  /**
1152
1152
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/tree/main?tab=readme-ov-file#enabling-with-type-testing
1153
1153
  */
1154
- vitest: {
1155
- typecheck: true
1156
- }
1154
+ // https://github.com/vitest-dev/eslint-plugin-vitest/issues/664
1155
+ // vitest: {
1156
+ // typecheck: true,
1157
+ // },
1157
1158
  },
1158
1159
  rules: {
1159
1160
  ...default15.configs.recommended.rules,
1161
+ "vitest/expect-expect": [
1162
+ "error",
1163
+ {
1164
+ assertFunctionNames: [
1165
+ "expect",
1166
+ "assert",
1167
+ /**
1168
+ * type test
1169
+ */
1170
+ "expectTypeOf",
1171
+ "assertType"
1172
+ ]
1173
+ }
1174
+ ],
1160
1175
  // Overrides rules
1161
1176
  ...options.overridesVitestRules
1162
1177
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ntnyq/eslint-config",
3
3
  "type": "module",
4
- "version": "4.0.0-beta.7",
4
+ "version": "4.0.0-beta.8",
5
5
  "packageManager": "pnpm@10.4.1",
6
6
  "description": "An opinionated ESLint config preset of ntnyq",
7
7
  "keywords": [
@@ -72,7 +72,7 @@
72
72
  "@vitest/eslint-plugin": "^1.1.31",
73
73
  "eslint-config-flat-gitignore": "^2.1.0",
74
74
  "eslint-flat-config-utils": "^2.0.1",
75
- "eslint-import-resolver-typescript": "^3.8.1",
75
+ "eslint-import-resolver-typescript": "^3.8.2",
76
76
  "eslint-merge-processors": "^2.0.0",
77
77
  "eslint-plugin-antfu": "^3.1.0",
78
78
  "eslint-plugin-command": "^3.1.0",
@@ -112,7 +112,7 @@
112
112
  "bumpp": "^10.0.3",
113
113
  "eslint": "^9.20.1",
114
114
  "eslint-plugin-eslint-plugin": "^6.4.0",
115
- "eslint-typegen": "^1.0.0",
115
+ "eslint-typegen": "^2.0.0",
116
116
  "husky": "^9.1.7",
117
117
  "jiti": "^2.4.2",
118
118
  "nano-staged": "^0.8.0",
@@ -120,7 +120,7 @@
120
120
  "tsup": "^8.3.6",
121
121
  "tsx": "^4.19.2",
122
122
  "typescript": "^5.7.3",
123
- "vitest": "^3.0.5"
123
+ "vitest": "^3.0.6"
124
124
  },
125
125
  "engines": {
126
126
  "node": ">=18.18.0"
@@ -140,7 +140,7 @@
140
140
  "shiki": "^3.0.0"
141
141
  },
142
142
  "nano-staged": {
143
- "*.{js,ts,mjs,cjs,vue,svg,json,jsonc,md,yaml,yml}": "eslint --fix",
143
+ "*.{js,ts,mjs,cjs,md,vue,svg,yml,yaml,json}": "eslint --fix",
144
144
  "*.{css,scss,html}": "prettier -uw"
145
145
  }
146
146
  }