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.

Add function-no-unknown

See original GitHub issue

What is the problem you’re trying to solve?

I’m looking for a list of known CSS functions in order to catch typo errors.

see https://github.com/stylelint-scss/stylelint-scss/issues/581#issuecomment-1017484418

What solution would you like to see?

  1. Stylelint could export a list of known CSS functions that could be imported inside stylelint.config.js
  2. Stylelint could provide a rule function-no-unknown which throws errors for unknown functions

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
ybiquitouscommented, Feb 14, 2022

Yes, for example, see the demo.

2reactions
ZanMaroltcommented, Feb 14, 2022

Should we consider extending this lint rule to be able to include all sass functions as well? 🤔

Read more comments on GitHub >

github_iconTop Results From Across the Web

function-no-unknown - Stylelint
This rule considers functions defined in the CSS Specifications to be known. This rule ignores double-dashed custom functions, e.g. --custom-function() .
Read more >
css - Unexpected unknown at-rule "@tailwind" scss/at-rule-no ...
Does this help? rules: { 'at-rule-no-unknown': null, 'scss/at-rule-no-unknown': [ true, { 'ignoreAtRules': ['tailwind'] } ], }.
Read more >
Functions - JavaScript - MDN Web Docs
Block-level functions in non-strict code ; if · ) { ; // Using a var makes it available as a global variable, //...
Read more >
SCSS map-get is not recognized as a SCSS function in Sage 10
@alwaysblank based on this issue, I think the only solution for now is adding "function-no-unknown": null in .stylelintrc file. 1 Like.
Read more >
unexpected unknown at-rule "@use" - You.com - You.com
Apr 8, 2022 ... Unexpected unknown function “map-get” function-no-unknown ... You may need to add @use sass:map : Sass: Built ...
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