question-mark
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.

improve at-rule-conditional-no-parentheses

See original GitHub issue

Will be great if we implement new rule with name at-rule-conditional-parentheses with options: never and always. We try to always use parens to avoid misleading in code and keep our code based consistently with other programmers language where parens are required

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nex3commented, Sep 27, 2019

The same reason we don’t encourage parentheses for, say, @return: they’re syntactically unnecessary, and unnecessary punctuation generally adds clutter without conveying information. This is especially true for parentheses in Sass which are used to indicate maps and often lists. Also, in practice, it’s most common for authors to omit these parentheses.

0reactions
alexander-akaitcommented, Oct 1, 2019

👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

at-rule-conditional-no-parentheses - stylelint-scss - GitHub
A collection of SCSS specific linting rules for Stylelint ... stylelint-scss/src/rules/at-rule-conditional-no-parentheses/README.md.
Read more >
Should I fully parenthesize expressions or rely on precedence ...
Good developers strive to write code that is clear and correct. Parentheses in conditionals, even if they are not strictly required, help with...
Read more >
Is it a bad practice to use an if-statement without curly braces?
I support the idea of "no brackets if it fits in one line" because, well, for me such an if is just a...
Read more >
stylelint-scss - npm
A collection of SCSS specific rules for Stylelint. ... at-rule-conditional-no-parentheses : Disallow parentheses in conditional @ rules (if, ...
Read more >
Abbreviated combined relation conditions - IBM
relation-condition AND OR NOT relational-operator object ... Using parentheses can also help improve the readability of conditional expressions.
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found