From 5315533e81c25af91639c25d2d28839efa1bc55b Mon Sep 17 00:00:00 2001 From: brownglasses Date: Tue, 2 Jan 2024 16:58:15 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=A6=B0=ED=8A=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 일단 자주 사용하는 lint 를 추가해보았습니다. 후에 필요하면 또 추가하면 될 것 같습니다 resolve: #2 --- front/analysis_options.yaml | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/front/analysis_options.yaml b/front/analysis_options.yaml index 61b6c4d..20f5042 100644 --- a/front/analysis_options.yaml +++ b/front/analysis_options.yaml @@ -22,8 +22,30 @@ linter: # `// ignore_for_file: name_of_lint` syntax on the line or in the file # producing the lint. rules: - # avoid_print: false # Uncomment to disable the `avoid_print` rule - # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule - + - prefer_const_constructors + - always_declare_return_types + - always_require_non_null_named_parameters + - avoid_types_on_closure_parameters + - avoid_annotating_with_dynamic + - avoid_escaping_inner_quotes + - avoid_function_literals_in_foreach_calls + - avoid_private_typedef_functions + - combinators_ordering + - curly_braces_in_flow_control_structures + - omit_local_variable_types + - annotate_overrides + - sort_constructors_first + - unawaited_futures + - directives_ordering + - unnecessary_final + - unnecessary_parenthesis + - conditional_uri_does_not_exist + - prefer_single_quotes + - await_only_futures + - always_use_package_imports + - avoid_empty_else + - comment_references + - prefer_void_to_null + - use_key_in_widget_constructors # Additional information about this file can be found at # https://dart.dev/guides/language/analysis-options