Skip to content

Commit

Permalink
Add ignores for deprecated web libraries with a TODO
Browse files Browse the repository at this point in the history
Dart web libraries are now deprecated. This triggers a lint
which we fail on. We should migrate these to dart:js_interop
and package:web, but for now, ignore to make CI happy.
  • Loading branch information
srujzs committed Jan 7, 2025
1 parent e72f365 commit 3e82113
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dwds/debug_extension/web/chrome_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// TODO: https://github.com/dart-lang/webdev/issues/2508
// ignore: deprecated_member_use
import 'dart:html';

import 'package:js/js.dart';
Expand Down
2 changes: 2 additions & 0 deletions dwds/debug_extension/web/cider_connection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
library;

import 'dart:convert';
// TODO: https://github.com/dart-lang/webdev/issues/2508
// ignore: deprecated_member_use
import 'dart:js_util';

import 'package:js/js.dart';
Expand Down
2 changes: 2 additions & 0 deletions dwds/debug_extension/web/copier.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
@JS()
library;

// TODO: https://github.com/dart-lang/webdev/issues/2508
// ignore: deprecated_member_use
import 'dart:html';

import 'package:js/js.dart';
Expand Down
4 changes: 4 additions & 0 deletions dwds/debug_extension/web/debug_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
library;

import 'dart:convert';
// TODO: https://github.com/dart-lang/webdev/issues/2508
// ignore: deprecated_member_use
import 'dart:html';
// TODO: https://github.com/dart-lang/webdev/issues/2508
// ignore: deprecated_member_use
import 'dart:js';

import 'package:dwds/data/debug_info.dart';
Expand Down
4 changes: 4 additions & 0 deletions dwds/debug_extension/web/detector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
library;

import 'dart:convert';
// TODO: https://github.com/dart-lang/webdev/issues/2508
// ignore: deprecated_member_use
import 'dart:html';
// TODO: https://github.com/dart-lang/webdev/issues/2508
// ignore: deprecated_member_use
import 'dart:js_util';

import 'package:dwds/data/debug_info.dart';
Expand Down
2 changes: 2 additions & 0 deletions dwds/debug_extension/web/devtools.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
@JS()
library;

// TODO: https://github.com/dart-lang/webdev/issues/2508
// ignore: deprecated_member_use
import 'dart:html';

import 'package:dwds/data/debug_info.dart';
Expand Down
2 changes: 2 additions & 0 deletions dwds/debug_extension/web/messaging.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ library;

import 'dart:async';
import 'dart:convert';
// TODO: https://github.com/dart-lang/webdev/issues/2508
// ignore: deprecated_member_use
import 'dart:js_util';

import 'package:js/js.dart';
Expand Down
2 changes: 2 additions & 0 deletions dwds/debug_extension/web/panel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ library;

import 'dart:async';
import 'dart:convert';
// TODO: https://github.com/dart-lang/webdev/issues/2508
// ignore: deprecated_member_use
import 'dart:html';

import 'package:dwds/data/debug_info.dart';
Expand Down
2 changes: 2 additions & 0 deletions dwds/debug_extension/web/popup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ library;

import 'dart:async';
import 'dart:convert';
// TODO: https://github.com/dart-lang/webdev/issues/2508
// ignore: deprecated_member_use
import 'dart:html';

import 'package:dwds/data/debug_info.dart';
Expand Down
2 changes: 2 additions & 0 deletions dwds/debug_extension/web/storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ library;

import 'dart:async';
import 'dart:convert';
// TODO: https://github.com/dart-lang/webdev/issues/2508
// ignore: deprecated_member_use
import 'dart:js_util';

import 'package:js/js.dart';
Expand Down
2 changes: 2 additions & 0 deletions dwds/debug_extension/web/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
library;

import 'dart:async';
// TODO: https://github.com/dart-lang/webdev/issues/2508
// ignore: deprecated_member_use
import 'dart:js_util';

import 'package:js/js.dart';
Expand Down
5 changes: 5 additions & 0 deletions dwds/debug_extension/web/web_api.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// TODO: https://github.com/dart-lang/webdev/issues/2508
// ignore: deprecated_member_use
import 'dart:html';
// TODO: https://github.com/dart-lang/webdev/issues/2508
// ignore: deprecated_member_use
import 'dart:js_util' as js_util;

import 'package:js/js.dart';
Expand Down

0 comments on commit 3e82113

Please sign in to comment.