Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New VariableOnly linter

See original GitHub issue

I 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']



Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

jwilssoncommented, Jan 28, 2017

Sounds good to me!

Lets hear some other thoughts too, though.

justtalcommented, Feb 1, 2017

@shellscape I really can’t see a situation that someone will want the “never” option.


Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found