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 `ignoreFunctions: []` to function-no-unknown

See original GitHub issue

What is the problem you’re trying to solve?

function-no-unknown throws an error when using non-standard funcitons such as tailwindcss theme function.

What solution would you like to see?

It would be nice to have a feature to ignore certain functions just like ignoreAtRules of at-rule-no-unknown.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ybiquitouscommented, Feb 9, 2022

@mizozobu Thanks for the suggestion. I’ve opened a pull request #5901.

0reactions
jeddy3commented, Feb 10, 2022

Released in 14.5.0.

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 >
[Linter] Stylelint - Let's see how to install and configure ...
Let's see how to install and configure Stylelint to check code style of CSS, SCSS files, and CSS-in-JS.
Read more >
Tailwind theme directive unknown - sage - Roots Discourse
I have been trying to use tailwind's theme directive with Sage 10 but somehow it's not defined in the default installation.
Read more >
stylelint-scss | Yarn - Package Manager
Added : at-function-named-arguments add ignoreFunctions option. Fixed: at-function-named-arguments correctly parse data uris as function parameters.
Read more >
Tweets with replies by Stylelint (@stylelint) / Twitter
It adds the `media-feature-range-notation` rule, adds the capability to specify ... adds an `ignoreFunctions` option to the new `function-no-unknown` rule:.
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