https://github.com/pro100andrey/pro_lints
Dart lint rules
https://github.com/pro100andrey/pro_lints
Last synced: 2 months ago
JSON representation
Dart lint rules
- Host: GitHub
- URL: https://github.com/pro100andrey/pro_lints
- Owner: pro100andrey
- License: mit
- Created: 2022-05-08T11:36:30.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-12-24T13:51:12.000Z (6 months ago)
- Last Synced: 2025-02-15T03:24:33.300Z (4 months ago)
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Dart lint rules
The Dart linter is a static analyzer for identifying possible problems in your
Dart source code. More than a hundred linter rules are available,
checking anything from potential typing issues, coding style, and formatting. This package - package:pro_lints - contains the lint settings recommended by me :).## Enabling the lints
For existing apps or packages, you can enable these lints via:
1. In a terminal, located at the root of your package, run this command:
```terminal
dart pub add --dev pro_lints
```2. Create a new `analysis_options.yaml` file, next to the pubspec, that
includes the lints package:```yaml
include: package:pro_lints/common.yaml
```## Customizing the predefined lint sets
For details on customizing static analysis above and beyond the predefined lint sets, see [customizing static analysis](https://dart.dev/guides/language/analysis-options).