hooklint 0.1.4 copy "hooklint: ^0.1.4" to clipboard
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 hooklint

Use 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 hooklint

With Flutter:

 $ flutter pub add hooklint

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  hooklint: ^0.1.4

Alternatively, 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';
2
likes
140
points
25
downloads

Publisher

verified publisheranandzhang.com

Weekly Downloads

Format and analyze code using pre-commit.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

path, yaml

More

Packages that depend on hooklint