Skip to content

Commit

Permalink
feat(prefer-to-be-null): remove rule
Browse files Browse the repository at this point in the history
BREAKING CHANGE: removed `prefer-to-be-null` rule
  • Loading branch information
G-Rath authored and SimenB committed Oct 10, 2021
1 parent 2a3376f commit 809bcda
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 188 deletions.
37 changes: 0 additions & 37 deletions docs/rules/prefer-to-be-null.md

This file was deleted.

1 change: 0 additions & 1 deletion src/__tests__/__snapshots__/rules.test.ts.snap
Expand Up @@ -91,7 +91,6 @@ Object {
"rules": Object {
"jest/no-alias-methods": "warn",
"jest/prefer-to-be": "error",
"jest/prefer-to-be-null": "error",
"jest/prefer-to-be-undefined": "error",
"jest/prefer-to-contain": "error",
"jest/prefer-to-have-length": "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 = 45;
const numberOfRules = 44;
const ruleNames = Object.keys(plugin.rules);
const deprecatedRules = Object.entries(plugin.rules)
.filter(([, rule]) => rule.meta.deprecated)
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Expand Up @@ -74,7 +74,6 @@ export = {
rules: {
'jest/no-alias-methods': 'warn',
'jest/prefer-to-be': 'error',
'jest/prefer-to-be-null': 'error',
'jest/prefer-to-be-undefined': 'error',
'jest/prefer-to-contain': 'error',
'jest/prefer-to-have-length': 'error',
Expand Down
75 changes: 0 additions & 75 deletions src/rules/__tests__/prefer-to-be-null.test.ts

This file was deleted.

73 changes: 0 additions & 73 deletions src/rules/prefer-to-be-null.ts

This file was deleted.

0 comments on commit 809bcda

Please sign in to comment.