Last updated:
0 purchases
hyper lint
Hyper Lint #
Hyperlint is a powerful linting package for Flutter and Dart projects. It provides a comprehensive set of rules that can help you identify and fix potential errors, style issues, and performance problems.
Hyperlint is built on top of the Dart linter, but it adds a number of additional features and rules that are specifically designed for Flutter and Dart projects. For example, Hyperlint includes rules to detect common Flutter widget errors, such as using the wrong widget type or setting the wrong properties. It also includes rules to enforce the Flutter style guide, such as using the correct naming conventions and indentation.
Hyperlint is also highly customizable. You can enable or disable individual rules, or even create your own custom rules. This makes it easy to tailor Hyperlint to meet the specific needs of your project and team.
Installation 💻 #
❗ In order to start using Hyper Lint you must have the Dart SDK installed on your machine.
Install via dart pub add:
dart pub add hyper_lint
copied to clipboard
Installing #
Add dependencies to pubspec.yaml
Get the latest version in the 'Installing' tab
on pub.dev
dependencies:
hyper_lint: <latest-version>
copied to clipboard
Run pub get.
flutter pub get
copied to clipboard
Import package in the analysis_options.yaml
include: package:hyper_lint/analysis_options.yaml
copied to clipboard
Suppressing Lints #
There might some case where we have to suppres the linting error
File Level #
To surpress a specific lint rule of a specific file, use an ignore_for_file comment at the top of the file:
// ignore_for_file: public_member_api_docs
class Car {}
class Suv {}
copied to clipboard
Project Level #
To surpress a specific lint rule for an entire project, modify analysis_options.yaml:
include: package:hyper_lint/analysis_options.yaml
linter:
rules:
public_member_api_docs: false
copied to clipboard
Main Contributors #
Jemis Goti
Feedback #
If you have any feedback, please reach out to us at [email protected]
Thanks #
Thank you for using this package and keep supporting opensource community.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.