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.93
user 306.04
sys 5.10
This Solution:
real 13.04
user 20.26
sys 1.27
Test code project
yoyo930021/typescript-eslint #commit
yoyo930021/vue-eslint-parser #commit