mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
Move pkg/js to package:lints.
Change-Id: Idf85d4f5ece3725dbd806b064ff8b34b91181205 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240918 Reviewed-by: Srujan Gaddam <srujzs@google.com> Commit-Queue: Devon Carew <devoncarew@google.com>
This commit is contained in:
parent
c687db6ff5
commit
3d5e62ed2e
|
@ -1,4 +1,4 @@
|
|||
include: package:pedantic/analysis_options.yaml
|
||||
include: package:lints/recommended.yaml
|
||||
|
||||
analyzer:
|
||||
language:
|
||||
|
@ -6,40 +6,5 @@ analyzer:
|
|||
|
||||
linter:
|
||||
rules:
|
||||
- avoid_empty_else
|
||||
- avoid_init_to_null
|
||||
- avoid_null_checks_in_equality_operators
|
||||
- avoid_unused_constructor_parameters
|
||||
- await_only_futures
|
||||
- camel_case_types
|
||||
- cancel_subscriptions
|
||||
- constant_identifier_names
|
||||
- control_flow_in_finally
|
||||
- directives_ordering
|
||||
- empty_catches
|
||||
- empty_constructor_bodies
|
||||
- empty_statements
|
||||
- hash_and_equals
|
||||
- implementation_imports
|
||||
- iterable_contains_unrelated_type
|
||||
- library_names
|
||||
- library_prefixes
|
||||
- list_remove_unrelated_type
|
||||
- non_constant_identifier_names
|
||||
- overridden_fields
|
||||
- package_api_docs
|
||||
- package_names
|
||||
- package_prefixed_library_names
|
||||
- prefer_equal_for_default_values
|
||||
- prefer_final_fields
|
||||
- prefer_generic_function_type_aliases
|
||||
- prefer_is_not_empty
|
||||
- slash_for_doc_comments
|
||||
- test_types_in_equals
|
||||
- throw_in_finally
|
||||
- type_init_formals
|
||||
- unnecessary_brace_in_string_interps
|
||||
- unnecessary_const
|
||||
- unnecessary_new
|
||||
- unrelated_type_equality_checks
|
||||
- valid_regexps
|
||||
# Ignore this lint (triggered by the annotation definitions in lib/js.dart).
|
||||
library_private_types_in_public_api: false
|
||||
|
|
|
@ -7,4 +7,4 @@ environment:
|
|||
sdk: ">=2.16.0-100.0.dev <3.0.0"
|
||||
|
||||
dev_dependencies:
|
||||
pedantic: ^1.9.0
|
||||
lints: any
|
||||
|
|
Loading…
Reference in a new issue