Skip to content

Commit

Permalink
chore(parser): clean up some unused code (#2674)
Browse files Browse the repository at this point in the history
  • Loading branch information
koooge committed Oct 15, 2020
1 parent c41dbe5 commit 2c4b838
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
6 changes: 4 additions & 2 deletions 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;
1 change: 0 additions & 1 deletion packages/parser/src/parser-options.ts

This file was deleted.

2 changes: 1 addition & 1 deletion 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,
Expand Down
2 changes: 1 addition & 1 deletion 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,
Expand Down

0 comments on commit 2c4b838

Please sign in to comment.