Skip to content

Commit 707b2f1

Browse files
committed
fix: remove no-alias-methods from style config
1 parent 483cfb4 commit 707b2f1

File tree

4 files changed

+2
-7
lines changed

4 files changed

+2
-7
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ Manually fixable by
329329
| [expect-expect](docs/rules/expect-expect.md) | Enforce assertion to be made in a test body | || | |
330330
| [max-expects](docs/rules/max-expects.md) | Enforces a maximum number assertion calls in a test body | | | | |
331331
| [max-nested-describe](docs/rules/max-nested-describe.md) | Enforces a maximum depth to nested describe calls | | | | |
332-
| [no-alias-methods](docs/rules/no-alias-methods.md) | Disallow alias methods || 🎨 | 🔧 | |
332+
| [no-alias-methods](docs/rules/no-alias-methods.md) | Disallow alias methods || | 🔧 | |
333333
| [no-commented-out-tests](docs/rules/no-commented-out-tests.md) | Disallow commented out tests | || | |
334334
| [no-conditional-expect](docs/rules/no-conditional-expect.md) | Disallow calling `expect` conditionally || | | |
335335
| [no-conditional-in-test](docs/rules/no-conditional-in-test.md) | Disallow conditional logic in tests | | | | |

docs/rules/no-alias-methods.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Disallow alias methods (`no-alias-methods`)
22

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

86
🔧 This rule is automatically fixable by the

src/__tests__/__snapshots__/rules.test.ts.snap

-2
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ exports[`rules should export configs that refer to actual rules 1`] = `
240240
},
241241
},
242242
"rules": {
243-
"jest/no-alias-methods": "warn",
244243
"jest/prefer-to-be": "error",
245244
"jest/prefer-to-contain": "error",
246245
"jest/prefer-to-have-length": "error",
@@ -283,7 +282,6 @@ exports[`rules should export configs that refer to actual rules 1`] = `
283282
"jest",
284283
],
285284
"rules": {
286-
"jest/no-alias-methods": "warn",
287285
"jest/prefer-to-be": "error",
288286
"jest/prefer-to-contain": "error",
289287
"jest/prefer-to-have-length": "error",

src/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ const recommendedRules = {
5353
} satisfies Record<string, TSESLint.Linter.RuleLevel>;
5454

5555
const styleRules = {
56-
'jest/no-alias-methods': 'warn',
5756
'jest/prefer-to-be': 'error',
5857
'jest/prefer-to-contain': 'error',
5958
'jest/prefer-to-have-length': 'error',

0 commit comments

Comments
 (0)