@mscharley/eslint-config 4.0.3 → 4.0.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Change Log - @mscharley/eslint-config
2
2
 
3
+ ## 4.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 1855b9f: Allow for verifications from testdouble
8
+
9
+ ## 4.0.4
10
+
11
+ ### Patch Changes
12
+
13
+ - 93ffd4d: fix(deps): update dependency typescript to v5.6.3
14
+ - 1a77c06: fix(deps): update dependency typescript-eslint to ^8.8.1
15
+
3
16
  ## 4.0.3
4
17
 
5
18
  ### Patch Changes
package/package.json CHANGED
@@ -1,49 +1,49 @@
1
1
  {
2
- "name": "@mscharley/eslint-config",
3
- "version": "4.0.3",
4
- "type": "module",
5
- "module": "./rules/index.js",
6
- "exports": {
7
- ".": {
8
- "import": "./rules/index.js"
9
- }
10
- },
11
- "publishConfig": {
12
- "provenance": true
13
- },
14
- "description": "ESLint presets that I use a lot",
15
- "scripts": {
16
- "test": "eslint --max-warnings 0 ."
17
- },
18
- "repository": {
19
- "type": "git",
20
- "url": "git+https://github.com/mscharley/node-presets.git"
21
- },
22
- "keywords": [
23
- "eslint",
24
- "eslint-presets"
25
- ],
26
- "author": "Matthew Scharley <matt@scharley.me>",
27
- "funding": {
28
- "type": "individual",
29
- "url": "https://github.com/sponsors/mscharley"
30
- },
31
- "license": "MIT",
32
- "bugs": {
33
- "url": "https://github.com/mscharley/node-presets/issues"
34
- },
35
- "homepage": "https://github.com/mscharley/node-presets#readme",
36
- "peerDependencies": {
37
- "@stylistic/eslint-plugin": "^2.9.0",
38
- "@types/eslint": "^9.6.1",
39
- "eslint": "^9.12.0",
40
- "eslint-import-resolver-typescript": "^3.6.3",
41
- "eslint-plugin-import": "^2.31.0",
42
- "eslint-plugin-jest": "^28.8.3",
43
- "eslint-plugin-n": "^17.10.3",
44
- "eslint-plugin-react": "^7.37.1",
45
- "eslint-plugin-react-hooks": "5.1.0-beta-26f2496093-20240514",
46
- "typescript": "^5.6.2",
47
- "typescript-eslint": "^8.8.0"
48
- }
49
- }
2
+ "name": "@mscharley/eslint-config",
3
+ "version": "4.0.5",
4
+ "type": "module",
5
+ "module": "./rules/index.js",
6
+ "exports": {
7
+ ".": {
8
+ "import": "./rules/index.js"
9
+ }
10
+ },
11
+ "publishConfig": {
12
+ "provenance": true
13
+ },
14
+ "description": "ESLint presets that I use a lot",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/mscharley/node-presets.git"
18
+ },
19
+ "keywords": [
20
+ "eslint",
21
+ "eslint-presets"
22
+ ],
23
+ "author": "Matthew Scharley <matt@scharley.me>",
24
+ "funding": {
25
+ "type": "individual",
26
+ "url": "https://github.com/sponsors/mscharley"
27
+ },
28
+ "license": "MIT",
29
+ "bugs": {
30
+ "url": "https://github.com/mscharley/node-presets/issues"
31
+ },
32
+ "homepage": "https://github.com/mscharley/node-presets#readme",
33
+ "peerDependencies": {
34
+ "@stylistic/eslint-plugin": "^2.9.0",
35
+ "@types/eslint": "^9.6.1",
36
+ "eslint": "^9.12.0",
37
+ "eslint-import-resolver-typescript": "^3.6.3",
38
+ "eslint-plugin-import": "^2.31.0",
39
+ "eslint-plugin-jest": "^28.8.3",
40
+ "eslint-plugin-n": "^17.10.3",
41
+ "eslint-plugin-react": "^7.37.1",
42
+ "eslint-plugin-react-hooks": "5.1.0-beta-26f2496093-20240514",
43
+ "typescript": "^5.6.3",
44
+ "typescript-eslint": "^8.8.1"
45
+ },
46
+ "scripts": {
47
+ "test": "eslint --max-warnings 0 ."
48
+ }
49
+ }
package/rules/testing.js CHANGED
@@ -23,17 +23,18 @@ export default [
23
23
  rules: {
24
24
  '@typescript-eslint/consistent-type-assertions': 'off',
25
25
  '@typescript-eslint/no-magic-numbers': 'off',
26
- 'jest/prefer-todo': 'error',
26
+ 'jest/expect-expect': ['warn', { assertFunctionNames: ['expect', 'verify'] }],
27
27
  'jest/no-conditional-in-test': 'warn',
28
28
  'jest/no-untyped-mock-factory': 'error',
29
29
  'jest/prefer-called-with': 'error',
30
30
  'jest/prefer-comparison-matcher': 'warn',
31
31
  'jest/prefer-equality-matcher': 'warn',
32
- 'jest/prefer-lowercase-title': 'error',
33
32
  'jest/prefer-expect-assertions': [
34
33
  'error',
35
34
  { onlyFunctionsWithExpectInLoop: true, onlyFunctionsWithExpectInCallback: true },
36
35
  ],
36
+ 'jest/prefer-lowercase-title': 'error',
37
+ 'jest/prefer-todo': 'error',
37
38
  },
38
39
  },
39
40
  {