Configure lint-staged for eslint warning
See original GitHub issueHello, thank you for the project!
I want to prevent eslint warnings in my commits, but seems like lint-staged
checks only eslint errors.
Is it technically possible to check warnings as well?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Run ESLint on git commit with Husky and Lint Staged
You can just add the command you want to run e.g. run ESLint before commit inside the configuration file provided by Husky and...
Read more >Setting up ESLint, Prettier, and Husky with lint-staged for your ...
This is a walk-through of those steps required in setting up ESLint, Prettier, and Husky with lint-staged for a Next.js project.
Read more >Diving into Husky and Lint-staged | Laurie on Tech
The commands you configure will run "pre-commit". As you're attempting to commit files to your project you'll see ESLint run in your terminal....
Read more >How to use husky and lint-staged in React JS to push your ...
So let us start with the tutorial. Requirements. husky · lint-staged. First, configure eslint and prettier on your react project. You can follow ......
Read more >Linting Staged Git Files with lint-staged -- newline - Fullstack.io
To get started, check that your project already has ESLint, stylelint or Prettier configured (either via a .xxxrc configuration file or a key ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Is there a way to have
lint-staged
print the warnings, but not fail?Some of our
lint-staged
commands have valuable output, likeeslint
warnings, or test coverage reports. However, unless a command fails,lint-staged
hides all the output.It’d be nice to show this information to the committer, without preventing them from commiting the code anyway.
See https://github.com/eslint/eslint/issues/2309#issuecomment-219828044