Skip to content

Commit

Permalink
feat: remove deprecated rules (#661)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Removes rules `no-expect-resolves`, `no-truthy-falsy`, `no-try-expect`, and `prefer-inline-snapshots`
  • Loading branch information
G-Rath committed Sep 17, 2021
1 parent b0888c7 commit e8f16ec
Show file tree
Hide file tree
Showing 14 changed files with 1 addition and 698 deletions.
47 changes: 0 additions & 47 deletions docs/rules/no-expect-resolves.md

This file was deleted.

53 changes: 0 additions & 53 deletions docs/rules/no-truthy-falsy.md

This file was deleted.

63 changes: 0 additions & 63 deletions docs/rules/no-try-expect.md

This file was deleted.

51 changes: 0 additions & 51 deletions docs/rules/prefer-inline-snapshots.md

This file was deleted.

1 change: 0 additions & 1 deletion src/__tests__/__snapshots__/rules.test.ts.snap
Expand Up @@ -77,7 +77,6 @@ Object {
"jest/no-mocks-import": "error",
"jest/no-standalone-expect": "error",
"jest/no-test-prefixes": "error",
"jest/no-try-expect": "error",
"jest/valid-describe": "error",
"jest/valid-expect": "error",
"jest/valid-expect-in-promise": "error",
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/rules.test.ts
Expand Up @@ -2,7 +2,7 @@ import { existsSync } from 'fs';
import { resolve } from 'path';
import plugin from '../';

const numberOfRules = 46;
const numberOfRules = 42;
const ruleNames = Object.keys(plugin.rules);
const deprecatedRules = Object.entries(plugin.rules)
.filter(([, rule]) => rule.meta.deprecated)
Expand Down
26 changes: 0 additions & 26 deletions src/rules/__tests__/no-expect-resolves.test.ts

This file was deleted.

120 changes: 0 additions & 120 deletions src/rules/__tests__/no-truthy-falsy.test.ts

This file was deleted.

0 comments on commit e8f16ec

Please sign in to comment.