-
Notifications
You must be signed in to change notification settings - Fork 45
feat: enforce and normalize package dependencies #316
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
Conversation
898c6eb
to
d3516d2
Compare
"@fluentui/react-jsx-runtime": ">=9.0.29 < 10.0.0", | ||
"@fluentui/keyboard-keys": "~9.0.6", | ||
"@fluentui/react-tabster": "~9.14.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using version range that is not present in the monorepo - changed to ^
, please provide context if you need to use ~
for version range ( in this case current decision introduces duplicates in user land 🚨 )
@@ -1,4 +1,4 @@ | |||
import type { BrandVariants } from '@fluentui/react-theme'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using imports from suite is highly recommended if possible
unstable_hasDefault: true, | ||
}); | ||
export const useChatMoverAttribute_unstable = (): ReturnType< | ||
typeof useArrowNavigationGroup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using transitive dependency package for internal type assertion is a bad practice - recommended solution is to always use direct dependency - ideally from suite package.
this mitigates direct dependency requirement for tabster
packages/react-data-grid-react-window/src/components/DataGridBody/useDataGridBody.tsx
Show resolved
Hide resolved
@@ -3,30 +3,18 @@ | |||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | |||
"sourceRoot": "packages/react-gamepad-navigation/src", | |||
"projectType": "library", | |||
"release": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems this project used old generator - removing cruft
@@ -1,6 +1,6 @@ | |||
import type { SlotClassNames, TabState } from '@fluentui/react-components'; | |||
import { mergeClasses } from '@fluentui/react-components'; | |||
// eslint-disable-next-line import/no-extraneous-dependencies |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't use this rule anymore
"dependencies": { | ||
"@fluentui/react-jsx-runtime": "^9.0.29", | ||
"@fluentui/react-tabs": "^9.5.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is intended change (until nrwl/nx#29853 lands)
- NOTE that this will not introduce duplicates as the version range for sub-package is compatible with suite
1b88375
to
ebf519e
Compare
… Component generation
43c9de1
to
c617ea0
Compare
@nx/dependency-check
for all projectseslint-plugin-import
from monorepocomponent
generator makinglibrary
generator platform/technology agnosticRelated issues: