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

Simplify Ignoring Files From .eslintignore. #1013

Merged
merged 1 commit into from Sep 8, 2021
Merged

Simplify Ignoring Files From .eslintignore. #1013

merged 1 commit into from Sep 8, 2021

Conversation

Kurt-von-Laven
Copy link
Contributor

The README advised ESLint >= 7 users to install node-filter-async. Replace this suggestion with a simpler implementation requiring the same number of lines of code but no dependencies. Rename the variable eslintCli to eslint since it is an instance of the ESLint Node.js API as distinct from the ESLint CLI. Avoid instantiating the API when the files staged don't necessitate invocation of ESLint.

The README advised ESLint >= 7 users to install node-filter-async.
Replace this suggestion with a simpler implementation requiring the same
number of lines of code but no dependencies. Rename the variable
eslintCli to eslint since it is an instance of the ESLint Node.js API as
distinct from the ESLint CLI. Avoid instantiating the API when the files
staged don't necessitate invocation of ESLint.
Copy link
Member

@iiroj iiroj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good to me!

@codecov
Copy link

codecov bot commented Sep 8, 2021

Codecov Report

Merging #1013 (1a43c90) into master (ad4316c) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #1013   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           19        19           
  Lines          641       641           
  Branches       146       146           
=========================================
  Hits           641       641           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ad4316c...1a43c90. Read the comment docs.

@iiroj iiroj merged commit 0ef25e8 into lint-staged:master Sep 8, 2021
@Kurt-von-Laven Kurt-von-Laven deleted the patch-1 branch September 8, 2021 09:05
@github-actions
Copy link
Contributor

github-actions bot commented Oct 2, 2021

🎉 This PR is included in version 11.1.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link
Contributor

github-actions bot commented Oct 2, 2021

🎉 This PR is included in version 11.2.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link
Contributor

github-actions bot commented Oct 4, 2021

🎉 This PR is included in version 11.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

2 participants