Skip to content

Instantly share code, notes, and snippets.

@stopdaydreaming
Last active June 8, 2021 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stopdaydreaming/b1907b07ecb15939d654398189c3c50e to your computer and use it in GitHub Desktop.
Save stopdaydreaming/b1907b07ecb15939d654398189c3c50e to your computer and use it in GitHub Desktop.
Setup VSCode to automatically fix StyleLint issues

Edit your settings in settings. json

Open the Command Palette with CMD/CTRL + SHIFT + P .

From the Command Palette, The Open Settings (JSON) command will let you directly edit the settings JSON file.

Add this VS Code config in settings.json:

"css.validate": false,
"less.validate": false,
"scss.validate": false,

"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
	"source.fixAll.stylelint": true
},
"files.autoSaveDelay": 500,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment