From 8802c69337c8e7d8d46eddb8668b57ca5daa8942 Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Tue, 1 Aug 2023 18:13:14 -0700 Subject: [PATCH] Add ignores to work around dart-lang/linter#4381 (#2053) --- lib/src/ast/sass/expression/binary_operation.dart | 3 +++ pubspec.yaml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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