question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configure lint-staged for eslint warning

See original GitHub issue

Hello, 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:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

18reactions
simon360commented, Feb 8, 2018

Is there a way to have lint-staged print the warnings, but not fail?

Some of our lint-staged commands have valuable output, like eslint 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found