analysis-optionslisted
Install: claude install-skill virajp/ai-plugins
# 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