autolesshint is a tool to automatically fix Lesshint >=v4.0.0 complaints.
Run the following command from the command line (add
-g to install globally):
npm install autolesshint
autolesshint from the command-line by passing one or more files/directories to recursively scan.
autolesshint src/less/ lib/style.less
||Specify the configuration file to use (will be merged with defaults).|
||A minimatch glob pattern or a file to exclude from being linted.|
See the Complete rule coverage milestone for upcoming coverage support.
These rules contain logic that require user input and can't be automatically fixed:
To build from scratch, install NodeJS and run the following commands:
npm install -g gulp npm install gulp
automutate manages the runtime of taking in lint complaints from
These are mapped to
Suggester classes in
src/suggesters by name.
automutate-tests manages development-time tests verifying actual file mutations.
Adding a suggester
- Add a
Suggesterclass with a linter's name.
my_rulewould be mapped to
src/suggesters/myRuleSuggester.tsthat would have to export a
MyRuleSuggesterclass that implements the
- Add test case(s) under
test/casesthat each have an
- Add the suggester to the list in
- Submit a PR referencing the issue corresponding to the lint rule.