Skip to content

Simplify eslint matchers in package.json #57

@josecelano

Description

@josecelano

The yarn lint command uses ESLint to check linting:

You can use glob syntax and I suppose we can define what we want only with one glob pattern:

"lint": "eslint --fix **src/*.ts; eslint --fix **src/**/*.ts; eslint --fix __tests__/**/*.ts",
"lint-check": "eslint **src/*.ts; eslint **src/**/*.ts; eslint __tests__/**/*.ts",

instead of calling ESLint three issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions