Skip to content

Commit

Permalink
fix: remove no-alias-methods from style config
Browse files Browse the repository at this point in the history
  • Loading branch information
FloEdelmann committed Dec 3, 2024
1 parent 483cfb4 commit 707b2f1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ Manually fixable by
| [expect-expect](docs/rules/expect-expect.md) | Enforce assertion to be made in a test body | || | |
| [max-expects](docs/rules/max-expects.md) | Enforces a maximum number assertion calls in a test body | | | | |
| [max-nested-describe](docs/rules/max-nested-describe.md) | Enforces a maximum depth to nested describe calls | | | | |
| [no-alias-methods](docs/rules/no-alias-methods.md) | Disallow alias methods || 🎨 | 🔧 | |
| [no-alias-methods](docs/rules/no-alias-methods.md) | Disallow alias methods || | 🔧 | |
| [no-commented-out-tests](docs/rules/no-commented-out-tests.md) | Disallow commented out tests | || | |
| [no-conditional-expect](docs/rules/no-conditional-expect.md) | Disallow calling `expect` conditionally || | | |
| [no-conditional-in-test](docs/rules/no-conditional-in-test.md) | Disallow conditional logic in tests | | | | |
Expand Down
4 changes: 1 addition & 3 deletions docs/rules/no-alias-methods.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Disallow alias methods (`no-alias-methods`)

💼⚠️ This rule is enabled in the ✅ `recommended`
[config](https://github.com/jest-community/eslint-plugin-jest/blob/main/README.md#shareable-configurations).
This rule _warns_ in the 🎨 `style`
💼 This rule is enabled in the ✅ `recommended`
[config](https://github.com/jest-community/eslint-plugin-jest/blob/main/README.md#shareable-configurations).

🔧 This rule is automatically fixable by the
Expand Down
2 changes: 0 additions & 2 deletions src/__tests__/__snapshots__/rules.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ exports[`rules should export configs that refer to actual rules 1`] = `
},
},
"rules": {
"jest/no-alias-methods": "warn",
"jest/prefer-to-be": "error",
"jest/prefer-to-contain": "error",
"jest/prefer-to-have-length": "error",
Expand Down Expand Up @@ -283,7 +282,6 @@ exports[`rules should export configs that refer to actual rules 1`] = `
"jest",
],
"rules": {
"jest/no-alias-methods": "warn",
"jest/prefer-to-be": "error",
"jest/prefer-to-contain": "error",
"jest/prefer-to-have-length": "error",
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ const recommendedRules = {
} satisfies Record<string, TSESLint.Linter.RuleLevel>;

const styleRules = {
'jest/no-alias-methods': 'warn',
'jest/prefer-to-be': 'error',
'jest/prefer-to-contain': 'error',
'jest/prefer-to-have-length': 'error',
Expand Down

0 comments on commit 707b2f1

Please sign in to comment.