Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix function-no-unknown false negatives for functions with namespace #2

Closed
wants to merge 1 commit into from

Commits on Nov 30, 2023

  1. Fix function-no-unknown false negatives for functions with namespace

    Since Stylelint 15.8.0, the built-in `function-no-unknown` rule has ignored SCSS functions with namespace.
    
    For example, the following code unexpectedly passes with Stylelint 15.8.0:
    
    ```scss
    a { color: color.unknown(#fff); }
    ```
    
    Notes:
    - This change keeps backward compatibility. This means not to change `peerDependencies.stylelint` in `package.json`.
    - This change may bring performance penalty to keep backward compatibility.
    - Run `npm i 'stylelint@^15.8.0' && npm t` to test this change with newer versions of Stylelint.
    
    See also:
    - https://github.com/stylelint/stylelint/releases/tag/15.8.0
    - stylelint/stylelint#6921
    ybiquitous committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    bae8092 View commit details
    Browse the repository at this point in the history