diff --git a/docs/composer/plugin/drupal-dev-environment/index.md b/docs/composer/plugin/drupal-dev-environment/index.md index 5fea776709a33c01396869e7aa14d87877bccf26..a0ac6a21eb5921e10595454bb52d0b1a2e147f95 100644 --- a/docs/composer/plugin/drupal-dev-environment/index.md +++ b/docs/composer/plugin/drupal-dev-environment/index.md @@ -20,5 +20,5 @@ It provides a massive amount of testing tools, which can be executed out of the - [PHP LOC](../../../dev_tools/test.md#php-loc) - [PHP Mess Detection](../../../dev_tools/test.md#php-mess-detection) - [PHP Metrics](../../../dev_tools/test.md#php-metrics) -- [PHP Stylelint](../../../dev_tools/test.md#php-code-sniffer) -- [Eslint](../../../dev_tools/test.md#php-code-sniffer) +- [Stylelint](../../../dev_tools/test.md#stylelint) +- [Eslint](../../../dev_tools/test.md#es-lint) diff --git a/docs/dev_tools/test.md b/docs/dev_tools/test.md index 2e387e3566cc4f0b78f6c2bbfddd1bda15912108..3008d3ce5a3223e8d40cfcda20b784e9587b70f2 100644 --- a/docs/dev_tools/test.md +++ b/docs/dev_tools/test.md @@ -46,10 +46,10 @@ We have several tools to perform static code analysis. - [PHP PHPStan](#php-stan) - [PHP Lint](#php-lint) - [PHP LOC](#php-loc) -- [PHP Mess Detection](../../../dev_tools/test.md#php-mess-detection) +- [PHP Mess Detection](#php-mess-detection) - [PHP Metrics](#php-metrics) -- [PHP Stylelint](../../../dev_tools/test.md#php-code-sniffer) -- [Eslint](../../../dev_tools/test.md#php-code-sniffer) +- [Stylelint](#stylelint) +- [Eslint](#es-lint) ### PHP Code Sniffer @@ -205,6 +205,24 @@ If you want to analyse a custom module, just do the following: a test phpmetricsmodule ../custom/<custom_module> ``` +### Stylelint + +With `Stylelint` you can test and analyse `css` file in your module. + +You first have to install and set up the toll with the following command: + +```style +a test stylelintprepare +``` + +Now all you need is installed and set up. Execute the following command to run the test: + +```style +a test stylelintmodule <contrib_module> +``` + +### ES Lint + ## Unit/Kernel/Functional Testing To execute the tests, you can use a single command: