diff --git a/pkg/js_shared/analysis_options.yaml b/pkg/js_shared/analysis_options.yaml new file mode 100644 index 00000000000..c36c2c5d39f --- /dev/null +++ b/pkg/js_shared/analysis_options.yaml @@ -0,0 +1 @@ +include: package:lints/core.yaml diff --git a/pkg/js_shared/lib/synced/recipe_syntax.dart b/pkg/js_shared/lib/synced/recipe_syntax.dart index b24e7c216ed..51b8358ab87 100644 --- a/pkg/js_shared/lib/synced/recipe_syntax.dart +++ b/pkg/js_shared/lib/synced/recipe_syntax.dart @@ -131,7 +131,9 @@ abstract class Recipe { static const int _at = 0x40; static const String _atString = '@'; + // ignore: unused_field static const int _uppercaseA = 0x41; + // ignore: unused_field static const int _uppercaseZ = 0x5A; static const int _leftBracket = 0x5B; @@ -148,6 +150,7 @@ abstract class Recipe { static const String _backtickString = '`'; static const int _lowercaseA = 0x61; + // ignore: unused_field static const int _lowercaseZ = 0x7A; static const int _leftBrace = 0x7B; diff --git a/pkg/js_shared/pubspec.yaml b/pkg/js_shared/pubspec.yaml index 3503f2539b2..f2cad2ee992 100644 --- a/pkg/js_shared/pubspec.yaml +++ b/pkg/js_shared/pubspec.yaml @@ -9,3 +9,4 @@ environment: dev_dependencies: _fe_analyzer_shared: any expect: any + lints: any diff --git a/sdk/lib/_internal/js_shared/lib/synced/recipe_syntax.dart b/sdk/lib/_internal/js_shared/lib/synced/recipe_syntax.dart index b24e7c216ed..51b8358ab87 100644 --- a/sdk/lib/_internal/js_shared/lib/synced/recipe_syntax.dart +++ b/sdk/lib/_internal/js_shared/lib/synced/recipe_syntax.dart @@ -131,7 +131,9 @@ abstract class Recipe { static const int _at = 0x40; static const String _atString = '@'; + // ignore: unused_field static const int _uppercaseA = 0x41; + // ignore: unused_field static const int _uppercaseZ = 0x5A; static const int _leftBracket = 0x5B; @@ -148,6 +150,7 @@ abstract class Recipe { static const String _backtickString = '`'; static const int _lowercaseA = 0x61; + // ignore: unused_field static const int _lowercaseZ = 0x7A; static const int _leftBrace = 0x7B;