Add ignore all lints comment to generated code
diff --git a/lib/src/builder.dart b/lib/src/builder.dart
index 83e8dfa..6b2cbea 100644
--- a/lib/src/builder.dart
+++ b/lib/src/builder.dart
@@ -81,9 +81,10 @@
final mockLibrary = Library((b) {
// These comments are added after import directives; leading newlines
- // are necessary.
- b.body.add(
- Code('\n\n// ignore_for_file: avoid_redundant_argument_values\n'));
+ // are necessary. Individual rules are still ignored to preserve backwards
+ // compatibility with older versions of Dart.
+ b.body.add(Code('\n\n// // ignore_for_file: type=lint\n'));
+ b.body.add(Code('// ignore_for_file: avoid_redundant_argument_values\n'));
// We might generate a setter without a corresponding getter.
b.body.add(Code('// ignore_for_file: avoid_setters_without_getters\n'));
// We don't properly prefix imported class names in doc comments.