Skip to content

[Bug]: Updates to Stylelint config files do not relint file #647

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

Open
tbradsha opened this issue Mar 25, 2025 · 0 comments
Open

[Bug]: Updates to Stylelint config files do not relint file #647

tbradsha opened this issue Mar 25, 2025 · 0 comments

Comments

@tbradsha
Copy link

  1. Make changes to the Stylelint config file (e.g. disable a failing rule).
  2. Notice that relinting does not occur on the file.

Restarting VS Code relints the file. I believe the problem lies with the watch list being outdated:

workspace.createFileSystemWatcher('**/.stylelintrc{,.js,.json,.yaml,.yml}'),
workspace.createFileSystemWatcher('**/{stylelint.config.js,.stylelintignore}'),

The recommended config file names are as follows:

  • stylelint.config.js
  • stylelint.config.mjs
  • stylelint.config.cjs

Alternative filenames include the following:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant