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

Revise Husky and lint-staged configuration #9

Closed
Constantiner opened this issue May 29, 2019 · 0 comments
Closed

Revise Husky and lint-staged configuration #9

Constantiner opened this issue May 29, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request infrastructure Project infrastructure improvements
Milestone

Comments

@Constantiner
Copy link
Owner

For .lintstagedrc something like this:

{
	"*.js": ["npx eslint", "git add"]
}

to lint added JavaScript files.

For .huskyrc:

{
	"hooks": {
		"pre-commit": "lint-staged"
	}
}
@Constantiner Constantiner added enhancement New feature or request infrastructure Project infrastructure improvements labels May 29, 2019
@Constantiner Constantiner added this to the v0.4.1 milestone May 29, 2019
@Constantiner Constantiner self-assigned this May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request infrastructure Project infrastructure improvements
Projects
None yet
Development

No branches or pull requests

1 participant