include: package:lints/recommended.yaml

analyzer:
  exclude:
    - build/**
    - .dart_tool/**
    - .fvm/**
    - pubspec.yaml
    - packages/**
    - lib/jellyfin/**
    - lib/**/**.g.dart
    - lib/**/**.freezed.dart
    - lib/**/**.mapped.dart
    - lib/l10n/**
  strong-mode:
    implicit-casts: false
    implicit-dynamic: false
  language:
    # strict-casts: false
    # strict-raw-types: true
  plugins:
    - custom_lint

linter:
  rules:
    cancel_subscriptions: true
    avoid_print: false # Uncomment to disable the `avoid_print` rule
    no_logic_in_create_state: true
    # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
    prefer_relative_imports: false
    avoid_relative_lib_imports: true
    eol_at_end_of_file: true
    prefer_final_fields: true
    prefer_const_constructors: true
    always_declare_return_types: true
    type_init_formals: true
    unnecessary_this: true
    sort_pub_dependencies: true
    use_key_in_widget_constructors: true
