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

Resolve JS-150 #4680

Merged

Conversation

ericmorand-sonarsource
Copy link
Contributor

@ericmorand-sonarsource ericmorand-sonarsource commented May 6, 2024

Fixes JS-150

@ericmorand-sonarsource ericmorand-sonarsource marked this pull request as ready for review May 6, 2024 08:43
@@ -137,7 +134,7 @@ export const rule: RuleModule<Options> = {

function checkFunction(node: estree.Node) {
const functionLike = node as unknown as TSESTree.FunctionLike;
const maxParams = (context.options as Options)[0].maximumFunctionParameters;
const maxParams = (context.options as Options)[0].max;
Copy link
Contributor

Choose a reason for hiding this comment

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

destruct?

@@ -25,7 +25,7 @@ const MAX_PARAMS_3 = 3;
const MAX_PARAMS_5 = 5;

const createOptions = (maximumFunctionParameters: number): Options => {
Copy link
Contributor

Choose a reason for hiding this comment

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

perhaps remove the name "maximumFunctionParameters" throughout the rules codebase?

@zglicz
Copy link
Contributor

zglicz commented May 6, 2024

I'll do another release, so maybe could you base your version on plugin v1.0.2?

@ericmorand-sonarsource ericmorand-sonarsource merged commit afc22d5 into SonarSource:master May 6, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants