Skip to main content

dart_lint_staged 1.0.2 copy "dart_lint_staged: ^1.0.2" to clipboard
dart_lint_staged: ^1.0.2 copied to clipboard

Run linters on git staged files for your Flutter and Dart projects. Improved fork of lint_staged with JS lint-staged-style batched commands.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate dart_lint_staged

Use it

The package has the following executables:

$ dart_lint_staged

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add dart_lint_staged

With Flutter:

 $ flutter pub add dart_lint_staged

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

dependencies:
  dart_lint_staged: ^1.0.2

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:dart_lint_staged/dart_lint_staged.dart';
0
likes
160
points
170
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Run linters on git staged files for your Flutter and Dart projects. Improved fork of lint_staged with JS lint-staged-style batched commands.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

ansi, ansi_escapes, args, glob, path, verbose, yaml

More

Packages that depend on dart_lint_staged