sort_pub_dependencies
依字母順序排序 pub 相依性。
此規則從 Dart 2.1 開始提供。
詳細資訊
#請務必在 pubspec.yaml
中依字母順序 (A 到 Z) 排序 pub 相依性。
排序 pub 相依性清單可讓維護更容易。
用法
#若要啟用 sort_pub_dependencies
規則,請在您的 analysis_options.yaml
檔案的 linter > rules 下方加入 sort_pub_dependencies
analysis_options.yaml
yaml
linter:
rules:
- sort_pub_dependencies
除非另有說明,否則本網站上的文件反映的是 Dart 3.6.0。頁面最後更新於 2024-07-03。 檢視原始碼 或 回報問題。