8000 @typescript-eslint/strict-boolean-expressions overly strict · Issue #4 · stencila/dev-config · GitHub
[go: up one dir, main page]

Skip to content
@typescript-eslint/strict-boolean-expressions overly strict #4
@nokome

Description

@nokome

I find the @typescript-eslint/strict-boolean-expressions lint rule a bit painful and have turned it off in Encoda because it makes heavy use of expressions like variable && variable.prop and variable || 'default'.

I cant' find a good rationale for this rule, especially for null and undefined. The TSLint docs, whence this rule came, offer no insight: https://palantir.github.io/tslint/rules/strict-boolean-expressions/.

Others also think this rule is too strict by default typescript-eslint/typescript-eslint#698. I suggest that until some of those options are available that we remove this rule.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0