Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.
This repository was archived by the owner on Apr 6, 2023. It is now read-only.

Run lint-staged on tests and example files #78

@diego3g

Description

@diego3g

What would you like to be added:

Run lint-staged in tests and example folder.

Why is this needed:

People have different editors and configuration and sometimes Prettier is messing with those files and Pull Requests get rejected because of style guide.

Is your enhancement request related to a problem? Please describe.

Not a problem itself, but there are a lot of PR's with linting problems.

Additional context

Maybe something like this solve the issue:

"lint-staged": {
  "lib/**/*.{ts,tsx}": [
    "eslint --fix",
    "prettier --write",
    "jest --bail --findRelatedTests"
  ],
  "__tests__/**/*.{ts,tsx}" : [
    "eslint --fix",
    "prettier --write"
  ],
  "example/**/*.{ts,tsx}" : [
    "eslint --fix",
    "prettier --write"
  ]
},

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions