Synchronization with Stylelint (CSS/SCSS/LESS)

Stylelint is a linter for CSS, SCSS and LESS code. You can use Stylelint in embedded mode in Themis.

Embedded analysis in Themis

To delegate to Themis the analysis of your CSS, SCSS and LESS code to Stylelint, you must first configure the embedded linters mode for your source. You must then add a sub-plugin for Stylelint.

Themis uses the default configuration of Stylelint :

  "extends": "stylelint-config-recommended"

In case you already have a configuration file on your source code repository, you can tell Themis to use this configuration. To do this, you must specify the combination of the following 2 parameters:

  • Use a configuration file on your repository (true / false): Specify true to use your configuration file.
  • Relative path of the configuration file on your depot: Enter here the relative path on your source code repository of the configuration file. Example: src/.stylelint.rc.

If you enable the use of your own configuration file, the parameter "Configuration file" is not taken into account in the analysis. It also does not reflect the contents of the configuration file on your source code repository.

Information and installed versions

Web site :

Extensions of analyzed files : .css, .sass, .scss, .less

Version of Themis Version of Stylelint Installed plugins
2.6.0 9.9.0 stylelint-config-recommended
Was this article helpful?
0 out of 0 found this helpful



Please sign in to leave a comment.