stylelint / vscode-stylelint

The official Visual Studio Code extension for Stylelint
https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint
MIT License
315 stars 29 forks source link

[Bug]: (node:25356) [stylelint:002] DeprecationWarning: The CommonJS Node.js API is deprecated. See https://stylelint.io/migration-guide/to-16 #578

Open JusticHentai opened 1 month ago

JusticHentai commented 1 month ago

How did you encounter this bug?

use stylelint@16.8.1

Link to Minimal Reproducible Example

https://github.com/JusticHentai/lint

Code Snippet

No response

Stylelint Configuration

No response

Extension Configuration

No response

Actual Behaviour

[Error - 16:44:43] (node:25356) [stylelint:002] DeprecationWarning: The CommonJS Node.js API is deprecated. See https://stylelint.io/migration-guide/to-16 [Error - 16:44:43] (node:25356) [stylelint:003] DeprecationWarning: output is deprecated. Use report or code instead.

Expected Behaviour

support stylelint esm

Logs

No response

Stylelint Version

16.8.1

vscode-stylelint Version

1.4.0

Node.js Version

18

Operating System

window11

Windows Subsystem for Linux

No response

Code of Conduct

opeologist commented 3 weeks ago

also seeing this in VS Code Stylelint's output and is preventing the extension from providing feedback in my stylesheets

Stanzilla commented 3 days ago

See https://github.com/stylelint/vscode-stylelint/pull/540

Sadly, the official stylelint extension is not compatible with the latest version of stylelint.

gian1200 commented 1 day ago

@Stanzilla the issue you referenced is this one. Was it a typo?

Stanzilla commented 1 day ago

yep, https://github.com/stylelint/vscode-stylelint/pull/540