stylelint-plugin-mozilla.rst (766B)
1 ======================== 2 Mozilla Stylelint Plugin 3 ======================== 4 5 This is the documentation of Mozilla Stylelint Plugin. 6 7 Rules 8 ===== 9 10 The plugin implements the following rules: 11 12 .. toctree:: 13 :maxdepth: 1 14 :glob: 15 16 stylelint-plugin-mozilla/rules/* 17 18 Tests 19 ===== 20 21 The tests for stylelint-plugin-mozilla are written using 22 `stylelint-test-rule-node`_ as recommended by the `Stylelint docs`_. 23 24 .. _stylelint-test-rule-node: https://www.npmjs.com/package/stylelint-test-rule-node 25 .. _Stylelint docs: https://stylelint.io/developer-guide/plugins#testing 26 27 Running Tests 28 ------------- 29 30 The stylelint plugin has some self tests, these can be run via: 31 32 .. code-block:: shell 33 34 $ cd tools/lint/stylelint/stylelint-plugin-mozilla 35 $ npm ci 36 $ npm run test