FLUTTER ECOSYSTEM

Iteo/linteo

iteo에서 사용하는 Flutter 및 Dart 린트 규칙

linteo 프로젝트 이미지
Stars
7
Forks
0
최근 푸시(UTC)
2026. 9. 14.
프로젝트 상태
활성
iteo GitHub avatar
GITHUB Organization

iteo ↗

언어Dart

이 저장소가 배포한 패키지

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

linteo


Provides set of Flutter and Dart linter rules used at iteo. By default, package enables all available lint rules (all_lint_rules.yaml) and disables some of them upon team agreement.

Install

  1. Depend on this package as a dev_dependency by running flutter pub add --dev linteo
  2. Create analysis_options.yaml file at the root of the package (alongside the pubspec.yaml file) and include: package:linteo/analysis_options.yaml from it.

Which version to use?

Dart Version Linteo Version
3.1 1.3.0
2.17 1.2.0
2.17 1.1.0
2.17 1.0.1
2.18 1.0.0
Example analysis_options.yaml file
include: package:linteo/analysis_options.yaml

linter:
  rules:
    # Adjust package to specific project needs
    # package_api_docs: true  # Uncomment to enable rule

Suppress lint

Your project may require special case. Lint rules can be suppressed at the line, file, or project level.

Line Level

Use an ignore: comment directly above the line

// ignore: public_member_api_docs
class A {}
File level

Use an ignore_for_file: comment at the top of the file


// ignore_for_file: public_member_api_docs

class A {}

class B {}
Project Level

Update root analysis_options.yaml according to your needs:

include: package:linteo/analysis_options.yaml
linter:
  rules:
    public_member_api_docs: true

Badge

Support the project using a badge in your repository

style:linteo