Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add linter settings and effective_dart. #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
include: package:effective_dart/analysis_options.yaml
analyzer:
exclude:
- "**/generated_plugin_registrant.dart"
- "**/build/**"
- "**/generated_*.dart"
- "**/*.g.dart"
- "**/*.freezed.dart"
- "**/*.gr.dart"
- "**/l10n*.dart"
- "**/*.gen.dart"

linter:
rules:
public_member_api_docs: false
one_member_abstracts: false
prefer_const_constructors: true
# IDE works bad with relative import
# See: https://github.com/dart-lang/sdk/issues/32916
prefer_relative_imports: false
always_use_package_imports: true
21 changes: 21 additions & 0 deletions example/blue/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
include: package:effective_dart/analysis_options.yaml
analyzer:
exclude:
- "**/generated_plugin_registrant.dart"
- "**/build/**"
- "**/generated_*.dart"
- "**/*.g.dart"
- "**/*.freezed.dart"
- "**/*.gr.dart"
- "**/l10n*.dart"
- "**/*.gen.dart"

linter:
rules:
public_member_api_docs: false
one_member_abstracts: false
prefer_const_constructors: true
# IDE works bad with relative import
# See: https://github.com/dart-lang/sdk/issues/32916
prefer_relative_imports: false
always_use_package_imports: true
Loading