Search code examples
stylelint

Programmatic/dynamic way to get all rules


Is there any way to access all existing rules of stylelint in a programatic way? For example some jsons I can parse or a method I can invoke?

For instance the method through which the documentation files are created, if they are made automatically?


Solution

  • Is there any way to access all existing rules of stylelint in a programatic way?

    Yes, all of the built-in rule functions are available as part of the API at stylelint.rules.

    For instance the method through which the documentation files are created, if they are made automatically?

    The list of rules within the documentation is not automatically made. It is manually edited.