目錄

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