analysis-options

Solid

Opinionated analysis_options.yaml for Flutter — extends flutter_lints with an explicit strict linter rule set, the formatter block (page_width 120, automate trailing commas), analyzer error severities, and generated-code excludes. The concrete backing of the dart skill's style rules; a clean `flutter analyze` is the merge gate. Auto-applies when editing analysis_options.yaml.

Code & Development 1 stars 0 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 78/100

Stars 20%
10
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Analyzer & Lint Configuration `analysis_options.yaml` at the package root is the **machine-enforced** form of the **dart** skill's style rules: a clean `flutter analyze` is the merge gate. Start from `flutter_lints`, then turn on an explicit, curated rule set — keep the list spelled out (not a vague "all lints") so every rule is a deliberate choice. ## Structure ```yaml include: package:flutter_lints/flutter.yaml # Reference: https://dart.dev/tools/linter-rules linter: rules: # Style - prefer_single_quotes - always_use_package_imports - eol_at_end_of_file - require_trailing_commas - unnecessary_brace_in_string_interps - prefer_interpolation_to_compose_strings # Type safety & explicitness - always_declare_return_types - type_annotate_public_apis - specify_nonobvious_local_variable_types - prefer_typing_uninitialized_variables - avoid_bool_literals_in_conditional_expressions - unrelated_type_equality_checks # const / immutability - prefer_const_constructors - prefer_const_constructors_in_immutables - prefer_const_declarations - prefer_const_literals_to_create_immutables - prefer_final_fields - prefer_final_locals - prefer_final_in_for_each - prefer_final_parameters # Structure - sort_constructors_first - sort_unnamed_constructors_first - sort_child_properties_last - cascade_invocations - prefer_expression_function_bodies - prefer_mixin - use_enums ...

Details

Author
virajp
Repository
virajp/ai-plugins
Created
2 months ago
Last Updated
yesterday
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category