Skip to content

parserOptions slow down linting significantly #319

Closed
@luixo

Description

@luixo

I am trying to migrate gradually from tslint to typescript-eslint. On my attempt to incorporate @typescript-eslint/tslint/config the linting became extremly slow. Fiddling around with the configuration file, I found out that the problem is in the parserOptions property.
Mine looks quite minimalistic:

parserOptions: {
    project: 'tsconfig.json'
}

I run ESLint several times with and without parserOptions and benchmarked the timings (based on 10 runs):

Linter configuration Time
ESLint with parserOptions 15s
ESLint without parserOptions 3s

I'm not sure if that much of a slowdown is unevitable or it's just a malconfiguration of some sort.

Versions

package version
@typescript-eslint/eslint-plugin-tslint 1.4.1
@typescript-eslint/parser 1.4.0
TypeScript 3.3.3
ESLint 5.14.1
node 8.9.4
npm 5.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageWaiting for team members to take a look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions