Skip to content

Commit 7cd3bc2

Browse files
armano2JamesHenry
authored andcommitted
refactor(parser): add ast types to parser (#205)
1 parent 3306198 commit 7cd3bc2

File tree

14 files changed

+492
-538
lines changed

14 files changed

+492
-538
lines changed

Diff for: packages/eslint-plugin-tslint/src/index.ts

+1-9
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,12 @@ import memoize from 'lodash.memoize';
33
import { Configuration, RuleSeverity } from 'tslint';
44
import { Program } from 'typescript';
55
import { CustomLinter } from './custom-linter';
6+
import { ParserServices } from '@typescript-eslint/typescript-estree';
67

78
//------------------------------------------------------------------------------
89
// Plugin Definition
910
//------------------------------------------------------------------------------
1011

11-
/**
12-
* @todo share types between packages
13-
*/
14-
interface ParserServices {
15-
program: Program | undefined;
16-
esTreeNodeToTSNodeMap: WeakMap<object, any> | undefined;
17-
tsNodeToESTreeNodeMap: WeakMap<object, any> | undefined;
18-
}
19-
2012
type RawRuleConfig =
2113
| null
2214
| undefined

Diff for: packages/parser/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"devDependencies": {
4444
"@types/eslint": "^4.16.5",
4545
"@types/eslint-visitor-keys": "^1.0.0",
46-
"@types/estree": "^0.0.39",
4746
"@typescript-eslint/shared-fixtures": "1.2.0"
4847
}
4948
}

0 commit comments

Comments
 (0)