Skip to content

parserOptions slow down linting significantly #319

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy