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 : https://stylelint.io/

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
stylelint-config-standard
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.