mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-26 12:14:42 +01:00
Enforce non-whitespace formatting rules
This commit is contained in:
parent
80afdd88f8
commit
5d885e6905
@ -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"
|
||||
|
@ -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
|
||||
|
@ -26,7 +26,7 @@ all() {}
|
||||
format() {
|
||||
Pub.run('dart_style',
|
||||
script: 'format',
|
||||
arguments: ['--overwrite']
|
||||
arguments: ['--overwrite', '--fix']
|
||||
..addAll(existingSourceDirs.map((dir) => dir.path)));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user