Add function-no-unknown
See original GitHub issueWhat 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?
- Stylelint could export a list of known CSS functions that could be imported inside stylelint.config.js
- Stylelint could provide a rule
function-no-unknown
which throws errors for unknown functions
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (10 by maintainers)
Top 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 >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
Yes, for example, see the demo.
Should we consider extending this lint rule to be able to include all
sass
functions as well? 🤔