0.1.1 • Published 5 years ago

precommit-ng-lint v0.1.1

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

precommit-ng-lint

precommit-ng-lint allows you to invoke ng lint on all staged files in your project, and only your staged files. It's intended to be used as precommit-hook.

Angular allows you to have different linter rules for each project, precommit-ng-lint takes care that the right linter-rules are applied for all files.

Usage

It can be used directly with husky or in combination with lint-staged.

Options

OptionDefaultEffect
--fix or --fix=true, --fix=falsefalseAdds the --fix parameter to ng lint
--angularConfig=<fileName>.jsonangular.jsonIf your angular.json-file has a different name. Depending on your setup, this might allow you usage for Angular -5 (with angular-cli.json). No guarantees given, mostly untested for older versions.

👷 Work in progress 👷

This is a work in progress. In it's current state, it should work under Angular 6+ on Linux, for the most part on Windows too. If you encounter any issues, please let me know.

Upcoming features

0.1.1

5 years ago

0.1.0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago