@gilt-tech/swig-lint

2.5.0 • Public • Published

swig-lint

Swig task that checks for possible issues in your code base.

Usage

Meant to be used via the Swig CLI, just run:

swig lint

You can also instruct the CSS linter to use a different engine (default is an ancient version of Lesshint), namely Stylelint, like so:

swig lint --use-stylelint

You can also instruct the linter to look at a specific source folder

swig lint --src /web/web-blah/target

In this case you shall provide the linter a .stylelintrc.yml file with the necessary Stylelint configuration.

By using Stylelint you can now also specify files to ignore (previously not possible), using the special .stylelintignore config file, which uses a .gitignore-like syntax.

TODO

  • Add more helpful information on the README (like list of JS/CSS rules) and how to override them.

Dependencies (12)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @gilt-tech/swig-lint

    Weekly Downloads

    1

    Version

    2.5.0

    License

    MIT

    Last publish

    Collaborators

    • gilt-tech