mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 14:39:38 +00:00
[pkg:js] Enable pedantic lints
Change-Id: Ia03a68431d3e62f2b5db45d3c38fb99f5ab07ca6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151540 Auto-Submit: Kevin Moore <kevmoo@google.com> Reviewed-by: Nate Bosch <nbosch@google.com> Commit-Queue: Nate Bosch <nbosch@google.com>
This commit is contained in:
parent
168539d61d
commit
073cbcc5a4
|
@ -1,3 +1,47 @@
|
|||
include: package:pedantic/analysis_options.yaml
|
||||
|
||||
analyzer:
|
||||
strong-mode:
|
||||
implicit-casts: false
|
||||
enable-experiment:
|
||||
- non-nullable
|
||||
|
||||
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
|
||||
|
|
|
@ -5,3 +5,6 @@ homepage: https://github.com/dart-lang/sdk/tree/master/pkg/js
|
|||
|
||||
environment:
|
||||
sdk: '>=2.9.0-1 <3.0.0'
|
||||
|
||||
dev_dependencies:
|
||||
pedantic: ^1.9.0
|
||||
|
|
Loading…
Reference in a new issue