Skip to content

[prefer-nullish-coalescing] Doesn't work if typescript is not in project mode #1284

@entropitor

Description

@entropitor

Repro

{
  "rules": {
    "@typescript-eslint/prefer-nullish-coalescing": ["error"]
  }
}

Expected Result
It validates using the rule

Actual Result
It errors because the tsconfig doesn't use project mode

Versions

package version
@typescript-eslint/eslint-plugin 2.9.0
@typescript-eslint/parser 2.9.0
TypeScript 3.7.2
ESLint 6.6.0
node 13.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting responseIssues waiting for a reply from the OP or another partypackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions