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

Run local scripts from package.json before trying a bin lookup #17

Closed
okonet opened this issue Jun 8, 2016 · 0 comments
Closed

Run local scripts from package.json before trying a bin lookup #17

okonet opened this issue Jun 8, 2016 · 0 comments

Comments

@okonet
Copy link
Collaborator

okonet commented Jun 8, 2016

Having eslint installed and the following config in the package.json

"scripts": {
  "eslint": "eslint --fix"
},
"lint-staged": {
  "eslint": "*.js"
}

will run eslint without --fix parameter since it tries a bin lookup before trying to execute the local script. Local npm script should be the default behavior with a fallback to the bin lookup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant