improve at-rule-conditional-no-parentheses
See original GitHub issueWill 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:
- Created 4 years ago
- Comments:9 (6 by maintainers)
Top 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 >
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
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.👍