New VariableOnly linter
See original GitHub issueI have created a new linter called “variableOnly” that validate that values of specific property is a variable.
At our team for color and font-size (for now) we use only variables that defined in app variables file.
Do you think it can be useful for other? do you want me to commit it to lesshint or create my own custom linter package?
You can pass to the linter the properties you want to be variable only:
"variableOnly": {
"enabled": true,
"properties": ['color', 'font-size']
}
Cheers,
Tal.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Add a new lint to require types on variables but not ...
I just want always_specify_types to not enforce generics on literals, ESPECIALLY when the type has been specified on the variable itself.
Read more >one-var - 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 >is there way to lint a specific variable name with eslint
You can create your own eslint rule as mentioned in the comments. Here is a small example that reports all identifiers (excluding property ......
Read more >Linter rules
This rule is available as of Dart 2.0.0. Details. DO reference only in scope identifiers in doc comments. If you surround things like...
Read more >Linters | golangci-lint
Name Description Presets Since
asasalint ⚙️ check for pass any as any in variadic func(...any) bugs 1.47.0
bidichk ⚙️ Checks for dangerous unicode character sequences...
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
Sounds good to me!
Lets hear some other thoughts too, though.
@shellscape I really can’t see a situation that someone will want the “never” option.
WDYT?