mirror of
https://github.com/danog/dart-sass.git
synced 2025-01-22 13:51:31 +01:00
Move analysis options into a nested package
This allows other Sass team packages to re-use our analysis configuration without having to copy it.
This commit is contained in:
parent
8270dc1664
commit
08d0b8d159
14
analysis/README.md
Normal file
14
analysis/README.md
Normal file
@ -0,0 +1,14 @@
|
||||
This package provides a shared set of analysis options for use by Sass team
|
||||
packages. To use it, add it as a Git dependency to your `pubspec.yaml`:
|
||||
|
||||
```yaml
|
||||
dev_dependencies:
|
||||
sass_analysis:
|
||||
git: {url: git://github.com/sass/dart-sass.git, path: analysis}
|
||||
```
|
||||
|
||||
and include it in your `analysis_options.yaml`:
|
||||
|
||||
```yaml
|
||||
include: package:sass_analysis/analysis_options.yaml
|
||||
```
|
17
analysis/lib/analysis_options.yaml
Normal file
17
analysis/lib/analysis_options.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
analyzer:
|
||||
strong-mode:
|
||||
implicit-casts: false
|
||||
language:
|
||||
strict-inference: true
|
||||
strict-raw-types: true
|
||||
errors:
|
||||
missing_js_lib_annotation: ignore
|
||||
deprecated_member_use_from_same_package: ignore
|
||||
|
||||
# These are necessary for matching the JS API.
|
||||
avoid_types_as_parameter_names: ignore
|
||||
|
||||
# This has tons of false positives for StreamSubscription.close().
|
||||
unawaited_futures: ignore
|
||||
|
||||
include: package:pedantic/analysis_options.yaml
|
13
analysis/pubspec.yaml
Normal file
13
analysis/pubspec.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
name: sass_analysis
|
||||
version: 0.0.0
|
||||
description: Shared analysis options for Sass team packages.
|
||||
author: Sass Team
|
||||
homepage: https://github.com/sass/dart-sass/tree/master/analysis
|
||||
|
||||
publish_to: none
|
||||
|
||||
environment:
|
||||
sdk: ">=2.0.0 <3.0.0"
|
||||
|
||||
dependencies:
|
||||
pedantic: ^1.0.0
|
@ -1,17 +1 @@
|
||||
analyzer:
|
||||
strong-mode:
|
||||
implicit-casts: false
|
||||
language:
|
||||
strict-inference: true
|
||||
strict-raw-types: true
|
||||
errors:
|
||||
missing_js_lib_annotation: ignore
|
||||
deprecated_member_use_from_same_package: ignore
|
||||
|
||||
# These are necessary for matching the JS API.
|
||||
avoid_types_as_parameter_names: ignore
|
||||
|
||||
# This has tons of false positives for StreamSubscription.close().
|
||||
unawaited_futures: ignore
|
||||
|
||||
include: package:pedantic/analysis_options.yaml
|
||||
include: package:sass_analysis/analysis_options.yaml
|
||||
|
@ -39,6 +39,7 @@ dev_dependencies:
|
||||
js: "^0.6.0"
|
||||
node_preamble: "^1.1.0"
|
||||
pub_semver: "^1.0.0"
|
||||
sass_analysis: {path: analysis}
|
||||
source_span: "^1.5.2"
|
||||
stream_channel: ">=1.0.0 <3.0.0"
|
||||
test_descriptor: "^1.1.0"
|
||||
|
Loading…
x
Reference in New Issue
Block a user