Skip to content

[Bug]: Ignore files in node_modules (which the Stylelint CLI does by default) #702

@gluxon

Description

@gluxon

How did you encounter this bug?

Style files in a node_modules folder are linted by the VS Code extension. They are ignored by the Stylelint CLI.

Link to Minimal Reproducible Example

https://github.com/gluxon/stylelint-node-modules-ignore-test

Code Snippet

No response

Stylelint Configuration

export default {
  rules: {
    "block-no-empty": true
  }
};

Extension Configuration

No configurations required to reproduce this.

Actual Behaviour

VS Code shows lint errors for files in node_modules.

Expected Behaviour

VS Code should ignore node_modules unless the Stylelint config un-ignores them.

Logs

No response

Stylelint Version

16.21.1

vscode-stylelint Version

1.5.3

Node.js Version

v24.4.0

Operating System

macOS 15.5

Windows Subsystem for Linux

No response

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions