iTranslated by AI
The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🎯
Dart Lint Rules Part 1: file_names and sort_constructors_first
Dart Lint Rules
They are summarized here:
- Linter for Dart
file_names
- https://dart-lang.github.io/linter/lints/file_names.html
- A rule stating that all Dart file names and directory names should be lowercase with underscores (
_).
sort_constructors_first
- https://dart-lang.github.io/linter/lints/sort_constructors_first.html
- A rule stating that constructors should be written before any other member declarations.
I'm grateful for the Linter precisely because I've just started
- It's wonderful to be able to correct coding styles that don't follow Dart rules before they become a habit.
- The package
pedantic_monois quite good.- pedantic_mono | pub.dev
- Recommendation for strengthening static analysis in Dart/Flutter | mono | Medium
Discussion