@html-validate/eslint-config-jest 5.29.0 → 6.0.0

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/package.json +4 -3
  2. package/legacy.cjs +0 -38
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@html-validate/eslint-config-jest",
3
- "version": "5.29.0",
3
+ "version": "6.0.0",
4
4
  "description": "Eslint sharable config used by the various HTML-validate packages",
5
5
  "keywords": [
6
6
  "eslint",
@@ -17,6 +17,7 @@
17
17
  },
18
18
  "license": "MIT",
19
19
  "author": "David Sveningsson <ext@sidvind.com>",
20
+ "type": "module",
20
21
  "main": "index.mjs",
21
22
  "files": [
22
23
  "*.cjs",
@@ -31,7 +32,7 @@
31
32
  "eslint-plugin-jest": "28.11.0"
32
33
  },
33
34
  "peerDependencies": {
34
- "eslint": "^8.0.0"
35
+ "eslint": "^9.0.0"
35
36
  },
36
37
  "engines": {
37
38
  "node": ">= 20.9.0",
@@ -40,5 +41,5 @@
40
41
  "publishConfig": {
41
42
  "access": "public"
42
43
  },
43
- "gitHead": "ca95247b7c60f1ba1a30795bece5fa762670d917"
44
+ "gitHead": "f54dcbae0ccae318895e34d32fbfa02b05cd38d1"
44
45
  }
package/legacy.cjs DELETED
@@ -1,38 +0,0 @@
1
- module.exports = {
2
- env: {
3
- jest: true,
4
- },
5
-
6
- plugins: ["jest"],
7
-
8
- extends: ["plugin:jest/recommended", "plugin:jest/style"],
9
-
10
- rules: {
11
- "jest/consistent-test-it": ["error", { fn: "it" }],
12
- "jest/no-disabled-tests": "warn",
13
- "jest/no-duplicate-hooks": "error",
14
- "jest/no-focused-tests": "warn",
15
- "jest/no-test-prefixes": "warn",
16
- "jest/prefer-expect-assertions": "error",
17
- "jest/prefer-hooks-on-top": "error",
18
- "jest/prefer-todo": "error",
19
- "jest/no-restricted-matchers": [
20
- "error",
21
- {
22
- resolves: "Use `expect(await promise)` instead.",
23
- },
24
- ],
25
-
26
- /* allow ! assertions in testcases */
27
- "@typescript-eslint/no-non-null-assertion": "off",
28
-
29
- /* common in testcases, kind of useless */
30
- "sonarjs/no-duplicate-string": "off",
31
-
32
- /* yields error way to early (considering jest is full of describe with it and this rule considers even arrow functions) */
33
- "sonarjs/no-nested-functions": "off",
34
-
35
- /* jest uses @jest-* tags for per-file configuration */
36
- "tsdoc/syntax": "off",
37
- },
38
- };