-
Notifications
You must be signed in to change notification settings - Fork 280
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
EsLint and CoffeeLint not using command #352
Comments
Did you |
After I added Where is the update version of my configuration? |
Ah, you need to update the # .overcommit.yml
PreCommit:
...
EsLint:
enabled: true
required_executable: 'npm'
command: ['npm', 'run', 'lint']
CoffeeLint:
enabled: true
required_executable: 'npm'
command: ['npm', 'run', 'coffeelint'] Overcommit is working correctly here: since the default configuration specifies the Hope that helps. |
Thanks for your help, the FAILED messages are disappered! BTW, the lint tools are not read their configuration files like #351. Can I set to show more detail like verbose for these tools output? |
You can get Overcommit to show more output by running with the Otherwise, you'll have to consult the documentation for |
Thanks, |
But I found another issue 😨 When run
I think this is a npm option problem. So I added
Got it! After that, I added
The output is below 😨
Why overcommit cannot handle coffeelint output? |
The moment you change the output format of If |
@sds This information about the required_executable needs to be moved here https://github.com/brigade/overcommit/blob/master/lib/overcommit/hook/pre_commit/es_lint.rb |
The previous Coffeelint configuration in overcommit.yml was not working for me - Overcommit would throw an error when I ran it and it reached the stage where it tried to run Coffeelint. I used the information in this Overcommit GitHub issue: sds/overcommit#352, to update the configuration to something that worked without error.
The previous Coffeelint configuration in overcommit.yml was not working for me - Overcommit would throw an error when I ran it and it reached the stage where it tried to run Coffeelint. I used the information in this Overcommit GitHub issue: sds/overcommit#352, to update the configuration to something that worked without error.
Hi,
I confugured below to
.overcommit.yml
andgit commit
, it seems not to run vianpm
Why overcommit tells me to install these tools globally?
The text was updated successfully, but these errors were encountered: