Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2c4b838

Browse files
authored
chore(parser): clean up some unused code (typescript-eslint#2674)
1 parent c41dbe5 commit 2c4b838

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

packages/parser/src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
export { parse, parseForESLint, ParserOptions } from './parser';
2-
export { ParserServices } from '@typescript-eslint/typescript-estree';
3-
export { clearCaches } from '@typescript-eslint/typescript-estree';
2+
export {
3+
ParserServices,
4+
clearCaches,
5+
} from '@typescript-eslint/typescript-estree';
46

57
// note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder
68
export const version: string = require('../package.json').version;

packages/parser/src/parser-options.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/parser/tests/lib/services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import path from 'path';
22
import fs from 'fs';
33
import glob from 'glob';
4-
import { ParserOptions } from '../../src/parser-options';
4+
import { ParserOptions } from '../../src/parser';
55
import {
66
createSnapshotTestBlock,
77
formatSnapshotName,

packages/parser/tests/tools/test-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { TSESTree } from '@typescript-eslint/typescript-estree';
22
import * as parser from '../../src/parser';
3-
import { ParserOptions } from '../../src/parser-options';
3+
import { ParserOptions } from '../../src/parser';
44

55
const defaultConfig = {
66
loc: true,

0 commit comments

Comments
 (0)