Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stylus linter (stylint) for vscode

Repository Stylint indicates that linter works in:

  • Atom
  • Sublime Text
  • WebStorm / PhpStorm / IntelliJ IDEA
  • Visual Studio Code

In Atom it works perfectly. From CLI too.

Link from repository to vscode extension: Stylint. Link from marketplace to github repository - 404. Extension doesn't provide any description or commands (most likely it's removed or broken).

How do I lint stylus?

like image 749
Alex Avatar asked Jul 08 '17 05:07

Alex


People also ask

Does VS Code have a linter?

To perform linting, open the Command Palette (Ctrl+Shift+P), filter on "linting", and select Python: Run Linting. Linting will run automatically when you save a file.

How do I run Stylelint on VS Code?

If you're getting started with stylelint for the first time, there are two key steps to enable it in Visual Studio Code: turn off Visual Studio Code's built-in CSS linter and turn on the stylelint extension. create a stylelint configuration object and turn on some rules.

How do I enable lint errors in Visual Studio Code?

If you have the ESLint extension installed you can use CTRL+SHIFT+P to open the Command Palette. Then search for ESLint: Fix all auto-fixable Problems and press ENTER (or RETURN ). You are free from counting indentation and checking for quotation marks and semicolons!


1 Answers

As suggested by Alex in the comments I add my comment here as answer:
There exists a new Stylint Extension for VS Code you can use instead for linting stylus files in VS Code.

like image 187
HaaLeo Avatar answered Sep 28 '22 07:09

HaaLeo