From 2c4b8389e3ae070c9c545bfdd8c22e7ec044c66b Mon Sep 17 00:00:00 2001 From: koooge Date: Thu, 15 Oct 2020 19:43:47 +0200 Subject: [PATCH] chore(parser): clean up some unused code (#2674) --- packages/parser/src/index.ts | 6 ++++-- packages/parser/src/parser-options.ts | 1 - packages/parser/tests/lib/services.ts | 2 +- packages/parser/tests/tools/test-utils.ts | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) delete mode 100644 packages/parser/src/parser-options.ts diff --git a/packages/parser/src/index.ts b/packages/parser/src/index.ts index 1795fe1b36f..02b7568a692 100644 --- a/packages/parser/src/index.ts +++ b/packages/parser/src/index.ts @@ -1,6 +1,8 @@ export { parse, parseForESLint, ParserOptions } from './parser'; -export { ParserServices } from '@typescript-eslint/typescript-estree'; -export { clearCaches } from '@typescript-eslint/typescript-estree'; +export { + ParserServices, + clearCaches, +} from '@typescript-eslint/typescript-estree'; // note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder export const version: string = require('../package.json').version; diff --git a/packages/parser/src/parser-options.ts b/packages/parser/src/parser-options.ts deleted file mode 100644 index 025a97ed61b..00000000000 --- a/packages/parser/src/parser-options.ts +++ /dev/null @@ -1 +0,0 @@ -export { ParserOptions } from '@typescript-eslint/types'; diff --git a/packages/parser/tests/lib/services.ts b/packages/parser/tests/lib/services.ts index 210cd39e1ea..28cada9d251 100644 --- a/packages/parser/tests/lib/services.ts +++ b/packages/parser/tests/lib/services.ts @@ -1,7 +1,7 @@ import path from 'path'; import fs from 'fs'; import glob from 'glob'; -import { ParserOptions } from '../../src/parser-options'; +import { ParserOptions } from '../../src/parser'; import { createSnapshotTestBlock, formatSnapshotName, diff --git a/packages/parser/tests/tools/test-utils.ts b/packages/parser/tests/tools/test-utils.ts index 3b58e4d7536..0a14468fee0 100644 --- a/packages/parser/tests/tools/test-utils.ts +++ b/packages/parser/tests/tools/test-utils.ts @@ -1,6 +1,6 @@ import { TSESTree } from '@typescript-eslint/typescript-estree'; import * as parser from '../../src/parser'; -import { ParserOptions } from '../../src/parser-options'; +import { ParserOptions } from '../../src/parser'; const defaultConfig = { loc: true,