stylelint / vscode-stylelint

The official Visual Studio Code extension for Stylelint

Home Page:https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: function-no-unknown property not working

rehberbey opened this issue · comments

How did you encounter this bug?

Stylelint showed me an error when I opened the SCSS/CSS file and pressed any key.

Link to Minimal Reproducible Example

Code Snippet

No response

Stylelint Configuration

module.exports = {
    rules: {
        "function-no-unknown": null,
        "scss/function-no-unknown": true,
    },
};

Extension Configuration

No response

Actual Behaviour

This is not working properly. When I press any key and activate Stylelint in my SCSS/CSS file, it shows me an error similar to this:
..."message":"ENOENT: no such file or directory, open 'somewhere\index.json'"...

Expected Behaviour

I expect it to work as expected.

Logs

No response

Stylelint Version

14.11.0

vscode-stylelint Version

v1.2.3

Node.js Version

v16.14.2

Operating System

Windows 11 Pro 21H2

Windows Subsystem for Linux

No response

Code of Conduct

  • I agree to follow vscode-stylelint's Code of Conduct

A minimal reproduction is required. See Why Reproductions are Required.

I found it myself while searching for the cause of the problem. The folder name must not contain the # character.

#foo/ <---------------- The # character causes an error.
├─ node_modules/
├─ src/
│  ├─ public/
│  │  ├─ css/
│  │  │  ├─ style.scss
├─ .gitignore
├─ package.json
├─ README.md