Skip to content

Commit

Permalink
Remove leancode_lint's dependency on flutter (#47)
Browse files Browse the repository at this point in the history
* * add .prettierrc

* remove dependency on flutter

* differentiate between app & package

* Update packages/leancode_lint/README.md

Co-authored-by: Marcin Wojnarowski <[email protected]>

* Update packages/leancode_lint/README.md

Co-authored-by: Marcin Wojnarowski <[email protected]>

Co-authored-by: Marcin Wojnarowski <[email protected]>
  • Loading branch information
bartekpacia and shilangyu authored Dec 1, 2021
1 parent b00924d commit b980654
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
5 changes: 5 additions & 0 deletions packages/leancode_lint/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 1.0.2

- Remove dependency on `flutter`
- Update README to differentiate between app and package projects

# 1.0.1+1

- Improve explanation in README on why one might want to add `leancode_lint` as
Expand Down
25 changes: 22 additions & 3 deletions packages/leancode_lint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,37 @@ dependencies:

## Usage

### App

Add `include: package:leancode_lint/analysis_options.yaml` to
`analysis_options.yaml` in your project. You might want to exclude some files
(e.g generated frezeed models) from analysis.
(e.g generated freezed models) from analysis.

```yaml
include: package:leancode_lint/analysis_options.yaml
# Optional
analyzer:
exclude:
- "**/*.g.dart"
- "**/*.freezed.dart"
- '**/*.g.dart'
- '**/*.freezed.dart'
```

### Package

Add `include: package:leancode_lint/analysis_options_package.yaml` to
`analysis_options.yaml` in your project. It includes additional lints for
packages. You might want to exclude some files (e.g generated freezed models)
from analysis.

```yaml
include: package:leancode_lint/analysis_options_package.yaml
# Optional
analyzer:
exclude:
- '**/*.g.dart'
- '**/*.freezed.dart'
```

[pub-badge]: https://img.shields.io/pub/v/leancode_lint
Expand Down
3 changes: 1 addition & 2 deletions packages/leancode_lint/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: leancode_lint
version: 1.0.1+1
version: 1.0.2
homepage: https://github.com/leancodepl/flutter_corelibrary/tree/master/packages/leancode_lint
repository: https://github.com/leancodepl/flutter_corelibrary
description: Lint rules used internally at LeanCode.

environment:
sdk: '>=2.12.0 <3.0.0'
flutter: '>=2.0.0'

dependencies:
flutter_lints: ^1.0.4

0 comments on commit b980654

Please sign in to comment.