Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
I think a solution for Vue SFC performance.
Solution
change
typescript-eslint/typescript-eslint project
- add
fragment
boolean option in@typescript-eslint/parser
. - if
fragment === true
usecreateIsolatedProgram
in@typescript-eslint/typescript-estree
.
vue-eslint-parser project
- if parse ScriptFragment, add fragment options to parserOptions.
Test result
I have 109 TypeScript files and 119 Vue SFC files in this tested project.
@typescript-eslint 2.6.0 && vue-eslint-parser 6.0.4:real 261.93user 306.04sys 5.10This Solution:real 13.04user 20.26sys 1.27
Test code project
yoyo930021/typescript-eslint#commit
yoyo930021/vue-eslint-parser#commit