Skip to content

Tweaks #448

@plroebuck

Description

@plroebuck

Description

Minor tweaks to "index.js":

https://github.com/okonet/lint-staged/blob/master/src/index.js#L16
Environment variables are strings. Done canonically:

  process.env.FORCE_COLOR = '1'

https://github.com/okonet/lint-staged/blob/master/src/index.js#L56
Remove this line. It's already the default value.

https://github.com/okonet/lint-staged/blob/master/src/index.js#L61
https://github.com/okonet/lint-staged/blob/master/src/index.js#L81
Would set process.exitCode as the first thing done in each catch block.

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