Is there a way to disable camelcase within function params?
See original GitHub issueI currently can’t change the backend to allow the params to use camelcase and I’d rather not disable the warning about camelcase for everything.
Is there a way to disable the check just for the allowed_qualities
and preferred_qualities
?
$.get('config/general/saveAddShowDefaults', {
allowed_qualities: anyQualArray.join(','),
preferred_qualities: bestQualArray.join(',')
});
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Disable check of camel case rule in eslint - Stack Overflow
I am trying to disable them and address them one at a time. The code below shows that I can disable them all...
Read more >camelcase - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >[policy, no patch] Stop disallowing camelCase for local ...
Allow both snake_case and camelCase to be used as variable names. For consistency, allow that for global variables, local variables in functions ......
Read more >Naming Conventions · Styleguide JavaScript
Use camelCase when naming objects, functions, and instances. ESLint: camelcase. Examples. ⇣ Incorrect code for this rule: const SNOwFlaakesssss = {}; const ...
Read more >JavaScript Algorithm: Convert String to Camel Case | by Erica N
The goal of the function is to remove all dashes and/or underscores and the first word that follows that underscore or dash should...
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 Free
Top 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
According to the official ESLint documentation for the camelcase rule, no.
However, you can add per-line ESLint ignore directives to your code.
@sindresorhus that main reason I didn’t want to use inline ignores is we use ajax and get requests quite a bit meaning most files contain 10 - 20 ignore lines just for those. If we could disable it just for certain functions like
$.get
that’d be a lot easier.