The most flexible linting plugin for controlling the number of function parameters and arguments! #3
abdusabri
started this conversation in
Show and tell
Replies: 1 comment
-
Cool stuff. Thanks for sharing. I've written 3 eslint plugins that we may also consider: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone, and especially, @getify :)
Looking at the goal/idea behind BYOJS, I think a linting plugin that promotes good coding practices fits this initiative. If so, I would be more than happy to have my plugin - shared below - featured/listed :)
Summary
It is an ESLint plugin, which gives a high level of control over the number of function parameters and arguments used in your code. It is authored 100% in JavaScript (but supports TypeScript as well).
The plugin intends to give you control over how many parameters are used in function definitions (declarations), function expressions, arrow function expressions, and TypeScript function type annotations. In addition to this, you can also set limits on how many arguments can be used when calling functions, where you can set a global limit, and have even finer control by providing limits for specific function calls (set by configuring/providing the name of a function).
Links
To keep this discussion/entry short, I'm linking to the project on GitHub, which has detailed documentation and examples.
Even if it doesn't get featured in BYOJS, happy for anyone reading this discussion to test it out and use in your projects :)
Beta Was this translation helpful? Give feedback.
All reactions