@open-turo/eslint-config-typescript 23.1.0 → 23.1.2
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.js
CHANGED
|
@@ -249,6 +249,12 @@ const jestTestConfig = (options) => {
|
|
|
249
249
|
* @param {boolean} options.typescript Whether to include typescript rules
|
|
250
250
|
*/
|
|
251
251
|
const vitestTestConfig = (options) => {
|
|
252
|
+
const typescriptRules = options.typescript
|
|
253
|
+
? /** @type {const} */ ({
|
|
254
|
+
"@typescript-eslint/unbound-method": "off",
|
|
255
|
+
"vitest/unbound-method": "error",
|
|
256
|
+
})
|
|
257
|
+
: {};
|
|
252
258
|
return eslintConfig.defineConfig({
|
|
253
259
|
extends: [vitestPlugin.configs.recommended],
|
|
254
260
|
files: FILES_TEST,
|
|
@@ -257,6 +263,10 @@ const vitestTestConfig = (options) => {
|
|
|
257
263
|
...(options.typescript ? typescriptLanguageOptions() : {}),
|
|
258
264
|
},
|
|
259
265
|
plugins: { vitest: vitestPlugin },
|
|
266
|
+
rules: {
|
|
267
|
+
...vitestPlugin.configs.recommended.rules,
|
|
268
|
+
...typescriptRules,
|
|
269
|
+
},
|
|
260
270
|
});
|
|
261
271
|
};
|
|
262
272
|
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@eslint/js": "9.39.4",
|
|
7
|
-
"@typescript-eslint/eslint-plugin": "8.61.
|
|
8
|
-
"@typescript-eslint/parser": "8.61.
|
|
7
|
+
"@typescript-eslint/eslint-plugin": "8.61.1",
|
|
8
|
+
"@typescript-eslint/parser": "8.61.1",
|
|
9
9
|
"@vitest/eslint-plugin": "1.6.20",
|
|
10
10
|
"eslint-config-prettier": "10.1.8",
|
|
11
11
|
"eslint-import-resolver-typescript": "4.4.5",
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"eslint-plugin-jest": "29.15.2",
|
|
14
14
|
"eslint-plugin-json": "4.0.1",
|
|
15
15
|
"eslint-plugin-n": "18.1.0",
|
|
16
|
-
"eslint-plugin-perfectionist": "5.9.
|
|
16
|
+
"eslint-plugin-perfectionist": "5.9.1",
|
|
17
17
|
"eslint-plugin-prettier": "5.5.6",
|
|
18
18
|
"eslint-plugin-sonarjs": "4.0.3",
|
|
19
19
|
"eslint-plugin-unicorn": "56.0.1",
|
|
20
|
-
"typescript-eslint": "8.61.
|
|
20
|
+
"typescript-eslint": "8.61.1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@prettier/plugin-oxc": "0.1.4",
|
|
@@ -55,6 +55,6 @@
|
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
57
|
"repository": "https://github.com/open-turo/eslint-config-typescript",
|
|
58
|
-
"version": "23.1.
|
|
58
|
+
"version": "23.1.2",
|
|
59
59
|
"packageManager": "npm@11.17.0"
|
|
60
60
|
}
|
|
@@ -9796,6 +9796,12 @@ exports[`validate config the flat config with vitest is correct for index.js 1`]
|
|
|
9796
9796
|
"vitest/require-local-test-context-for-concurrent-snapshots": [
|
|
9797
9797
|
2,
|
|
9798
9798
|
],
|
|
9799
|
+
"vitest/unbound-method": [
|
|
9800
|
+
2,
|
|
9801
|
+
{
|
|
9802
|
+
"ignoreStatic": false,
|
|
9803
|
+
},
|
|
9804
|
+
],
|
|
9799
9805
|
"vitest/valid-describe-callback": [
|
|
9800
9806
|
2,
|
|
9801
9807
|
],
|
|
@@ -13167,6 +13173,12 @@ exports[`validate config the flat config with vitest is correct for index.mjs 1`
|
|
|
13167
13173
|
"vitest/require-local-test-context-for-concurrent-snapshots": [
|
|
13168
13174
|
2,
|
|
13169
13175
|
],
|
|
13176
|
+
"vitest/unbound-method": [
|
|
13177
|
+
2,
|
|
13178
|
+
{
|
|
13179
|
+
"ignoreStatic": false,
|
|
13180
|
+
},
|
|
13181
|
+
],
|
|
13170
13182
|
"vitest/valid-describe-callback": [
|
|
13171
13183
|
2,
|
|
13172
13184
|
],
|
|
Binary file
|