hooklint 0.1.4
hooklint: ^0.1.4 copied to clipboard
Format and analyze code using pre-commit.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate hooklintUse it
The package has the following executables:
$ hooklint
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add hooklintWith Flutter:
$ flutter pub add hooklintThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
hooklint: ^0.1.4Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:hooklint/constants/command.dart';
import 'package:hooklint/constants/shell.dart';
import 'package:hooklint/install.dart';
import 'package:hooklint/run.dart';
import 'package:hooklint/utils/pubspec_util.dart';