Skip to content

Commit

Permalink
+ example (#36)
Browse files Browse the repository at this point in the history
* + example

* publish_to: none

* docs
  • Loading branch information
pq committed May 13, 2021
1 parent 69dac5e commit f9670df
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions example/README.md
@@ -0,0 +1 @@
An example project that uses Dart recommended lints.
30 changes: 30 additions & 0 deletions 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
10 changes: 10 additions & 0 deletions 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

0 comments on commit f9670df

Please sign in to comment.