From f9670df2a66e0ec12eb51554e70c1cbf56c8f5d0 Mon Sep 17 00:00:00 2001 From: Phil Quitslund Date: Thu, 13 May 2021 11:12:21 -0700 Subject: [PATCH] + example (#36) * + example * publish_to: none * docs --- example/README.md | 1 + example/analysis_options.yaml | 30 ++++++++++++++++++++++++++++++ example/pubspec.yaml | 10 ++++++++++ 3 files changed, 41 insertions(+) create mode 100644 example/README.md create mode 100644 example/analysis_options.yaml create mode 100644 example/pubspec.yaml diff --git a/example/README.md b/example/README.md new file mode 100644 index 0000000..63d13e1 --- /dev/null +++ b/example/README.md @@ -0,0 +1 @@ +An example project that uses Dart recommended lints. diff --git a/example/analysis_options.yaml b/example/analysis_options.yaml new file mode 100644 index 0000000..dee8927 --- /dev/null +++ b/example/analysis_options.yaml @@ -0,0 +1,30 @@ +# This file configures the static analysis results for your project (errors, +# warnings, and lints). +# +# This enables the 'recommended' set of lints from `package:lints`. +# This set helps identify many issues that may lead to problems when running +# or consuming Dart code, and enforces writing Dart using a single, idiomatic +# style and format. +# +# If you want a smaller set of lints you can change this to specify +# 'package:lints/core.yaml'. These are just the most critical lints +# (the recommended set includes the core lints). +# The core lints are also what is used by pub.dev for scoring packages. + +include: package:lints/recommended.yaml + +# Uncomment the following section to specify additional rules. + +# linter: +# rules: +# - camel_case_types + +# analyzer: +# exclude: +# - path/to/excluded/files/** + +# For more information about the core and recommended set of lints, see +# https://dart.dev/go/core-lints + +# For additional information about configuring this file, see +# https://dart.dev/guides/language/analysis-options diff --git a/example/pubspec.yaml b/example/pubspec.yaml new file mode 100644 index 0000000..71ddba9 --- /dev/null +++ b/example/pubspec.yaml @@ -0,0 +1,10 @@ +name: example +description: An example project that uses Dart recommended lints. +version: 0.1.0 +publish_to: none + +environment: + sdk: '>=2.12.0 <3.0.0' + +dev_dependencies: + lints: ^1.0.0