update the dart create templates to use package:lints

Bug: https://github.com/dart-lang/sdk/issues/45940
Change-Id: I61c8d3e8be8922cfa6a874213349f84aa44baff4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/198620
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
This commit is contained in:
Devon Carew 2021-05-10 16:44:40 +00:00 committed by commit-bot@chromium.org
parent f5a1dd57a1
commit ac7c44e4a9
7 changed files with 27 additions and 12 deletions

View file

@ -19,7 +19,7 @@
* **BREAKING CHANGE** (https://github.com/dart-lang/sdk/issues/45115)
Most types exposed by this library can no longer be extended, implemented
or mixed-in. The affected types are `ByteBuffer`, `TypedData` and *all*
its subclasses, `Int32x4`, `Float32x4`, `Float64x2` and `Endian.
its subclasses, `Int32x4`, `Float32x4`, `Float64x2` and `Endian`.
#### `dart:web_sql`
@ -42,6 +42,12 @@
### Tools
#### Dart command line
- The `dart create` command has been updated to create projects that use the new
'core' set of lints from `package:lints`. See https://dart.dev/go/core-lints
for more information about these lints.
#### Linter
Updated the Linter to `1.4.0`, which includes:

View file

@ -12,15 +12,18 @@ build/
''';
final String analysisOptions = '''
# Defines a default set of lint rules enforced for projects at Google. For
# details and rationale, see
# https://github.com/dart-lang/pedantic#enabled-lints.
# This file configures the static analysis results for your project (errors,
# warnings, and lints).
include: package:pedantic/analysis_options.yaml
# The following line activates a set of core lints for Dart apps; this is the
# set that is used by pub.dev for scoring packages. For many projects, consider
# changing this to specify 'package:lints/recommended.yaml'; that's an
# additional set of lints designed to encourage good coding practices.
# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
include: package:lints/core.yaml
# Uncomment the following section to specify additional rules.
# Uncomment to specify additional rules.
# linter:
# rules:
# - camel_case_types
@ -28,6 +31,12 @@ include: package:pedantic/analysis_options.yaml
# analyzer:
# exclude:
# - path/to/excluded/files/**
# For more information about the core and recommended set of lints, see
# https://dart.dev/go/core-lints
# For additional information about configuring this file, see
# https://dart.dev/guides/language/analysis-options
''';
final String changelog = '''

View file

@ -41,7 +41,7 @@ environment:
# path: ^1.8.0
dev_dependencies:
pedantic: ^1.10.0
lints: ^1.0.0-0
test: ^1.16.0
''';

View file

@ -39,7 +39,7 @@ environment:
# path: ^1.8.0
dev_dependencies:
pedantic: ^1.10.0
lints: ^1.0.0-0
''';
final String _readme = '''

View file

@ -55,7 +55,7 @@ environment:
# path: ^1.8.0
dev_dependencies:
pedantic: ^1.10.0
lints: ^1.0.0-0
test: ^1.16.0
''';

View file

@ -45,7 +45,7 @@ dependencies:
dev_dependencies:
http: ^0.13.0
pedantic: ^1.10.0
lints: ^1.0.0-0
test_process: ^2.0.0
test: ^1.15.0
''';

View file

@ -39,7 +39,7 @@ environment:
dev_dependencies:
build_runner: ^1.10.0
build_web_compilers: ^2.11.0
pedantic: ^1.9.0
lints: ^1.0.0-0
''';
final String _readme = '''