Skip to content

Commit 918873b

Browse files
authored
feat(no-jest-import): remove rule (#1220)
BREAKING CHANGE: removed `no-jest-import` rule
1 parent 7c1389e commit 918873b

File tree

6 files changed

+1
-108
lines changed

6 files changed

+1
-108
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ installations requiring long-term consistency.
217217
| [no-identical-title](docs/rules/no-identical-title.md) | Disallow identical titles | ![recommended][] | |
218218
| [no-interpolation-in-snapshots](docs/rules/no-interpolation-in-snapshots.md) | Disallow string interpolation inside snapshots | ![recommended][] | |
219219
| [no-jasmine-globals](docs/rules/no-jasmine-globals.md) | Disallow Jasmine globals | ![recommended][] | ![fixable][] |
220-
| [no-jest-import](docs/rules/no-jest-import.md) | Disallow importing Jest | ![recommended][] | |
221220
| [no-large-snapshots](docs/rules/no-large-snapshots.md) | disallow large snapshots | | |
222221
| [no-mocks-import](docs/rules/no-mocks-import.md) | Disallow manually importing from `__mocks__` | ![recommended][] | |
223222
| [no-restricted-matchers](docs/rules/no-restricted-matchers.md) | Disallow specific matchers & modifiers | | |

docs/rules/no-jest-import.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ exports[`rules should export configs that refer to actual rules 1`] = `
2828
"jest/no-identical-title": "error",
2929
"jest/no-interpolation-in-snapshots": "error",
3030
"jest/no-jasmine-globals": "error",
31-
"jest/no-jest-import": "error",
3231
"jest/no-large-snapshots": "error",
3332
"jest/no-mocks-import": "error",
3433
"jest/no-restricted-matchers": "error",
@@ -80,7 +79,6 @@ exports[`rules should export configs that refer to actual rules 1`] = `
8079
"jest/no-identical-title": "error",
8180
"jest/no-interpolation-in-snapshots": "error",
8281
"jest/no-jasmine-globals": "error",
83-
"jest/no-jest-import": "error",
8482
"jest/no-mocks-import": "error",
8583
"jest/no-standalone-expect": "error",
8684
"jest/no-test-prefixes": "error",

src/__tests__/rules.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { existsSync } from 'fs';
22
import { resolve } from 'path';
33
import plugin from '../';
44

5-
const numberOfRules = 50;
5+
const numberOfRules = 49;
66
const ruleNames = Object.keys(plugin.rules);
77
const deprecatedRules = Object.entries(plugin.rules)
88
.filter(([, rule]) => rule.meta.deprecated)

src/rules/__tests__/no-jest-import.test.ts

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/rules/no-jest-import.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)