diff --git a/pubspec.yaml b/pubspec.yaml index 0e011578..996bd07b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -29,9 +29,9 @@ dependencies: dev_dependencies: archive: ">=1.0.0 <3.0.0" - analyzer: ">=0.30.0 <0.33.0" + analyzer: ">=0.30.0 <0.34.0" crypto: ">=0.9.2 <3.0.0" - dart_style: "^1.0.0" + dart_style: "^1.2.0" grinder: "^0.8.0" http: "^0.11.0" js: "^0.6.0" diff --git a/tool/assert-formatted.sh b/tool/assert-formatted.sh index 4704f675..fe3c4468 100755 --- a/tool/assert-formatted.sh +++ b/tool/assert-formatted.sh @@ -3,7 +3,7 @@ # license that can be found in the LICENSE file or at # https://opensource.org/licenses/MIT. -unformatted=`pub run dart_style:format -n bin/ lib/ tool/ test/` +unformatted=`pub run dart_style:format --fix -n bin/ lib/ tool/ test/` if [[ -z "$unformatted" ]]; then exit 0 else diff --git a/tool/grind.dart b/tool/grind.dart index 2b28f842..3c01d80f 100644 --- a/tool/grind.dart +++ b/tool/grind.dart @@ -26,7 +26,7 @@ all() {} format() { Pub.run('dart_style', script: 'format', - arguments: ['--overwrite'] + arguments: ['--overwrite', '--fix'] ..addAll(existingSourceDirs.map((dir) => dir.path))); }