8000 Bug: single run mode ignores the debugLevel flag · Issue #5887 · typescript-eslint/typescript-eslint · GitHub
[go: up one dir, main page]

Skip to content
Bug: single run mode ignores the debugLevel flag #5887
Closed
@bradzacher

Description

@bradzacher

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have searched for related issues and found none that matched my issue.
  • I have read the FAQ and my problem is not listed.

In normal type-aware mode we pass a special set of compiler options to our program which allows us to turn on TS debug logging.

Call:
https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-estree/src/create-program/createWatchProgram.ts#L265

Utility:
https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-estree/src/create-program/shared.ts#L36-L47

But in single run mode we don't use our util, so we don't turn on debug logging when we should:
https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-estree/src/create-program/useProvidedPrograms.ts#L66

ESLint Config

module.exports = {
  parser: "@typescript-eslint/parser",
  parserOptions: {
    debugLevel: ['typescript'],
  },
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workingpackage: typescript-estreeIssues related to @typescript-eslint/typescript-estree

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0