diff --git a/lib/src/ast/sass/expression/binary_operation.dart b/lib/src/ast/sass/expression/binary_operation.dart index 4e87fe8de..dfaf87d16 100644 --- a/lib/src/ast/sass/expression/binary_operation.dart +++ b/lib/src/ast/sass/expression/binary_operation.dart @@ -82,7 +82,10 @@ final class BinaryOperationExpression implements Expression { var right = this.right; // Hack to make analysis work. var rightNeedsParens = switch (right) { BinaryOperationExpression(:var operator) => + // dart-lang/linter#4381 + // ignore: unnecessary_this operator.precedence <= this.operator.precedence && + // ignore: unnecessary_this !(operator == this.operator && operator.isAssociative), ListExpression(hasBrackets: false, contents: [_, _, ...]) => true, _ => false diff --git a/pubspec.yaml b/pubspec.yaml index 22c0f9e93..24067ed72 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ dependencies: charcode: ^1.2.0 cli_repl: ^0.2.1 collection: ^1.16.0 - http: ^0.13.3 + http: ">=0.13.3 <1.0.0" js: ^0.6.3 meta: ^1.3.0 node_interop: ^2.1.0 @@ -36,7 +36,7 @@ dependencies: watcher: ^1.0.0 dev_dependencies: - analyzer: ^5.13.0 + analyzer: ">=5.13.0 <7.0.0" archive: ^3.1.2 cli_pkg: ^2.4.4 crypto: ^3.0.0