-
Notifications
You must be signed in to change notification settings - Fork 535
/
api-extractor-lint-base.json
62 lines (61 loc) · 2.1 KB
/
api-extractor-lint-base.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
This configuration is specifically constructed to be used as a "linter" configuration.
It runs api-extractor in a mode where all other Fluid packages are bundled in its analysis,
but only runs analysis and producing no artifacts.
Here we are specifically looking to ensure that cross-package references are release-tag-compatible.
*/
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"extends": "@fluidframework/build-common/api-extractor-base.json",
"apiReport": {
// Don't generate API report in lint pass
"enabled": false
},
"docModel": {
// Don't generate doc-model in lint pass
"enabled": false
},
"dtsRollup": {
// Don't generate rollups in lint pass
"enabled": false
},
"tsdocMetadata": {
// Don't generate docs metadata in lint pass
"enabled": false
},
"messages": {
"extractorMessageReporting": {
// Don't validate forgotten exports across package boundaries.
// This is an explicit policy choice.
"ae-forgotten-export": {
"logLevel": "none"
},
// Don't check for explicit release tags in other packages.
// Each package validates this for themselves, so there is no need to re-validate here.
"ae-missing-release-tag": {
"logLevel": "none"
},
// Links with implicit (unanotated) package name specifiers don't currently resolve correctly
// when their members are bundled.
// See https://github.com/microsoft/rushstack/issues/3521
// Omit this check from the cross-package lint step.
"ae-unresolved-link": {
"logLevel": "none"
},
// This is the primary error we are looking for with the linter pass.
// Ensure that release tags of API members are compatible **across package boundaries**.
"ae-incompatible-release-tags": {
"logLevel": "none", // TODO: change to "error" once we are ready to start enforcing repo-wide
"addToApiReportFile": false
}
}
},
// Bundle local dependencies so we can validate cross-package relationships
"bundledPackages": [
"@fluidframework/*",
"@fluid-internal/*",
"@fluid-experimental/*",
"@fluid-private/*",
"@fluid-tools/*"
]
}