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

Merge package:lints #578

Merged
merged 91 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
92e021c
Create LICENSE
mit-mit Apr 26, 2021
cd1348c
simple package validation (dart-lang/lints#3)
pq Apr 26, 2021
7c619d0
Add initial files (dart-lang/lints#1)
mit-mit Apr 27, 2021
a9ab173
add build badge (dart-lang/lints#6)
pq Apr 27, 2021
ebead69
Add pub badge to readme (dart-lang/lints#7)
mit-mit Apr 27, 2021
2917260
add initial rulesets (dart-lang/lints#4)
pq Apr 27, 2021
b1ec4f0
move build badge (dart-lang/lints#8)
pq Apr 27, 2021
76ddfb4
rename (dart-lang/lints#11)
pq May 3, 2021
9598133
Update README.md (dart-lang/lints#13)
mit-mit May 5, 2021
9ce04cf
bump to dev version (dart-lang/lints#14)
pq May 5, 2021
735b895
Update README.md (dart-lang/lints#18)
mit-mit May 11, 2021
fa62baa
Prep for publishing (dart-lang/lints#22)
mit-mit May 12, 2021
1d31156
add instruction to call `pub get` (dart-lang/lints#21)
pq May 12, 2021
133e80e
add pubspec entries tagged missing by pana (dart-lang/lints#31)
pq May 12, 2021
2113ad3
Update README.md (dart-lang/lints#33)
mit-mit May 12, 2021
a24bdb2
+ 1.0.1 (dart-lang/lints#34)
pq May 12, 2021
4fee86b
Update README.md (dart-lang/lints#27)
devoncarew May 13, 2021
d33a960
+ example (dart-lang/lints#36)
pq May 13, 2021
b836ad5
add feedback notes (dart-lang/lints#43)
pq May 21, 2021
b165f7f
Add notes regarding migrating from pedantic (dart-lang/lints#41)
srawlins Jun 7, 2021
1c8b030
Tweak the README a bit and add a section on evolution process. (dart-…
munificent Jul 30, 2021
e93106e
+ issue templates (dart-lang/lints#49)
pq Aug 19, 2021
9619bfe
Update README.md (dart-lang/lints#52)
pq Sep 16, 2021
bd10aba
Mention `dart:async` `unawaited` (dart-lang/lints#53)
davidmorgan Sep 28, 2021
ec576f0
Update validate.yml
kevmoo Oct 12, 2021
4bc3e26
Add lints for v2.0 (dart-lang/lints#72)
goderbauer Mar 17, 2022
69eb537
update lint files docs (dart-lang/lints#88)
devoncarew Oct 20, 2022
ae71463
Bump actions/checkout from 3.0.2 to 3.1.0 (dart-lang/lints#89)
dependabot[bot] Oct 20, 2022
6ddd48b
Bump actions/checkout from 3.1.0 to 3.2.0 (dart-lang/lints#96)
dependabot[bot] Jan 1, 2023
5e681a4
Bump actions/checkout from 3.2.0 to 3.3.0 (dart-lang/lints#98)
dependabot[bot] Feb 1, 2023
9e6ce6c
Update README.md (dart-lang/lints#108)
mit-mit Mar 23, 2023
43d0e5a
Fix 'recommended' spelling in README (dart-lang/lints#109)
parlough Mar 25, 2023
5d8ad24
Bump actions/checkout from 3.3.0 to 3.5.0 (dart-lang/lints#110)
dependabot[bot] Apr 3, 2023
0e849aa
Update lint-propoposal.md (dart-lang/lints#115)
devoncarew Apr 26, 2023
21eddf7
2.1.0 (dart-lang/lints#107)
pq Apr 26, 2023
ace519b
Bump actions/checkout from 3.5.0 to 3.5.2 (dart-lang/lints#116)
dependabot[bot] May 1, 2023
b4910bd
blast_repo fixes (dart-lang/lints#119)
devoncarew May 15, 2023
4234bca
blast_repo fixes (dart-lang/lints#120)
devoncarew May 15, 2023
9f0668b
Update example for latest lints version (dart-lang/lints#123)
parlough May 24, 2023
f1765d7
Remove pedantic from README (dart-lang/lints#124)
parlough May 26, 2023
c445e0b
Add topics to the pubspec file (dart-lang/lints#122)
parlough May 30, 2023
9202d6b
mv analysis_options file (dart-lang/lints#129)
devoncarew Jun 2, 2023
b8de47a
update the readme to clarify the package's goals (dart-lang/lints#130)
devoncarew Jun 2, 2023
e59a008
add 'has quick-fix' checkboxes to the package's readme (dart-lang/lin…
devoncarew Jun 6, 2023
1a05d9e
Link to 'dart fix' docs in table header (dart-lang/lints#132)
parlough Jun 6, 2023
48b5006
update core and recommended from the recent review (dart-lang/lints#136)
devoncarew Jun 20, 2023
87c3595
Fix typo in 3.0.0-wip changelog entry (dart-lang/lints#137)
parlough Jun 28, 2023
b23d145
Bump actions/checkout from 3.5.2 to 3.5.3 (dart-lang/lints#138)
dependabot[bot] Jul 1, 2023
f7c120f
Update tooling to use new `rules.json` location (dart-lang/lints#140)
parlough Jul 21, 2023
7efe3ac
Cleanup docs and links (dart-lang/lints#142)
parlough Aug 11, 2023
cc48f6f
Bump actions/checkout from 3.5.3 to 3.6.0 (dart-lang/lints#144)
dependabot[bot] Sep 1, 2023
4314795
move the list of lint rules from the readme to a separate rules.md fi…
devoncarew Sep 6, 2023
e8ce542
fix a dangling table link (dart-lang/lints#146)
devoncarew Sep 6, 2023
dd94f2c
add several rules to core and recommended (dart-lang/lints#150)
devoncarew Sep 20, 2023
a7c2728
rev to 3.0.0-beta in preparation for publishing (dart-lang/lints#153)
devoncarew Sep 26, 2023
f4be736
remove no_wildcard_variable_uses; improve testing (dart-lang/lints#156)
devoncarew Sep 28, 2023
f2ff9d4
add dangling_library_doc_comments, remove prefer_void_to_null (dart-l…
devoncarew Sep 28, 2023
8cec1cd
Bump dart-lang/setup-dart from 1.5.0 to 1.5.1 (dart-lang/lints#158)
dependabot[bot] Oct 1, 2023
d4ea622
Bump actions/checkout from 3.6.0 to 4.1.0 (dart-lang/lints#159)
dependabot[bot] Oct 3, 2023
4b19260
rev to 3.0.0; prep to publish (dart-lang/lints#160)
devoncarew Oct 17, 2023
3b84d31
Remove mention of no_wildcard_variable_uses from changelog (dart-lang…
parlough Oct 23, 2023
4ae44a7
add no_wildcard_variable_uses; rev to a new major version (dart-lang/…
devoncarew Oct 23, 2023
ea7eaf5
Update README.md to use new syntax for adding dev dependencies (dart-…
goderbauer Oct 30, 2023
68d0df8
Bump actions/checkout from 4.1.0 to 4.1.1 (dart-lang/lints#168)
dependabot[bot] Nov 1, 2023
3727b78
add a section on upgrading to the latest lint set to the readme (dart…
devoncarew Nov 14, 2023
a0bf795
Bump dart-lang/setup-dart from 1.6.0 to 1.6.2 (dart-lang/lints#176)
dependabot[bot] Feb 1, 2024
34ec24b
add library_annotations; remove package_prefixed_library_names (dart-…
devoncarew Feb 9, 2024
8f633a9
Bump actions/checkout from 4.1.1 to 4.1.2 (dart-lang/lints#182)
dependabot[bot] Apr 1, 2024
f95ebd3
remove the 'library_names' lint (dart-lang/lints#183)
devoncarew Apr 30, 2024
008685c
Bump actions/checkout from 4.1.2 to 4.1.4 (dart-lang/lints#186)
dependabot[bot] May 1, 2024
4d31b37
Bump dart-lang/setup-dart from 1.6.2 to 1.6.4 (dart-lang/lints#185)
dependabot[bot] May 1, 2024
c32c8c7
rev to 4.0.0; prep to publish (dart-lang/lints#184)
devoncarew May 9, 2024
b47a101
Tighten up the `gen_docs.dart` script. (dart-lang/lints#187)
lrhn May 13, 2024
bcb9f05
Update README.md (dart-lang/lints#189)
devoncarew May 16, 2024
0e28bdd
Bump actions/checkout from 4.1.4 to 4.1.6 (dart-lang/lints#191)
dependabot[bot] Jun 1, 2024
dcd52fe
Bump actions/checkout from 4.1.6 to 4.1.7 (dart-lang/lints#193)
dependabot[bot] Jul 1, 2024
94b2e13
Bump dart-lang/setup-dart from 1.6.4 to 1.6.5 (dart-lang/lints#194)
dependabot[bot] Jul 1, 2024
37cbcc2
add unnecessary_library_name to recommended (dart-lang/lints#198)
devoncarew Aug 7, 2024
d82f9c3
add invalid_runtime_check_with_js_interop_types to the recommended li…
devoncarew Aug 14, 2024
1940026
Remove avoid_null_checks_in_equality_operators from recommended (dart…
srawlins Sep 5, 2024
c369399
Fixes formatting error in the rules.md table (dart-lang/lints#206)
lenzpaul Sep 10, 2024
532cbe4
rev to 5.0.0 in preparation for publishing (dart-lang/lints#210)
devoncarew Sep 25, 2024
7f2bf15
add unintended_html_in_doc_comment; rev to 5.1.0 (dart-lang/lints#211)
devoncarew Sep 25, 2024
4a0b955
Bump actions/checkout from 4.1.7 to 4.2.0 (dart-lang/lints#212)
dependabot[bot] Oct 1, 2024
dfcdd2a
Update README.md before archiving (dart-lang/lints#214)
mosuem Oct 21, 2024
e62ca1d
Bump actions/checkout from 4.2.0 to 4.2.2 (dart-lang/lints#215)
dependabot[bot] Nov 1, 2024
49591a2
Bump dart-lang/setup-dart from 1.6.5 to 1.7.0 (dart-lang/lints#217)
dependabot[bot] Dec 1, 2024
16a7047
Revert "Update README.md before archiving (dart-lang/lints#214)" (dar…
goderbauer Dec 3, 2024
2e5c71d
update the sdk lower bound to the current stable (dart-lang/lints#220)
devoncarew Dec 11, 2024
a64c379
Merge package:lints into the core monorepo
mosuem Dec 20, 2024
bcff5ce
Add issue template and other fixes
mosuem Dec 20, 2024
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
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/lints.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:lints"
about: "Create a bug or file a feature request against package:lints."
labels: "package:lints"
---
9 changes: 9 additions & 0 deletions pkgs/lints/.github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
blank_issues_enabled: true
contact_links:
- name: Propose a new lint
url: https://github.com/dart-lang/linter/issues/new?assignees=&labels=enhancement%2C+lint+request&template=lint-request.md&title=
about: Request a new lint rule.
- name: Report an issue with a lint
url: https://github.com/dart-lang/linter/issues/new?assignees=&labels=&template=issue-report.md&title=
about: Create an issue report for an existing lint.

14 changes: 14 additions & 0 deletions pkgs/lints/.github/ISSUE_TEMPLATE/lint-propoposal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Add an existing lint to the `core` or `recommended` rule set
about: Propose adding an existing lint rule to the `core` or `recommended` rule set.
title: ''
labels: type-lint
assignees: ''

---

**Describe the rule you'd like to see added and to what rule set**
Include as much detail as you can.

**Additional context**
Add any other considerations or context here.
10 changes: 10 additions & 0 deletions pkgs/lints/.github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Dependabot configuration file.
version: 2

updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
labels:
- autosubmit
14 changes: 14 additions & 0 deletions pkgs/lints/.github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# A CI configuration to auto-publish pub packages.

name: Publish

on:
pull_request:
branches: [ main ]
push:
tags: [ 'v[0-9]+.[0-9]+.[0-9]+*' ]

jobs:
publish:
if: ${{ github.repository_owner == 'dart-lang' }}
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
32 changes: 32 additions & 0 deletions pkgs/lints/.github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: validate

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Run weekly
schedule:
- cron: "0 0 * * 0"

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [beta] # todo: re-add stable

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
with:
sdk: ${{ matrix.sdk }}

- run: dart pub get
- run: dart format --output=none --set-exit-if-changed .
- run: dart analyze --fatal-infos
- run: dart tool/validate_lib.dart
- run: dart tool/gen_docs.dart --verify
10 changes: 10 additions & 0 deletions pkgs/lints/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Files and directories created by pub
.dart_tool/
.packages

# Omit commiting pubspec.lock for library packages:
# https://dart.dev/guides/libraries/private-files#pubspeclock
pubspec.lock

# Directory created by dartdoc
doc/api/
96 changes: 96 additions & 0 deletions pkgs/lints/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
## 5.1.1

- Updated the SDK lower bound to 3.6.

## 5.1.0

- `core`:
- added [unintended_html_in_doc_comment] (https://github.com/dart-lang/lints/issues/192)
- Updated the SDK lower bound to 3.6 (dev).

[unintended_html_in_doc_comment]: https://dart.dev/lints/unintended_html_in_doc_comment

## 5.0.0

- `recommended`:
- added [invalid_runtime_check_with_js_interop_types] (https://github.com/dart-lang/lints/issues/188)
- added [unnecessary_library_name] (https://github.com/dart-lang/lints/issues/181)
- removed [avoid_null_checks_in_equality_operators] (https://github.com/dart-lang/lints/issues/200)
- Updated the SDK lower-bound to 3.5.

[invalid_runtime_check_with_js_interop_types]: https://dart.dev/tools/linter-rules/invalid_runtime_check_with_js_interop_types
[unnecessary_library_name]: https://dart.dev/lints/unnecessary_library_name
[avoid_null_checks_in_equality_operators]: https://dart.dev/tools/linter-rules/avoid_null_checks_in_equality_operators

## 4.0.0

- `core`:
- added `library_annotations` (https://github.com/dart-lang/lints/issues/177)
- added `no_wildcard_variable_uses` (https://github.com/dart-lang/lints/issues/139)
- removed `package_prefixed_library_names` (https://github.com/dart-lang/lints/issues/172)
- `recommended`:
- removed `library_names` (https://github.com/dart-lang/lints/issues/181)
- Updated the SDK lower-bound to 3.1.
- Add a section on upgrading to the latest lint set to the readme.

## 3.0.0

- `core`:
- added `collection_methods_unrelated_type`
- added `dangling_library_doc_comments`
- added `implicit_call_tearoffs`
- added `secure_pubspec_urls`
- added `type_literal_in_constant_pattern`
- added `use_string_in_part_of_directives`
- removed `iterable_contains_unrelated_type`
- removed `list_remove_unrelated_type`
- `recommended`:
- added `unnecessary_to_list_in_spreads`
- added `use_super_parameters`
- removed `prefer_equal_for_default_values`
- removed `prefer_void_to_null`
- Add info about which lints have quick fixes to the package's readme.
- Move the list of lint rules from the readme to a separate
[rules.md](https://github.com/dart-lang/lints/blob/main/rules.md) file.

## 2.1.1

- Added the `analysis` and `lints` topics to the pubspec file.
- Update the package's readme to include the list of lint rules that
`package:lints/core.yaml` and `package:lints/recommended.yaml` include.

## 2.1.0

- Updated the SDK lower-bound to 3.0.
- Removed `always_require_non_null_named_parameters` from `recommended.yaml`
as it is only relevant in Dart pre 2.12 and with Dart 3.0, libraries can
no longer be opted back that far.

## 2.0.1

- Updated documentation for the `lib/core.yaml` and `lib/recommended.yaml`
analysis configurations.

## 2.0.0

- Added the following lints to core.yaml:
- `depend_on_referenced_packages`
- `null_check_on_nullable_type_parameter`
- Added the following lints to recommended.yaml:
- `library_private_types_in_public_api`
- `no_leading_underscores_for_library_prefixes`
- `no_leading_underscores_for_local_identifiers`
- `prefer_interpolation_to_compose_strings`
- `unnecessary_constructor_name`
- `unnecessary_late`
- `unnecessary_null_aware_assignments`
- `unnecessary_nullable_for_final_variable_declarations`
- Bumped the minimum required Dart SDK version to 2.17

## 1.0.1

- Documentation updates

## 1.0.0

- Initial stable version
27 changes: 27 additions & 0 deletions pkgs/lints/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright 2021, the Dart project authors.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of Google LLC nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
115 changes: 115 additions & 0 deletions pkgs/lints/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
[![Build Status](https://github.com/dart-lang/lints/workflows/validate/badge.svg)](https://github.com/dart-lang/lints/actions?query=branch%3Amain)
[![pub package](https://img.shields.io/pub/v/lints.svg)](https://pub.dev/packages/lints)
[![package publisher](https://img.shields.io/pub/publisher/lints.svg)](https://pub.dev/packages/lints/publisher)

# Official Dart lint rules

The Dart linter is a static analyzer for identifying possible problems in your
Dart source code. More than a hundred [linter rules][rules] are available,
checking anything from potential typing issues, coding style, and formatting.
This package - `package:lints` - contains the lint settings recommended by the
Dart team.

## Lint sets

This package includes two sets of lints:

* **Core lints**: Lints that help identify critical issues that are likely to
lead to problems when running or consuming Dart code. All code should pass these
lints.

* **Recommended lints**: Lints that help identify additional issues that may
lead to problems when running or consuming Dart code, and lints that enforce
writing Dart using a single, idiomatic style and format. All code is encouraged
to pass these lints. The recommended lints include all the core lints.

Additionally, a third lint set -
[`package:flutter_lints`](https://pub.dev/packages/flutter_lints) - extends the
recommended set with additional recommended Flutter-specific lints.

The Dart team will likely not provide recommendations past the `core` and
`recommended` sets (e.g., a `strict` rule set). However, there are many such rule
sets in the ecosystem (available at [pub.dev](https://pub.dev/)).

Rule set authors: consider adding the `lints` topic to your pubspec to allow
easier discovery (e.g.,
[pub.dev/packages?q=topic:lints](https://pub.dev/packages?q=topic%3Alints)).
For more information about topics, visit
[dart.dev/tools/pub/pubspec#topics](https://dart.dev/tools/pub/pubspec#topics).

## Where these lints are used

When creating a new Dart project using the [`dart create`][dart create] command,
the `recommended` set of lints from `package:lints` is enabled by default.

When uploading a package to the [pub.dev] package repository, packages are
[awarded pub points][scoring] based on how many of the 'core' lints pass.

## Enabling the lints

For new apps created with `dart create` the `recommended` set of lints are
enabled by default.

For existing apps or packages, you can enable these lints via:

1. In a terminal, located at the root of your package, run this command:

```terminal
dart pub add dev:lints
```

2. Create a new `analysis_options.yaml` file, next to the pubspec, that
includes the lints package:

```yaml
include: package:lints/recommended.yaml
```

or:

```yaml
include: package:lints/core.yaml
```

## Upgrading to the latest lints

To upgrade to the latest version of the lint set, run:

```
dart pub add dev:lints
```

## Customizing the predefined lint sets

For details on customizing static analysis above and beyond the predefined
lint sets, check out [Customizing static analysis].

## Evolving the lint sets

The Dart language changes and the ecosystem continues to develop new best
practices, so the lint sets must be periodically updated to reflect the best way
we know to write Dart code. The process we use is:

1. Anyone can file an [issue] to discuss a potential change to a lint set
(i.e., adding or removing a lint from one or both sets; if you're proposing
an entirely new lint, the place to suggest that is at the [linter repo]).
Feedback is welcome from any Dart user.

2. Periodically, a group of Dart and Flutter team members meet to review the
suggestions and decide what to adopt.

3. The lists are updated and a new version of the package is published.

## Lint set contents

See [rules.md](https://github.com/dart-lang/lints/blob/main/rules.md) for a list
of rules that make up the core and recommended rule sets.

[dart create]: https://dart.dev/tools/dart-create
[scoring]: https://pub.dev/help/scoring
[customizing static analysis]: https://dart.dev/tools/analysis
[rules]: https://dart.dev/tools/linter-rules
[pub.dev]: https://pub.dev
[issue]: https://github.com/dart-lang/lints/issues
[linter repo]: https://github.com/dart-lang/linter
[`package:flutter_lints`]: https://pub.dev/packages/flutter_lints
1 change: 1 addition & 0 deletions pkgs/lints/example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An example project that uses Dart recommended lints.
30 changes: 30 additions & 0 deletions pkgs/lints/example/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -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 pkgs/lints/example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: example
description: An example project that uses Dart recommended lints.
version: 0.1.0
publish_to: none

environment:
sdk: ^3.0.0

dev_dependencies:
lints: ^2.1.0
Loading
Loading