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

feat(valid-params): add exclude option #515

Merged
merged 3 commits into from
Oct 26, 2024

Conversation

brettz9
Copy link
Member

@brettz9 brettz9 commented Jul 25, 2024

What is the purpose of this pull request?

  • Changes an existing rule

What changes did you make? (Give an overview)

Adds an exclude option to valid-params. Allows use of non-standard methods, e.g., Bluebird catch.

Also refactors a few instances of array join into ES6 templates

Fixes #127

Copy link

codecov bot commented Jul 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (bbcfcbf) to head (1e13edc).
Report is 66 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #515   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           25        26    +1     
  Lines          649       722   +73     
  Branches       250       280   +30     
=========================================
+ Hits           649       722   +73     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@scagood scagood left a comment

Choose a reason for hiding this comment

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

Code looks good to me


I am not sure of:

  1. if we want to support off spec uses of promises
  2. how needed this is anymore

Both bluebird and other promise librarys are deprecating themselves eg:
https://github.com/petkaantonov/bluebird#%EF%B8%8Fnote%EF%B8%8F
https://github.com/kriskowal/q#note

The counter argument (and the reason I approve of this change) is that this is entirely opt-in and fairly simple

Copy link
Member

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

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

LGTM!

@brettz9 brettz9 merged commit 7ff2cb9 into eslint-community:main Oct 26, 2024
11 checks passed
@brettz9 brettz9 deleted the valid-params-exclude branch October 26, 2024 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add exclude for valid-params rule
3 participants