Inconsistent option name: max vs. maximum
See original GitHub issueThe new max-statements-per-line has max
option, but other existing rules (including max-statements
) have maximum
.
- http://eslint.org/docs/rules/max-statements
- http://eslint.org/docs/rules/max-depth
- http://eslint.org/docs/rules/max-nested-callbacks
- http://eslint.org/docs/rules/complexity
- http://eslint.org/docs/rules/max-params
Is this intentional?
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (12 by maintainers)
Top Results From Across the Web
Max and min assignment giving incorrect and inconsistent ...
Im struggling to fix my code for a prompted assignment. Sometimes it gives the correct answers, other times it doesn't. For whatever reason,...
Read more >The OLE DB provider "MSDASQL" for linked server ...
Cause: This issue is occurring because we're trying to pull in a column which has a column size being set to “Max”. This...
Read more >Performance and scaling for Aurora Serverless v2
The maximum capacity must be higher than 0.5 ACUs. You can set the minimum and maximum capacity to be the same in most...
Read more >High Integrity System Modeling Checks - MATLAB & Simulink
Maximum effective lines of code per function ― Effective lines do not include empty lines, comment lines, or lines containing only the end...
Read more >I'm getting inconsistent success when trying to discover Oracle ...
Check process name to match Oracle listener or Oracle ... The max object size reached the maximum limit of [1000].
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, we should fix this for sure. Assuming we stick with
max
everywhere, that would mean that we’d need to:maximum
also acceptmax
(update the rule schema so it accepts both).max
while adding a note that the option namemaximum
is deprecated and will be remove at some point in the future.So 3 with
max
and 5 withmaximum
. Even thoughmaximum
appears in more places, I would rather havemax
as the default.Max
is self-explanatory and less typing.