Skip to content

Commit

Permalink
feat(no-jest-import): remove rule (#1220)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: removed `no-jest-import` rule
  • Loading branch information
G-Rath committed Aug 28, 2022
1 parent 7c1389e commit 918873b
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 108 deletions.
1 change: 0 additions & 1 deletion README.md
Expand Up @@ -217,7 +217,6 @@ installations requiring long-term consistency.
| [no-identical-title](docs/rules/no-identical-title.md) | Disallow identical titles | ![recommended][] | |
| [no-interpolation-in-snapshots](docs/rules/no-interpolation-in-snapshots.md) | Disallow string interpolation inside snapshots | ![recommended][] | |
| [no-jasmine-globals](docs/rules/no-jasmine-globals.md) | Disallow Jasmine globals | ![recommended][] | ![fixable][] |
| [no-jest-import](docs/rules/no-jest-import.md) | Disallow importing Jest | ![recommended][] | |
| [no-large-snapshots](docs/rules/no-large-snapshots.md) | disallow large snapshots | | |
| [no-mocks-import](docs/rules/no-mocks-import.md) | Disallow manually importing from `__mocks__` | ![recommended][] | |
| [no-restricted-matchers](docs/rules/no-restricted-matchers.md) | Disallow specific matchers & modifiers | | |
Expand Down
20 changes: 0 additions & 20 deletions docs/rules/no-jest-import.md

This file was deleted.

2 changes: 0 additions & 2 deletions src/__tests__/__snapshots__/rules.test.ts.snap
Expand Up @@ -28,7 +28,6 @@ exports[`rules should export configs that refer to actual rules 1`] = `
"jest/no-identical-title": "error",
"jest/no-interpolation-in-snapshots": "error",
"jest/no-jasmine-globals": "error",
"jest/no-jest-import": "error",
"jest/no-large-snapshots": "error",
"jest/no-mocks-import": "error",
"jest/no-restricted-matchers": "error",
Expand Down Expand Up @@ -80,7 +79,6 @@ exports[`rules should export configs that refer to actual rules 1`] = `
"jest/no-identical-title": "error",
"jest/no-interpolation-in-snapshots": "error",
"jest/no-jasmine-globals": "error",
"jest/no-jest-import": "error",
"jest/no-mocks-import": "error",
"jest/no-standalone-expect": "error",
"jest/no-test-prefixes": "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 = 50;
const numberOfRules = 49;
const ruleNames = Object.keys(plugin.rules);
const deprecatedRules = Object.entries(plugin.rules)
.filter(([, rule]) => rule.meta.deprecated)
Expand Down
47 changes: 0 additions & 47 deletions src/rules/__tests__/no-jest-import.test.ts

This file was deleted.

37 changes: 0 additions & 37 deletions src/rules/no-jest-import.ts

This file was deleted.

0 comments on commit 918873b

Please sign in to comment.