Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

feat(rome_js_analyze): useDefaultParameterLast #3873

Merged
merged 2 commits into from
Dec 5, 2022
Merged

feat(rome_js_analyze): useDefaultParameterLast #3873

merged 2 commits into from
Dec 5, 2022

Conversation

Conaclos
Copy link
Contributor

@Conaclos Conaclos commented Nov 27, 2022

Summary

This implements ESLint's default-param-last under the name useDefaultParameterLast.

Test Plan

Unit tests and doc-tests included.

@Conaclos Conaclos requested review from leops, ematipico, xunilrj and a team as code owners November 27, 2022 14:01
@netlify
Copy link

netlify bot commented Nov 27, 2022

Deploy Preview for docs-rometools ready!

Name Link
🔨 Latest commit f46a301
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/638dcc0d6969340008c5f9cf
😎 Deploy Preview https://deploy-preview-3873--docs-rometools.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@Conaclos Conaclos changed the title feat(rome_js_analyze): useDefaultFunctionParameterLast feat(rome_js_analyze): useDefaultFunctionParameterLast Nov 28, 2022
@Conaclos Conaclos requested review from ematipico and removed request for xunilrj and leops November 29, 2022 21:55
@Conaclos
Copy link
Contributor Author

Conaclos commented Dec 5, 2022

Due to the decision of leops, I will rename the rule to useDefaultParameterLast. The rule could be enhanced by handling generic parameters.

@MichaReiser
Copy link
Contributor

Due to the decision of leops, I will rename the rule to useDefaultParameterLast. The rule could be enhanced by handling generic parameters.

Thanks for this comment. I was just about to merge in main to resolve the conflicts and then merge the PR :)

@MichaReiser MichaReiser changed the title feat(rome_js_analyze): useDefaultFunctionParameterLast feat(rome_js_analyze): useDefaultParameterLast Dec 5, 2022
@Conaclos
Copy link
Contributor Author

Conaclos commented Dec 5, 2022

@MichaReiser Renamed and rebased :)

@MichaReiser MichaReiser added A-Linter Area: linter L-JavaScript Langauge: JavaScript labels Dec 5, 2022
@MichaReiser MichaReiser added this to the 11.0.0 milestone Dec 5, 2022
@MichaReiser MichaReiser merged commit 731ce10 into rome:main Dec 5, 2022
@Conaclos Conaclos deleted the use_default_function_parameter_last branch March 7, 2023 16:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Linter Area: linter L-JavaScript Langauge: JavaScript
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants