Skip to content

Commit 3c8e89d

Browse files
committed
Global ignore for redeclare
1 parent 93280b4 commit 3c8e89d

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

web_generator/analysis_options.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ analyzer:
88
strict-raw-types: true
99
errors:
1010
comment_references: ignore
11+
# TODO(srujzs): Remove once redeclare is no longer experimental.
12+
experimental_member_use: ignore
1113

1214
linter:
1315
rules:

web_generator/lib/src/interop_gen/transform.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@ extension type NodeMap<N extends Node>._(Map<String, N> decls)
133133
extension type TypeMap._(Map<String, Type> types) implements NodeMap<Type> {
134134
TypeMap([Map<String, Type>? types]) : types = types ?? <String, Type>{};
135135

136-
// TODO(srujzs): Remove once redeclare is no longer experimental.
137-
// ignore: experimental_member_use
138136
@redeclare
139137
void add(Type decl) => types[decl.id.toString()] = decl;
140138
}

web_generator/lib/src/js/typescript.types.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
// TODO(srujzs): Remove experimental_member_use once redeclare is not
6-
// experimental.
7-
// ignore_for_file: constant_identifier_names, experimental_member_use
5+
// ignore_for_file: constant_identifier_names
86

97
@JS('ts')
108
library;

0 commit comments

Comments
 (0)