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

build: Update shared api-extractor lint config to enable enforcement #18791

Merged

Conversation

Josmithr
Copy link
Contributor

Also removes package-local overrides, which are no longer necessary

@Josmithr Josmithr requested review from a team as code owners December 12, 2023 19:28
@github-actions github-actions bot added area: build Build related issues area: dds Issues related to distributed data structures area: dds: propertydds area: dds: sharedstring area: dds: tree area: dev experience Improving the experience of devs building on top of fluid area: driver Driver related issues area: examples Changes that focus on our examples area: framework Framework is a tag for issues involving the developer framework. Eg Aqueduct area: loader Loader related issues area: odsp-driver area: runtime Runtime related issues area: server Server related issues (routerlicious) area: tests Tests to add, test infrastructure improvements, etc base: main PRs targeted against main branch labels Dec 12, 2023
@Josmithr
Copy link
Contributor Author

Waiting for the next release to be cut before merging.

@@ -45,7 +45,7 @@
// 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
"logLevel": "error",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reviewers: this is the primary change. Set as an error now, so all configs extending this can remove the override.

@tylerbutler
Copy link
Member

nit on the pr title: maybe api-extractor instead of lint? Not sure that's better or more accurate.

@Josmithr Josmithr changed the title build: Update shared lint config to enable enforcement build: Update shared api-extractor lint config to enable enforcement Dec 12, 2023
"extends": "../../../common/build/build-common/api-extractor-lint.json"
"extends": "../../../common/build/build-common/api-extractor-lint.json",
"messages": {
"extractorMessageReporting": {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was necessary - tree2 was the only package explicitly not linting cross-package compat.

@msfluid-bot
Copy link
Collaborator

@fluid-example/bundle-size-tests: +14 Bytes
Metric NameBaseline SizeCompare SizeSize Diff
aqueduct.js 598.92 KB 598.92 KB +2 Bytes
connectionState.js 680 Bytes 680 Bytes No change
containerRuntime.js 295.2 KB 295.2 KB No change
loader.js 188.96 KB 188.96 KB +2 Bytes
map.js 100.27 KB 100.27 KB +2 Bytes
matrix.js 239.84 KB 239.84 KB +2 Bytes
odspDriver.js 112.21 KB 112.21 KB +2 Bytes
odspPrefetchSnapshot.js 67.6 KB 67.6 KB +2 Bytes
sharedString.js 306.6 KB 306.6 KB No change
sharedTree2.js 324.13 KB 324.13 KB No change
Total Size 2.29 MB 2.29 MB +14 Bytes

Baseline commit: 600c2be

Generated by 🚫 dangerJS against 11a64f9

@Josmithr Josmithr merged commit da72a52 into microsoft:main Dec 14, 2023
30 checks passed
@Josmithr Josmithr deleted the build/update-api-extractor-lint-config branch December 14, 2023 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: build Build related issues area: dds: propertydds area: dds: sharedstring area: dds: tree area: dds Issues related to distributed data structures area: dev experience Improving the experience of devs building on top of fluid area: driver Driver related issues area: examples Changes that focus on our examples area: framework Framework is a tag for issues involving the developer framework. Eg Aqueduct area: loader Loader related issues area: odsp-driver area: runtime Runtime related issues area: server Server related issues (routerlicious) area: tests Tests to add, test infrastructure improvements, etc base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants