Skip to content

Commit

Permalink
feat: add autoFix to prefer-called-with (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
veritem committed Jul 9, 2023
1 parent 8729f97 commit 36e7e90
Show file tree
Hide file tree
Showing 7 changed files with 337 additions and 335 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -103,7 +103,7 @@ To use the all configuration, extend it in your `.eslintrc` file:
| [no-standalone-expect](docs/rules/no-standalone-expect.md) | Disallow using `expect` outside of `it` or `test` blocks | | 🌐 | | |
| [no-test-prefixes](docs/rules/no-test-prefixes.md) | Disallow using `test` as a prefix | | 🌐 | 🔧 | |
| [no-test-return-statement](docs/rules/no-test-return-statement.md) | Disallow return statements in tests | | 🌐 | | |
| [prefer-called-with](docs/rules/prefer-called-with.md) | Suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()` | | 🌐 | | |
| [prefer-called-with](docs/rules/prefer-called-with.md) | Suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()` | | 🌐 | 🔧 | |
| [prefer-comparison-matcher](docs/rules/prefer-comparison-matcher.md) | Suggest using the built-in comparison matchers | | 🌐 | 🔧 | |
| [prefer-each](docs/rules/prefer-each.md) | Prefer `each` rather than manual loops | | 🌐 | | |
| [prefer-equality-matcher](docs/rules/prefer-equality-matcher.md) | Suggest using the built-in quality matchers | | 🌐 | | 💡 |
Expand Down
2 changes: 2 additions & 0 deletions docs/rules/prefer-called-with.md
Expand Up @@ -2,6 +2,8 @@

⚠️ This rule _warns_ in the 🌐 `all` config.

🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

<!-- end auto-generated rule header -->

## Rule Details
Expand Down
4 changes: 2 additions & 2 deletions fixtures/package.json
Expand Up @@ -12,9 +12,9 @@
"license": "MIT",
"dependencies": {
"eslint-plugin-vitest": "^0.2.6",
"vitest": "^0.32.2"
"vitest": "^0.33.0"
},
"devDependencies": {
"eslint": "^8.43.0"
"eslint": "^8.44.0"
}
}
14 changes: 7 additions & 7 deletions package.json
Expand Up @@ -39,22 +39,22 @@
"devDependencies": {
"@babel/types": "^7.22.5",
"@types/mocha": "^10.0.1",
"@types/node": "^20.3.1",
"@typescript-eslint/eslint-plugin": "^5.60.0",
"@typescript-eslint/parser": "^5.60.0",
"@types/node": "^20.4.1",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"@veritem/eslint-config": "^0.0.11",
"bumpp": "^9.1.1",
"concurrently": "^8.2.0",
"eslint": "^8.43.0",
"eslint": "^8.44.0",
"eslint-doc-generator": "^1.4.3",
"eslint-plugin-eslint-plugin": "^5.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint-remote-tester": "^3.0.0",
"eslint-remote-tester-repositories": "^1.0.1",
"jiti": "^1.18.2",
"jiti": "^1.19.1",
"ts-node": "^10.9.1",
"unbuild": "^1.2.1",
"vitest": "^0.32.2"
"vitest": "^0.33.0"
},
"engines": {
"node": "14.x || >= 16"
Expand All @@ -63,6 +63,6 @@
"eslint": ">=8.0.0"
},
"dependencies": {
"@typescript-eslint/utils": "^5.60.0"
"@typescript-eslint/utils": "^5.61.0"
}
}

0 comments on commit 36e7e90

Please sign in to comment.