Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: break utils up a bit and remove old/outdated types #1127

Merged
merged 5 commits into from May 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/rules/__tests__/no-deprecated-functions.test.ts
@@ -1,8 +1,8 @@
import { TSESLint } from '@typescript-eslint/utils';
import { JestVersion, detectJestVersion } from '../detectJestVersion';
import rule from '../no-deprecated-functions';
import { JestVersion, detectJestVersion } from '../utils/detectJestVersion';

jest.mock('../detectJestVersion');
jest.mock('../utils/detectJestVersion');

const detectJestVersionMock = detectJestVersion as jest.MockedFunction<
typeof detectJestVersion
Expand Down
8 changes: 6 additions & 2 deletions src/rules/no-deprecated-functions.ts
@@ -1,6 +1,10 @@
import { AST_NODE_TYPES, TSESTree } from '@typescript-eslint/utils';
import { JestVersion, detectJestVersion } from './detectJestVersion';
import { createRule, getNodeName } from './utils';
import {
JestVersion,
createRule,
detectJestVersion,
getNodeName,
} from './utils';

interface ContextSettings {
jest?: EslintPluginJestSettings;
Expand Down