Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Husky with Lint Staged #1081

Open
emersonlaurentino opened this issue Mar 12, 2020 · 0 comments
Open

Use Husky with Lint Staged #1081

emersonlaurentino opened this issue Mar 12, 2020 · 0 comments

Comments

@emersonlaurentino
Copy link
Member

emersonlaurentino commented Mar 12, 2020

Due to the large amount of errors that I had in the project and I needed to push so that other people could correct them, I decided to remove the husky from the project. #1080

However, when there are no more problems with the lint. We must add again. #1082

Follows the settings:

package.json

{
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "*.{ts,js,tsx,jsx}": [
      "eslint --fix",
      "prettier --write"
    ],
    "*.json": [
      "prettier --write"
    ]
  },
  "devDependencies": {
    "husky": "^4.2.0",
    "lint-staged": "^10.0.2"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant