From 5ceb92fa36b48f5690bc78d4d5a9ac27d251e6f5 Mon Sep 17 00:00:00 2001 From: Jason Morse Date: Wed, 6 May 2026 16:28:00 -0700 Subject: [PATCH 1/7] initial tsconfig.json changes --- packages/configs/jest-config/tsconfig.json | 5 ++++- scripts/configs/tsconfig/tsconfig.json | 9 +++++++++ scripts/configs/tsconfig/tsconfig.strict.json | 13 +++++++++++++ scripts/package.json | 8 ++++++++ 4 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 scripts/configs/tsconfig/tsconfig.json create mode 100644 scripts/configs/tsconfig/tsconfig.strict.json diff --git a/packages/configs/jest-config/tsconfig.json b/packages/configs/jest-config/tsconfig.json index 29105ab787d..8b677af67cc 100644 --- a/packages/configs/jest-config/tsconfig.json +++ b/packages/configs/jest-config/tsconfig.json @@ -1,4 +1,7 @@ { - "extends": "@fluentui-react-native/scripts/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig-strict", + "compilerOptions": { + "noEmit": true, + }, "include": ["src"] } diff --git a/scripts/configs/tsconfig/tsconfig.json b/scripts/configs/tsconfig/tsconfig.json new file mode 100644 index 00000000000..f3338475a01 --- /dev/null +++ b/scripts/configs/tsconfig/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.strict.json", + "compilerOptions": { + "strictBindCallApply": false, + "strictNullChecks": false, + "noImplicitAny": false, + "rewriteRelativeImportExtensions": true + } +} diff --git a/scripts/configs/tsconfig/tsconfig.strict.json b/scripts/configs/tsconfig/tsconfig.strict.json new file mode 100644 index 00000000000..c3a0917d60f --- /dev/null +++ b/scripts/configs/tsconfig/tsconfig.strict.json @@ -0,0 +1,13 @@ +{ + "extends": "@rnx-kit/tsconfig/tsconfig.nodenext.json", + "compilerOptions": { + "target": "esnext", + "lib": ["esnext"], + "module": "nodenext", + "moduleResolution": "nodenext", + "outDir": "lib", + "rootDir": "src", + "jsx": "react-jsx", + "types": ["jest", "node"] + } +} diff --git a/scripts/package.json b/scripts/package.json index fe1b200a6b0..861b2c2d8d6 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -13,6 +13,14 @@ }, "type": "module", "main": "./src/index.js", + "exports": { + ".": { + "default": "./src/index.js" + }, + "./tsconfig": "./configs/tsconfig/tsconfig.json", + "./tsconfig-strict": "./configs/tsconfig/tsconfig.strict.json", + "./package.json": "./package.json" + }, "scripts": { "build": "tsgo", "build-core": "tsgo", From 345b06160997c027ca8f678b8d395f45650921d1 Mon Sep 17 00:00:00 2001 From: Jason Morse Date: Wed, 6 May 2026 16:52:02 -0700 Subject: [PATCH 2/7] update tsconfig.json with new extends and rootDir option --- .yarnrc.yml | 2 +- apps/E2E/tsconfig.json | 5 ++-- .../ComponentTemplate/tsconfig.json | 2 +- apps/fluent-tester/tsconfig.json | 5 ++-- apps/tester-core/tsconfig.json | 5 ++-- apps/win32-81/tsconfig.json | 2 +- apps/win32/tsconfig.json | 2 +- packages/codemods/tsconfig.json | 5 ++-- packages/components/Avatar/tsconfig.json | 5 ++-- packages/components/Badge/tsconfig.json | 5 ++-- packages/components/Button/tsconfig.json | 5 ++-- packages/components/Callout/tsconfig.json | 5 ++-- packages/components/Checkbox/tsconfig.json | 5 ++-- packages/components/Chip/tsconfig.json | 5 ++-- .../components/ContextualMenu/tsconfig.json | 5 ++-- packages/components/Divider/tsconfig.json | 5 ++-- .../components/FocusTrapZone/tsconfig.json | 5 ++-- packages/components/FocusZone/tsconfig.json | 5 ++-- packages/components/Icon/tsconfig.json | 5 ++-- packages/components/Input/tsconfig.json | 5 ++-- packages/components/Link/tsconfig.json | 5 ++-- packages/components/Menu/tsconfig.json | 5 ++-- packages/components/MenuButton/tsconfig.json | 5 ++-- .../components/Notification/tsconfig.json | 5 ++-- packages/components/Persona/tsconfig.json | 5 ++-- packages/components/PersonaCoin/tsconfig.json | 5 ++-- packages/components/Pressable/tsconfig.json | 5 ++-- packages/components/RadioGroup/tsconfig.json | 5 ++-- packages/components/Separator/tsconfig.json | 5 ++-- packages/components/Stack/tsconfig.json | 5 ++-- packages/components/Switch/tsconfig.json | 5 ++-- packages/components/TabList/tsconfig.json | 5 ++-- packages/components/Text/tsconfig.json | 5 ++-- packages/configs/jest-config/tsconfig.json | 2 +- .../configs/lint-config-rules/tsconfig.json | 2 +- .../foundation-composable/tsconfig.json | 5 ++-- .../foundation-compose/tsconfig.json | 5 ++-- .../foundation-settings/tsconfig.json | 5 ++-- .../foundation-tokens/tsconfig.json | 5 ++-- .../deprecated/theme-registry/tsconfig.json | 5 ++-- .../deprecated/themed-settings/tsconfig.json | 5 ++-- .../deprecated/theming-ramp/tsconfig.json | 5 ++-- .../theming-react-native/tsconfig.json | 5 ++-- .../ActivityIndicator/tsconfig.json | 5 ++-- .../AppearanceAdditions/tsconfig.json | 5 ++-- packages/experimental/Avatar/tsconfig.json | 5 ++-- packages/experimental/Checkbox/tsconfig.json | 5 ++-- packages/experimental/Drawer/tsconfig.json | 5 ++-- packages/experimental/Dropdown/tsconfig.json | 5 ++-- packages/experimental/Expander/tsconfig.json | 5 ++-- .../experimental/MenuButton/tsconfig.json | 5 ++-- .../NativeDatePicker/tsconfig.json | 5 ++-- .../NativeFontMetrics/tsconfig.json | 5 ++-- packages/experimental/Overflow/tsconfig.json | 5 ++-- packages/experimental/Popover/tsconfig.json | 5 ++-- packages/experimental/Shadow/tsconfig.json | 5 ++-- packages/experimental/Shimmer/tsconfig.json | 5 ++-- packages/experimental/Spinner/tsconfig.json | 5 ++-- packages/experimental/Tooltip/tsconfig.json | 5 ++-- .../experimental/VibrancyView/tsconfig.json | 5 ++-- packages/framework-base/tsconfig.json | 5 ++-- packages/framework/composition/tsconfig.json | 5 ++-- packages/framework/framework/tsconfig.json | 6 +++-- packages/framework/theme/tsconfig.json | 5 ++-- .../framework/themed-stylesheet/tsconfig.json | 5 ++-- packages/framework/use-slot/tsconfig.json | 5 ++-- packages/framework/use-slots/tsconfig.json | 5 ++-- packages/framework/use-styling/tsconfig.json | 5 ++-- packages/framework/use-tokens/tsconfig.json | 5 ++-- packages/libraries/core/tsconfig.json | 5 ++-- packages/theming/android-theme/tsconfig.json | 5 ++-- packages/theming/apple-theme/tsconfig.json | 5 ++-- packages/theming/default-theme/tsconfig.json | 5 ++-- packages/theming/theme-tokens/tsconfig.json | 5 ++-- packages/theming/theme-types/tsconfig.json | 5 ++-- packages/theming/theming-utils/tsconfig.json | 5 ++-- packages/theming/win32-theme/tsconfig.json | 5 ++-- packages/utils/adapters/tsconfig.json | 5 ++-- .../utils/interactive-hooks/tsconfig.json | 5 ++-- packages/utils/styling/tsconfig.json | 5 ++-- packages/utils/test-tools/tsconfig.json | 5 ++-- packages/utils/tokens/tsconfig.json | 5 ++-- scripts/package.json | 6 +++-- scripts/src/tasks/lintPackage.ts | 25 ++++++++++++++++-- yarn.lock | 26 ++++++++++++++++--- 85 files changed, 284 insertions(+), 166 deletions(-) diff --git a/.yarnrc.yml b/.yarnrc.yml index 9fbce8f4da0..8a4e27b2611 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -22,7 +22,7 @@ catalog: "@rnx-kit/reporter": ^0.1.0 "@rnx-kit/tools-packages": ^0.1.2 "@rnx-kit/tools-typescript": ^0.1.3 - "@rnx-kit/tsconfig": ^3.0.0 + "@rnx-kit/tsconfig": ^3.0.3 "@rnx-kit/types-kit-config": "^1.0.0" "@rnx-kit/types-node": "^1.0.0" "@types/jasmine": 5.1.13 diff --git a/apps/E2E/tsconfig.json b/apps/E2E/tsconfig.json index d73e1413a0b..698ce482488 100644 --- a/apps/E2E/tsconfig.json +++ b/apps/E2E/tsconfig.json @@ -1,10 +1,11 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { "module": "Node16", "moduleResolution": "Node16", "outDir": "lib", - "types": ["@types/jasmine", "@wdio/globals/types", "@wdio/jasmine-framework", "node"] + "types": ["@types/jasmine", "@wdio/globals/types", "@wdio/jasmine-framework", "node"], + "rootDir": "src" }, "include": ["src"] } diff --git a/apps/component-generator/component-templates/ComponentTemplate/tsconfig.json b/apps/component-generator/component-templates/ComponentTemplate/tsconfig.json index 89a07a88a93..f3424b1ff4f 100644 --- a/apps/component-generator/component-templates/ComponentTemplate/tsconfig.json +++ b/apps/component-generator/component-templates/ComponentTemplate/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { "outDir": "lib" }, diff --git a/apps/fluent-tester/tsconfig.json b/apps/fluent-tester/tsconfig.json index b59c5d96d66..9154d37a5b9 100644 --- a/apps/fluent-tester/tsconfig.json +++ b/apps/fluent-tester/tsconfig.json @@ -1,9 +1,10 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { "outDir": "lib", "allowSyntheticDefaultImports": true, - "types": ["@types/jasmine", "@wdio/globals/types", "@wdio/jasmine-framework", "node"] + "types": ["@types/jasmine", "@wdio/globals/types", "@wdio/jasmine-framework", "node"], + "rootDir": "src" }, "include": ["src"] } diff --git a/apps/tester-core/tsconfig.json b/apps/tester-core/tsconfig.json index b59c5d96d66..9154d37a5b9 100644 --- a/apps/tester-core/tsconfig.json +++ b/apps/tester-core/tsconfig.json @@ -1,9 +1,10 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { "outDir": "lib", "allowSyntheticDefaultImports": true, - "types": ["@types/jasmine", "@wdio/globals/types", "@wdio/jasmine-framework", "node"] + "types": ["@types/jasmine", "@wdio/globals/types", "@wdio/jasmine-framework", "node"], + "rootDir": "src" }, "include": ["src"] } diff --git a/apps/win32-81/tsconfig.json b/apps/win32-81/tsconfig.json index 2c7e2516f60..3ebb4fbcb53 100644 --- a/apps/win32-81/tsconfig.json +++ b/apps/win32-81/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "include": ["src"] } diff --git a/apps/win32/tsconfig.json b/apps/win32/tsconfig.json index 2c7e2516f60..3ebb4fbcb53 100644 --- a/apps/win32/tsconfig.json +++ b/apps/win32/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "include": ["src"] } diff --git a/packages/codemods/tsconfig.json b/packages/codemods/tsconfig.json index 8d491495e81..42bfd821523 100644 --- a/packages/codemods/tsconfig.json +++ b/packages/codemods/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"], "exclude": ["src/transforms/__testfixtures__"] diff --git a/packages/components/Avatar/tsconfig.json b/packages/components/Avatar/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/Avatar/tsconfig.json +++ b/packages/components/Avatar/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/Badge/tsconfig.json b/packages/components/Badge/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/Badge/tsconfig.json +++ b/packages/components/Badge/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/Button/tsconfig.json b/packages/components/Button/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/Button/tsconfig.json +++ b/packages/components/Button/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/Callout/tsconfig.json b/packages/components/Callout/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/Callout/tsconfig.json +++ b/packages/components/Callout/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/Checkbox/tsconfig.json b/packages/components/Checkbox/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/Checkbox/tsconfig.json +++ b/packages/components/Checkbox/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/Chip/tsconfig.json b/packages/components/Chip/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/Chip/tsconfig.json +++ b/packages/components/Chip/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/ContextualMenu/tsconfig.json b/packages/components/ContextualMenu/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/ContextualMenu/tsconfig.json +++ b/packages/components/ContextualMenu/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/Divider/tsconfig.json b/packages/components/Divider/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/Divider/tsconfig.json +++ b/packages/components/Divider/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/FocusTrapZone/tsconfig.json b/packages/components/FocusTrapZone/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/FocusTrapZone/tsconfig.json +++ b/packages/components/FocusTrapZone/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/FocusZone/tsconfig.json b/packages/components/FocusZone/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/FocusZone/tsconfig.json +++ b/packages/components/FocusZone/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/Icon/tsconfig.json b/packages/components/Icon/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/Icon/tsconfig.json +++ b/packages/components/Icon/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/Input/tsconfig.json b/packages/components/Input/tsconfig.json index 8d1e731877e..bdc4474a2f4 100644 --- a/packages/components/Input/tsconfig.json +++ b/packages/components/Input/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src", "svgs.d.ts"] } diff --git a/packages/components/Link/tsconfig.json b/packages/components/Link/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/Link/tsconfig.json +++ b/packages/components/Link/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/Menu/tsconfig.json b/packages/components/Menu/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/Menu/tsconfig.json +++ b/packages/components/Menu/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/MenuButton/tsconfig.json b/packages/components/MenuButton/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/MenuButton/tsconfig.json +++ b/packages/components/MenuButton/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/Notification/tsconfig.json b/packages/components/Notification/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/Notification/tsconfig.json +++ b/packages/components/Notification/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/Persona/tsconfig.json b/packages/components/Persona/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/Persona/tsconfig.json +++ b/packages/components/Persona/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/PersonaCoin/tsconfig.json b/packages/components/PersonaCoin/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/PersonaCoin/tsconfig.json +++ b/packages/components/PersonaCoin/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/Pressable/tsconfig.json b/packages/components/Pressable/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/Pressable/tsconfig.json +++ b/packages/components/Pressable/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/RadioGroup/tsconfig.json b/packages/components/RadioGroup/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/RadioGroup/tsconfig.json +++ b/packages/components/RadioGroup/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/Separator/tsconfig.json b/packages/components/Separator/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/Separator/tsconfig.json +++ b/packages/components/Separator/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/Stack/tsconfig.json b/packages/components/Stack/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/Stack/tsconfig.json +++ b/packages/components/Stack/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/Switch/tsconfig.json b/packages/components/Switch/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/Switch/tsconfig.json +++ b/packages/components/Switch/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/TabList/tsconfig.json b/packages/components/TabList/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/TabList/tsconfig.json +++ b/packages/components/TabList/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/components/Text/tsconfig.json b/packages/components/Text/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/components/Text/tsconfig.json +++ b/packages/components/Text/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/configs/jest-config/tsconfig.json b/packages/configs/jest-config/tsconfig.json index 8b677af67cc..eae9bb1e073 100644 --- a/packages/configs/jest-config/tsconfig.json +++ b/packages/configs/jest-config/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "@fluentui-react-native/scripts/tsconfig-strict", "compilerOptions": { - "noEmit": true, + "noEmit": true }, "include": ["src"] } diff --git a/packages/configs/lint-config-rules/tsconfig.json b/packages/configs/lint-config-rules/tsconfig.json index be8c5b192b7..afb42785875 100644 --- a/packages/configs/lint-config-rules/tsconfig.json +++ b/packages/configs/lint-config-rules/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { "allowJs": true, "checkJs": true, diff --git a/packages/deprecated/foundation-composable/tsconfig.json b/packages/deprecated/foundation-composable/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/deprecated/foundation-composable/tsconfig.json +++ b/packages/deprecated/foundation-composable/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/deprecated/foundation-compose/tsconfig.json b/packages/deprecated/foundation-compose/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/deprecated/foundation-compose/tsconfig.json +++ b/packages/deprecated/foundation-compose/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/deprecated/foundation-settings/tsconfig.json b/packages/deprecated/foundation-settings/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/deprecated/foundation-settings/tsconfig.json +++ b/packages/deprecated/foundation-settings/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/deprecated/foundation-tokens/tsconfig.json b/packages/deprecated/foundation-tokens/tsconfig.json index 36359de7129..ad1c74a21b7 100644 --- a/packages/deprecated/foundation-tokens/tsconfig.json +++ b/packages/deprecated/foundation-tokens/tsconfig.json @@ -1,8 +1,9 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { "outDir": "lib", - "types": ["node", "jest", "react"] + "types": ["node", "jest", "react"], + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/deprecated/theme-registry/tsconfig.json b/packages/deprecated/theme-registry/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/deprecated/theme-registry/tsconfig.json +++ b/packages/deprecated/theme-registry/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/deprecated/themed-settings/tsconfig.json b/packages/deprecated/themed-settings/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/deprecated/themed-settings/tsconfig.json +++ b/packages/deprecated/themed-settings/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/deprecated/theming-ramp/tsconfig.json b/packages/deprecated/theming-ramp/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/deprecated/theming-ramp/tsconfig.json +++ b/packages/deprecated/theming-ramp/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/deprecated/theming-react-native/tsconfig.json b/packages/deprecated/theming-react-native/tsconfig.json index 37a1919ed4d..65f1338e146 100644 --- a/packages/deprecated/theming-react-native/tsconfig.json +++ b/packages/deprecated/theming-react-native/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src", "jest"] } diff --git a/packages/experimental/ActivityIndicator/tsconfig.json b/packages/experimental/ActivityIndicator/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/experimental/ActivityIndicator/tsconfig.json +++ b/packages/experimental/ActivityIndicator/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/experimental/AppearanceAdditions/tsconfig.json b/packages/experimental/AppearanceAdditions/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/experimental/AppearanceAdditions/tsconfig.json +++ b/packages/experimental/AppearanceAdditions/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/experimental/Avatar/tsconfig.json b/packages/experimental/Avatar/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/experimental/Avatar/tsconfig.json +++ b/packages/experimental/Avatar/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/experimental/Checkbox/tsconfig.json b/packages/experimental/Checkbox/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/experimental/Checkbox/tsconfig.json +++ b/packages/experimental/Checkbox/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/experimental/Drawer/tsconfig.json b/packages/experimental/Drawer/tsconfig.json index 8d1e731877e..bdc4474a2f4 100644 --- a/packages/experimental/Drawer/tsconfig.json +++ b/packages/experimental/Drawer/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src", "svgs.d.ts"] } diff --git a/packages/experimental/Dropdown/tsconfig.json b/packages/experimental/Dropdown/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/experimental/Dropdown/tsconfig.json +++ b/packages/experimental/Dropdown/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/experimental/Expander/tsconfig.json b/packages/experimental/Expander/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/experimental/Expander/tsconfig.json +++ b/packages/experimental/Expander/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/experimental/MenuButton/tsconfig.json b/packages/experimental/MenuButton/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/experimental/MenuButton/tsconfig.json +++ b/packages/experimental/MenuButton/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/experimental/NativeDatePicker/tsconfig.json b/packages/experimental/NativeDatePicker/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/experimental/NativeDatePicker/tsconfig.json +++ b/packages/experimental/NativeDatePicker/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/experimental/NativeFontMetrics/tsconfig.json b/packages/experimental/NativeFontMetrics/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/experimental/NativeFontMetrics/tsconfig.json +++ b/packages/experimental/NativeFontMetrics/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/experimental/Overflow/tsconfig.json b/packages/experimental/Overflow/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/experimental/Overflow/tsconfig.json +++ b/packages/experimental/Overflow/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/experimental/Popover/tsconfig.json b/packages/experimental/Popover/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/experimental/Popover/tsconfig.json +++ b/packages/experimental/Popover/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/experimental/Shadow/tsconfig.json b/packages/experimental/Shadow/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/experimental/Shadow/tsconfig.json +++ b/packages/experimental/Shadow/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/experimental/Shimmer/tsconfig.json b/packages/experimental/Shimmer/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/experimental/Shimmer/tsconfig.json +++ b/packages/experimental/Shimmer/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/experimental/Spinner/tsconfig.json b/packages/experimental/Spinner/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/experimental/Spinner/tsconfig.json +++ b/packages/experimental/Spinner/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/experimental/Tooltip/tsconfig.json b/packages/experimental/Tooltip/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/experimental/Tooltip/tsconfig.json +++ b/packages/experimental/Tooltip/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/experimental/VibrancyView/tsconfig.json b/packages/experimental/VibrancyView/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/experimental/VibrancyView/tsconfig.json +++ b/packages/experimental/VibrancyView/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/framework-base/tsconfig.json b/packages/framework-base/tsconfig.json index 1c424a0c1d4..b0dd41f41f6 100644 --- a/packages/framework-base/tsconfig.json +++ b/packages/framework-base/tsconfig.json @@ -1,9 +1,10 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { "outDir": "lib", "allowJs": true, - "checkJs": true + "checkJs": true, + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/framework/composition/tsconfig.json b/packages/framework/composition/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/framework/composition/tsconfig.json +++ b/packages/framework/composition/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/framework/framework/tsconfig.json b/packages/framework/framework/tsconfig.json index 32c0e3620fb..a79de74998f 100644 --- a/packages/framework/framework/tsconfig.json +++ b/packages/framework/framework/tsconfig.json @@ -1,10 +1,12 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { "resolveJsonModule": true, "experimentalDecorators": true, "strictNullChecks": true, - "noImplicitAny": true + "noImplicitAny": true, + "rootDir": "src", + "outDir": "lib" }, "include": ["src"] } diff --git a/packages/framework/theme/tsconfig.json b/packages/framework/theme/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/framework/theme/tsconfig.json +++ b/packages/framework/theme/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/framework/themed-stylesheet/tsconfig.json b/packages/framework/themed-stylesheet/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/framework/themed-stylesheet/tsconfig.json +++ b/packages/framework/themed-stylesheet/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/framework/use-slot/tsconfig.json b/packages/framework/use-slot/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/framework/use-slot/tsconfig.json +++ b/packages/framework/use-slot/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/framework/use-slots/tsconfig.json b/packages/framework/use-slots/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/framework/use-slots/tsconfig.json +++ b/packages/framework/use-slots/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/framework/use-styling/tsconfig.json b/packages/framework/use-styling/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/framework/use-styling/tsconfig.json +++ b/packages/framework/use-styling/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/framework/use-tokens/tsconfig.json b/packages/framework/use-tokens/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/framework/use-tokens/tsconfig.json +++ b/packages/framework/use-tokens/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/libraries/core/tsconfig.json b/packages/libraries/core/tsconfig.json index 715c7d00657..a080618044e 100644 --- a/packages/libraries/core/tsconfig.json +++ b/packages/libraries/core/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { "jsx": "react", "outDir": "lib", @@ -10,7 +10,8 @@ "noEmitOnError": true, "skipLibCheck": true, "noUnusedLocals": true, - "strict": true + "strict": true, + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/theming/android-theme/tsconfig.json b/packages/theming/android-theme/tsconfig.json index 854074dd75d..97fa2342172 100644 --- a/packages/theming/android-theme/tsconfig.json +++ b/packages/theming/android-theme/tsconfig.json @@ -1,8 +1,9 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { "outDir": "lib", - "resolveJsonModule": true + "resolveJsonModule": true, + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/theming/apple-theme/tsconfig.json b/packages/theming/apple-theme/tsconfig.json index 854074dd75d..97fa2342172 100644 --- a/packages/theming/apple-theme/tsconfig.json +++ b/packages/theming/apple-theme/tsconfig.json @@ -1,8 +1,9 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { "outDir": "lib", - "resolveJsonModule": true + "resolveJsonModule": true, + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/theming/default-theme/tsconfig.json b/packages/theming/default-theme/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/theming/default-theme/tsconfig.json +++ b/packages/theming/default-theme/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/theming/theme-tokens/tsconfig.json b/packages/theming/theme-tokens/tsconfig.json index 854074dd75d..97fa2342172 100644 --- a/packages/theming/theme-tokens/tsconfig.json +++ b/packages/theming/theme-tokens/tsconfig.json @@ -1,8 +1,9 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { "outDir": "lib", - "resolveJsonModule": true + "resolveJsonModule": true, + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/theming/theme-types/tsconfig.json b/packages/theming/theme-types/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/theming/theme-types/tsconfig.json +++ b/packages/theming/theme-types/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/theming/theming-utils/tsconfig.json b/packages/theming/theming-utils/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/theming/theming-utils/tsconfig.json +++ b/packages/theming/theming-utils/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/theming/win32-theme/tsconfig.json b/packages/theming/win32-theme/tsconfig.json index 854074dd75d..97fa2342172 100644 --- a/packages/theming/win32-theme/tsconfig.json +++ b/packages/theming/win32-theme/tsconfig.json @@ -1,8 +1,9 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { "outDir": "lib", - "resolveJsonModule": true + "resolveJsonModule": true, + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/utils/adapters/tsconfig.json b/packages/utils/adapters/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/utils/adapters/tsconfig.json +++ b/packages/utils/adapters/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/utils/interactive-hooks/tsconfig.json b/packages/utils/interactive-hooks/tsconfig.json index b2b278d2ca1..f2b843036a5 100644 --- a/packages/utils/interactive-hooks/tsconfig.json +++ b/packages/utils/interactive-hooks/tsconfig.json @@ -1,8 +1,9 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { "outDir": "lib", - "lib": ["es2022", "dom"] + "lib": ["es2022", "dom"], + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/utils/styling/tsconfig.json b/packages/utils/styling/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/utils/styling/tsconfig.json +++ b/packages/utils/styling/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/utils/test-tools/tsconfig.json b/packages/utils/test-tools/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/utils/test-tools/tsconfig.json +++ b/packages/utils/test-tools/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/packages/utils/tokens/tsconfig.json b/packages/utils/tokens/tsconfig.json index 89a07a88a93..83975437e4d 100644 --- a/packages/utils/tokens/tsconfig.json +++ b/packages/utils/tokens/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@fluentui-react-native/scripts/configs/tsconfig.json", + "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": ["src"] } diff --git a/scripts/package.json b/scripts/package.json index 861b2c2d8d6..a02edab2a08 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -15,11 +15,12 @@ "main": "./src/index.js", "exports": { ".": { + "require": "./src/index.js", "default": "./src/index.js" }, + "./package.json": "./package.json", "./tsconfig": "./configs/tsconfig/tsconfig.json", - "./tsconfig-strict": "./configs/tsconfig/tsconfig.strict.json", - "./package.json": "./package.json" + "./tsconfig-strict": "./configs/tsconfig/tsconfig.strict.json" }, "scripts": { "build": "tsgo", @@ -35,6 +36,7 @@ "@rnx-kit/align-deps": "catalog:", "@rnx-kit/config": "catalog:", "@rnx-kit/jest-preset": "catalog:", + "@rnx-kit/lint-json": "^0.1.0", "@rnx-kit/oxlint-config": "^1.0.3", "@rnx-kit/reporter": "catalog:", "@rnx-kit/tools-packages": "catalog:", diff --git a/scripts/src/tasks/lintPackage.ts b/scripts/src/tasks/lintPackage.ts index 3904a36997e..cd377a62f7b 100644 --- a/scripts/src/tasks/lintPackage.ts +++ b/scripts/src/tasks/lintPackage.ts @@ -6,6 +6,7 @@ import { isFixMode } from '../utils/env.ts'; import { runAlignDeps } from './runAlignDeps.ts'; import { DepCheckRunner } from './depcheck.ts'; import { getCatalog } from '../utils/getCatalog.ts'; +import { createJSONValidator } from '@rnx-kit/lint-json'; import fs from 'node:fs'; import path from 'node:path'; @@ -74,6 +75,7 @@ export class LintPackageCommand extends Command { this.checkDevDeps(); this.checkPeerDeps(); this.checkRnxKitConfig(); + this.checkTsConfig(); await this.checkCatalogs(); // report the results for the custom linting @@ -453,6 +455,26 @@ export class LintPackageCommand extends Command { } } + private checkTsConfig() { + const tsconfigPath = path.join(this.projRoot.root, 'tsconfig.json'); + if (fs.existsSync(tsconfigPath)) { + const validator = createJSONValidator(tsconfigPath, undefined, { fix: this.fix, reportError: this.error }); + const compilerOptions = validator.raw.compilerOptions; + if (typeof compilerOptions === 'object' && compilerOptions !== null && !Array.isArray(compilerOptions)) { + if (!compilerOptions.noEmit) { + validator.enforce('compilerOptions.rootDir', 'src'); + validator.enforce('compilerOptions.outDir', 'lib'); + } + } + validator.finish(); + } + } + + private error = (message: string) => { + console.error(`- Error: ${message}`); + this.issues++; + }; + private warnIf(check: boolean, message: string, fixFn?: () => void) { if (check) { if (this.fix && fixFn) { @@ -472,8 +494,7 @@ export class LintPackageCommand extends Command { this.changed = true; console.log(`- Fixed: ${message}`); } else { - console.error(`- Error: ${message}`); - this.issues++; + this.error(message); } } } diff --git a/yarn.lock b/yarn.lock index b6c27d1c6fc..64647d6164f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5057,6 +5057,7 @@ __metadata: "@rnx-kit/align-deps": "catalog:" "@rnx-kit/config": "catalog:" "@rnx-kit/jest-preset": "catalog:" + "@rnx-kit/lint-json": "npm:^0.1.0" "@rnx-kit/oxlint-config": "npm:^1.0.3" "@rnx-kit/reporter": "catalog:" "@rnx-kit/tools-packages": "catalog:" @@ -9659,6 +9660,16 @@ __metadata: languageName: node linkType: hard +"@rnx-kit/lint-json@npm:^0.1.0": + version: 0.1.0 + resolution: "@rnx-kit/lint-json@npm:0.1.0" + dependencies: + "@rnx-kit/tools-filesystem": "npm:^0.2.0" + "@rnx-kit/tools-formatting": "npm:^0.1.0" + checksum: 10c0/d650dfd38388d838bbf383f8727438b546147cfa742b99374a3380af8c3f3d0e1773109e936e92889695e34c389f01166ffa699ec1320b320b36c2a8ceda7301 + languageName: node + linkType: hard + "@rnx-kit/lint-lockfile@npm:^0.1.3": version: 0.1.3 resolution: "@rnx-kit/lint-lockfile@npm:0.1.3" @@ -9873,6 +9884,13 @@ __metadata: languageName: node linkType: hard +"@rnx-kit/tools-formatting@npm:^0.1.0": + version: 0.1.0 + resolution: "@rnx-kit/tools-formatting@npm:0.1.0" + checksum: 10c0/50bb60a782bc6492d7d3815450e509be3692d07692e03752e4f09688778b773808b5290c841043821b25af081ca6033e346e6486bae7717ce381440b53ae04fb + languageName: node + linkType: hard + "@rnx-kit/tools-language@npm:^3.0.1": version: 3.0.1 resolution: "@rnx-kit/tools-language@npm:3.0.1" @@ -9948,10 +9966,10 @@ __metadata: languageName: node linkType: hard -"@rnx-kit/tsconfig@npm:^3.0.0": - version: 3.0.0 - resolution: "@rnx-kit/tsconfig@npm:3.0.0" - checksum: 10c0/87725a8b4bff64e998f1babfde4982aab3ec22538d0bde67f4980c019199741a91e796ba047d8cfafb538af3c6c07c1ae07239c9b3d73fe7ba30ab36cfbfe984 +"@rnx-kit/tsconfig@npm:^3.0.3": + version: 3.0.3 + resolution: "@rnx-kit/tsconfig@npm:3.0.3" + checksum: 10c0/6914e21af5975f5c9793d5a9651d735e73b47595f68c0982e3d7350a07a677be9e221b6e5a4d1e1c607986131e44579af9d5a1c151ba78ba615d945c5eecf621 languageName: node linkType: hard From 8c3a0ad4517ab51a4545298b20933de935b7c827 Mon Sep 17 00:00:00 2001 From: Jason Morse Date: Wed, 6 May 2026 17:36:57 -0700 Subject: [PATCH 3/7] fix erasable syntax and no default override errors --- .../pages/ActivityIndicatorPageObject.ts | 2 +- apps/E2E/src/Avatar/pages/AvatarPageObject.ts | 4 +- .../src/Badge/pages/BasicBadgePageObject.ts | 4 +- .../pages/ButtonLegacyPageObject.ts | 4 +- .../src/ButtonV1/pages/ButtonV1PageObject.ts | 4 +- .../Callout/pages/CalloutPageObject.win.ts | 2 +- .../pages/CheckboxLegacyPageObject.ts | 4 +- .../CheckboxV1/pages/CheckboxV1PageObject.ts | 4 +- apps/E2E/src/Chip/pages/ChipPageObject.ts | 2 +- apps/E2E/src/Drawer/pages/DrawerPageObject.ts | 2 +- .../pages/FocusTrapZonePageObject.win.ts | 2 +- .../FocusZone/pages/FocusZonePageObject.ts | 2 +- .../IconLegacy/pages/IconLegacyPageObject.ts | 4 +- apps/E2E/src/IconV1/pages/IconV1PageObject.ts | 4 +- apps/E2E/src/Input/pages/InputPageObject.ts | 2 +- .../LinkLegacy/pages/LinkLegacyPageObject.ts | 4 +- apps/E2E/src/LinkV1/pages/LinkV1PageObject.ts | 4 +- .../src/Overflow/pages/OverflowPageObject.ts | 2 +- .../src/Persona/pages/PersonaPageObject.ts | 2 +- .../pages/PersonaCoinPageObject.ts | 2 +- .../Pressable/pages/PressablePageObject.ts | 2 +- .../pages/RadioGroupV1PageObject.ts | 4 +- .../Separator/pages/SeparatorPageObject.ts | 2 +- .../src/Shimmer/pages/ShimmerPageObject.ts | 2 +- .../src/Spinner/pages/SpinnerPageObject.ts | 2 +- apps/E2E/src/Svg/pages/SvgPageObject.ts | 2 +- apps/E2E/src/Switch/pages/SwitchPageObject.ts | 4 +- .../src/TabList/pages/TabListPageObject.ts | 2 +- .../src/TextV1/pages/TextV1PageObject.win.ts | 4 +- apps/E2E/src/Theme/pages/ThemePageObject.ts | 2 +- .../pages/VibrancyViewPageObject.ts | 2 +- .../pages/NativeTestingPageObject.win.ts | 4 +- apps/E2E/src/common/consts.ts | 182 +++++++++--------- apps/win32-81/src/index.js | 6 + apps/win32-81/tsconfig.json | 5 +- apps/win32/src/index.js | 7 + apps/win32/tsconfig.json | 5 +- .../components/Menu/src/Menu/Menu.types.ts | 11 +- .../RadioGroup/src/Radio/useRadio.win32.ts | 13 +- .../src/legacy/RadioButton.win32.tsx | 13 +- .../foundation-compose/src/useStyling.ts | 2 +- .../theming-react-native/src/ThemeLayer.tsx | 4 +- .../theming-react-native/tsconfig.json | 2 +- packages/experimental/Avatar/tsconfig.json | 3 +- 44 files changed, 184 insertions(+), 161 deletions(-) create mode 100644 apps/win32-81/src/index.js create mode 100644 apps/win32/src/index.js diff --git a/apps/E2E/src/ActivityIndicator/pages/ActivityIndicatorPageObject.ts b/apps/E2E/src/ActivityIndicator/pages/ActivityIndicatorPageObject.ts index 50e1753dd2e..a2f76eb700b 100644 --- a/apps/E2E/src/ActivityIndicator/pages/ActivityIndicatorPageObject.ts +++ b/apps/E2E/src/ActivityIndicator/pages/ActivityIndicatorPageObject.ts @@ -9,7 +9,7 @@ class ActivityIndicatorPageObject extends BasePage { return ACTIVITY_INDICATOR_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return ACTIVITY_INDICATOR_TEST_COMPONENT; } diff --git a/apps/E2E/src/Avatar/pages/AvatarPageObject.ts b/apps/E2E/src/Avatar/pages/AvatarPageObject.ts index 3e755f3da52..44e8cf0a955 100644 --- a/apps/E2E/src/Avatar/pages/AvatarPageObject.ts +++ b/apps/E2E/src/Avatar/pages/AvatarPageObject.ts @@ -12,11 +12,11 @@ class AvatarPageObject extends BasePage { return AVATAR_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return AVATAR_TEST_COMPONENT; } - get _secondaryComponentName() { + override get _secondaryComponentName() { return AVATAR_SECONDARY_TEST_COMPONENT; } } diff --git a/apps/E2E/src/Badge/pages/BasicBadgePageObject.ts b/apps/E2E/src/Badge/pages/BasicBadgePageObject.ts index 15ae2e66bbb..e1742406891 100644 --- a/apps/E2E/src/Badge/pages/BasicBadgePageObject.ts +++ b/apps/E2E/src/Badge/pages/BasicBadgePageObject.ts @@ -13,11 +13,11 @@ class BasicBadgePageObject extends BasePage { return BADGE_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return BADGE_TEST_COMPONENT; } - get _secondaryComponentName() { + override get _secondaryComponentName() { return BADGE_SECONDARY_TEST_COMPONENT; } } diff --git a/apps/E2E/src/ButtonLegacy/pages/ButtonLegacyPageObject.ts b/apps/E2E/src/ButtonLegacy/pages/ButtonLegacyPageObject.ts index 50f0f895380..7640ffb6a06 100644 --- a/apps/E2E/src/ButtonLegacy/pages/ButtonLegacyPageObject.ts +++ b/apps/E2E/src/ButtonLegacy/pages/ButtonLegacyPageObject.ts @@ -32,11 +32,11 @@ class ButtonLegacyPageObject extends BasePage { return BUTTON_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return BUTTON_TEST_COMPONENT_DEPRECATED; } - get _secondaryComponentName() { + override get _secondaryComponentName() { return BUTTON_NO_A11Y_LABEL_COMPONENT_DEPRECATED; } diff --git a/apps/E2E/src/ButtonV1/pages/ButtonV1PageObject.ts b/apps/E2E/src/ButtonV1/pages/ButtonV1PageObject.ts index 0b8af3a4ce3..3e213a7ef95 100644 --- a/apps/E2E/src/ButtonV1/pages/ButtonV1PageObject.ts +++ b/apps/E2E/src/ButtonV1/pages/ButtonV1PageObject.ts @@ -31,11 +31,11 @@ class ButtonV1PageObject extends BasePage { return BUTTON_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return BUTTON_TEST_COMPONENT; } - get _secondaryComponentName() { + override get _secondaryComponentName() { return BUTTON_NO_A11Y_LABEL_COMPONENT; } diff --git a/apps/E2E/src/Callout/pages/CalloutPageObject.win.ts b/apps/E2E/src/Callout/pages/CalloutPageObject.win.ts index c18cb4ce4e1..862eb665e95 100644 --- a/apps/E2E/src/Callout/pages/CalloutPageObject.win.ts +++ b/apps/E2E/src/Callout/pages/CalloutPageObject.win.ts @@ -33,7 +33,7 @@ class CalloutPageObject extends BasePage { return CALLOUT_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return CALLOUT_TEST_COMPONENT; } diff --git a/apps/E2E/src/CheckboxLegacy/pages/CheckboxLegacyPageObject.ts b/apps/E2E/src/CheckboxLegacy/pages/CheckboxLegacyPageObject.ts index ec2241ea2e6..416b2ad14e8 100644 --- a/apps/E2E/src/CheckboxLegacy/pages/CheckboxLegacyPageObject.ts +++ b/apps/E2E/src/CheckboxLegacy/pages/CheckboxLegacyPageObject.ts @@ -53,11 +53,11 @@ class CheckboxLegacyPageObject extends BasePage { return CHECKBOX_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return CHECKBOX_TEST_COMPONENT; } - get _secondaryComponentName() { + override get _secondaryComponentName() { return CHECKBOX_NO_A11Y_LABEL_COMPONENT; } diff --git a/apps/E2E/src/CheckboxV1/pages/CheckboxV1PageObject.ts b/apps/E2E/src/CheckboxV1/pages/CheckboxV1PageObject.ts index 0844cd319b5..3228d27dffd 100644 --- a/apps/E2E/src/CheckboxV1/pages/CheckboxV1PageObject.ts +++ b/apps/E2E/src/CheckboxV1/pages/CheckboxV1PageObject.ts @@ -60,11 +60,11 @@ class CheckboxV1PageObject extends BasePage { return CHECKBOXV1_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return CHECKBOXV1_TEST_COMPONENT; } - get _secondaryComponentName() { + override get _secondaryComponentName() { return CHECKBOXV1_NO_A11Y_LABEL_COMPONENT; } diff --git a/apps/E2E/src/Chip/pages/ChipPageObject.ts b/apps/E2E/src/Chip/pages/ChipPageObject.ts index 133cea6987b..3ad5c5034ee 100644 --- a/apps/E2E/src/Chip/pages/ChipPageObject.ts +++ b/apps/E2E/src/Chip/pages/ChipPageObject.ts @@ -21,7 +21,7 @@ class ChipPageObject extends BasePage { return CHIP_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return CHIP_TEST_COMPONENT; } diff --git a/apps/E2E/src/Drawer/pages/DrawerPageObject.ts b/apps/E2E/src/Drawer/pages/DrawerPageObject.ts index 947e1c9368b..0dde7623ba5 100644 --- a/apps/E2E/src/Drawer/pages/DrawerPageObject.ts +++ b/apps/E2E/src/Drawer/pages/DrawerPageObject.ts @@ -15,7 +15,7 @@ class DrawerPageObject extends BasePage { return Drawer_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return Drawer_TEST_COMPONENT; } diff --git a/apps/E2E/src/FocusTrapZone/pages/FocusTrapZonePageObject.win.ts b/apps/E2E/src/FocusTrapZone/pages/FocusTrapZonePageObject.win.ts index b6e9844de60..dffc2a4924d 100644 --- a/apps/E2E/src/FocusTrapZone/pages/FocusTrapZonePageObject.win.ts +++ b/apps/E2E/src/FocusTrapZone/pages/FocusTrapZonePageObject.win.ts @@ -9,7 +9,7 @@ class FocusTrapZonePageObject extends BasePage { return FOCUSTRAPZONE_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return FOCUSTRAPZONE_TEST_COMPONENT; } diff --git a/apps/E2E/src/FocusZone/pages/FocusZonePageObject.ts b/apps/E2E/src/FocusZone/pages/FocusZonePageObject.ts index f19f9355173..20be39d4365 100644 --- a/apps/E2E/src/FocusZone/pages/FocusZonePageObject.ts +++ b/apps/E2E/src/FocusZone/pages/FocusZonePageObject.ts @@ -92,7 +92,7 @@ class FocusZonePageObject extends BasePage { return FOCUSZONE_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return FOCUSZONE_TEST_COMPONENT; } diff --git a/apps/E2E/src/IconLegacy/pages/IconLegacyPageObject.ts b/apps/E2E/src/IconLegacy/pages/IconLegacyPageObject.ts index 027b2ac49fc..bd373886dc0 100644 --- a/apps/E2E/src/IconLegacy/pages/IconLegacyPageObject.ts +++ b/apps/E2E/src/IconLegacy/pages/IconLegacyPageObject.ts @@ -9,11 +9,11 @@ class IconLegacyPageObject extends BasePage { return ICON_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return ICON_TEST_COMPONENT; } - get _secondaryComponentName() { + override get _secondaryComponentName() { return ICON_NO_A11Y_LABEL_COMPONENT; } diff --git a/apps/E2E/src/IconV1/pages/IconV1PageObject.ts b/apps/E2E/src/IconV1/pages/IconV1PageObject.ts index b0031b0d28a..2445d219197 100644 --- a/apps/E2E/src/IconV1/pages/IconV1PageObject.ts +++ b/apps/E2E/src/IconV1/pages/IconV1PageObject.ts @@ -9,11 +9,11 @@ class IconV1PageObject extends BasePage { return ICON_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return ICON_TEST_COMPONENT; } - get _secondaryComponentName() { + override get _secondaryComponentName() { return ICON_FONT_TEST_COMPONENT; } diff --git a/apps/E2E/src/Input/pages/InputPageObject.ts b/apps/E2E/src/Input/pages/InputPageObject.ts index 10141be22de..7d1021d7bb5 100644 --- a/apps/E2E/src/Input/pages/InputPageObject.ts +++ b/apps/E2E/src/Input/pages/InputPageObject.ts @@ -32,7 +32,7 @@ class InputPageObject extends BasePage { return INPUT_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return INPUT_TEST_COMPONENT; } diff --git a/apps/E2E/src/LinkLegacy/pages/LinkLegacyPageObject.ts b/apps/E2E/src/LinkLegacy/pages/LinkLegacyPageObject.ts index a8c30260edd..303d6f6e083 100644 --- a/apps/E2E/src/LinkLegacy/pages/LinkLegacyPageObject.ts +++ b/apps/E2E/src/LinkLegacy/pages/LinkLegacyPageObject.ts @@ -9,11 +9,11 @@ class LinkLegacyPageObject extends BasePage { return LINK_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return LINK_TEST_COMPONENT; } - get _secondaryComponentName() { + override get _secondaryComponentName() { return LINK_NO_A11Y_LABEL_COMPONENT; } diff --git a/apps/E2E/src/LinkV1/pages/LinkV1PageObject.ts b/apps/E2E/src/LinkV1/pages/LinkV1PageObject.ts index 21e0f4e01a4..84eaedeb1cb 100644 --- a/apps/E2E/src/LinkV1/pages/LinkV1PageObject.ts +++ b/apps/E2E/src/LinkV1/pages/LinkV1PageObject.ts @@ -17,11 +17,11 @@ class LinkV1PageObject extends BasePage { return LINKV1_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return LINKV1_TEST_COMPONENT; } - get _secondaryComponentName() { + override get _secondaryComponentName() { return LINKV1_NO_A11Y_LABEL_COMPONENT; } diff --git a/apps/E2E/src/Overflow/pages/OverflowPageObject.ts b/apps/E2E/src/Overflow/pages/OverflowPageObject.ts index bcdc8976318..ca4e01573bb 100644 --- a/apps/E2E/src/Overflow/pages/OverflowPageObject.ts +++ b/apps/E2E/src/Overflow/pages/OverflowPageObject.ts @@ -98,7 +98,7 @@ class OverflowPageObject extends BasePage { return OVERFLOW_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return OVERFLOW_TEST_COMPONENT; } } diff --git a/apps/E2E/src/Persona/pages/PersonaPageObject.ts b/apps/E2E/src/Persona/pages/PersonaPageObject.ts index 9134aea3fd1..02467ffa8a8 100644 --- a/apps/E2E/src/Persona/pages/PersonaPageObject.ts +++ b/apps/E2E/src/Persona/pages/PersonaPageObject.ts @@ -9,7 +9,7 @@ class PersonaPageObject extends BasePage { return PERSONA_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return PERSONA_TEST_COMPONENT; } diff --git a/apps/E2E/src/PersonaCoin/pages/PersonaCoinPageObject.ts b/apps/E2E/src/PersonaCoin/pages/PersonaCoinPageObject.ts index bff2ab91ed9..671c8243401 100644 --- a/apps/E2E/src/PersonaCoin/pages/PersonaCoinPageObject.ts +++ b/apps/E2E/src/PersonaCoin/pages/PersonaCoinPageObject.ts @@ -9,7 +9,7 @@ class PersonaCoinPageObject extends BasePage { return PERSONACOIN_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return PERSONACOIN_TEST_COMPONENT; } diff --git a/apps/E2E/src/Pressable/pages/PressablePageObject.ts b/apps/E2E/src/Pressable/pages/PressablePageObject.ts index 2990d0a6806..298d89eb143 100644 --- a/apps/E2E/src/Pressable/pages/PressablePageObject.ts +++ b/apps/E2E/src/Pressable/pages/PressablePageObject.ts @@ -9,7 +9,7 @@ class PressablePageObject extends BasePage { return PRESSABLE_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return PRESSABLE_TEST_COMPONENT; } diff --git a/apps/E2E/src/RadioGroupV1/pages/RadioGroupV1PageObject.ts b/apps/E2E/src/RadioGroupV1/pages/RadioGroupV1PageObject.ts index c7a5dbbc768..b3dbfa44377 100644 --- a/apps/E2E/src/RadioGroupV1/pages/RadioGroupV1PageObject.ts +++ b/apps/E2E/src/RadioGroupV1/pages/RadioGroupV1PageObject.ts @@ -72,11 +72,11 @@ class RadioGroupV1Page extends BasePage { return RADIOGROUPV1_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return RADIOGROUPV1_TEST_COMPONENT; } - get _secondaryComponentName() { + override get _secondaryComponentName() { return RADIOGROUPV1_NO_A11Y_LABEL_COMPONENT; } diff --git a/apps/E2E/src/Separator/pages/SeparatorPageObject.ts b/apps/E2E/src/Separator/pages/SeparatorPageObject.ts index 0df94882f56..6658dc709fd 100644 --- a/apps/E2E/src/Separator/pages/SeparatorPageObject.ts +++ b/apps/E2E/src/Separator/pages/SeparatorPageObject.ts @@ -9,7 +9,7 @@ class SeparatorPageObject extends BasePage { return SEPARATOR_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return SEPARATOR_TEST_COMPONENT; } diff --git a/apps/E2E/src/Shimmer/pages/ShimmerPageObject.ts b/apps/E2E/src/Shimmer/pages/ShimmerPageObject.ts index 82f82fc6f6a..084e009f11f 100644 --- a/apps/E2E/src/Shimmer/pages/ShimmerPageObject.ts +++ b/apps/E2E/src/Shimmer/pages/ShimmerPageObject.ts @@ -9,7 +9,7 @@ class ShimmerPageObject extends BasePage { return SHIMMER_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return SHIMMER_TEST_COMPONENT; } diff --git a/apps/E2E/src/Spinner/pages/SpinnerPageObject.ts b/apps/E2E/src/Spinner/pages/SpinnerPageObject.ts index c1ad5209627..d39956c8eac 100644 --- a/apps/E2E/src/Spinner/pages/SpinnerPageObject.ts +++ b/apps/E2E/src/Spinner/pages/SpinnerPageObject.ts @@ -9,7 +9,7 @@ class SpinnerPageObject extends BasePage { return SPINNER_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return SPINNER_TEST_COMPONENT; } diff --git a/apps/E2E/src/Svg/pages/SvgPageObject.ts b/apps/E2E/src/Svg/pages/SvgPageObject.ts index 0577f625cf6..01344103b3a 100644 --- a/apps/E2E/src/Svg/pages/SvgPageObject.ts +++ b/apps/E2E/src/Svg/pages/SvgPageObject.ts @@ -9,7 +9,7 @@ class SvgPageObject extends BasePage { return SVG_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return SVG_TEST_COMPONENT; } diff --git a/apps/E2E/src/Switch/pages/SwitchPageObject.ts b/apps/E2E/src/Switch/pages/SwitchPageObject.ts index a9af101fef2..2b03898b35b 100644 --- a/apps/E2E/src/Switch/pages/SwitchPageObject.ts +++ b/apps/E2E/src/Switch/pages/SwitchPageObject.ts @@ -35,11 +35,11 @@ class SwitchPageObject extends BasePage { return SWITCH_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return SWITCH_TEST_COMPONENT; } - get _secondaryComponentName() { + override get _secondaryComponentName() { return SWITCH_NO_A11Y_LABEL_COMPONENT; } diff --git a/apps/E2E/src/TabList/pages/TabListPageObject.ts b/apps/E2E/src/TabList/pages/TabListPageObject.ts index 3bf7a5412c7..8abe43df547 100644 --- a/apps/E2E/src/TabList/pages/TabListPageObject.ts +++ b/apps/E2E/src/TabList/pages/TabListPageObject.ts @@ -66,7 +66,7 @@ class TabListPageObject extends BasePage { return HOMEPAGE_TABLIST_BUTTON; } - get _primaryComponentName() { + override get _primaryComponentName() { return TABLIST_TEST_COMPONENT; } } diff --git a/apps/E2E/src/TextV1/pages/TextV1PageObject.win.ts b/apps/E2E/src/TextV1/pages/TextV1PageObject.win.ts index 61767a339a3..4f739c2d8b3 100644 --- a/apps/E2E/src/TextV1/pages/TextV1PageObject.win.ts +++ b/apps/E2E/src/TextV1/pages/TextV1PageObject.win.ts @@ -9,11 +9,11 @@ class TextV1PageObject extends BasePage { return TEXTV1_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return TEXTV1_TEST_COMPONENT; } - get _secondaryComponentName() { + override get _secondaryComponentName() { return TEXTV1_NO_A11Y_LABEL_COMPONENT; } diff --git a/apps/E2E/src/Theme/pages/ThemePageObject.ts b/apps/E2E/src/Theme/pages/ThemePageObject.ts index 7a41be18c2a..91bb8a62974 100644 --- a/apps/E2E/src/Theme/pages/ThemePageObject.ts +++ b/apps/E2E/src/Theme/pages/ThemePageObject.ts @@ -9,7 +9,7 @@ class ThemePageObject extends BasePage { return THEME_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return THEME_TEST_COMPONENT; } diff --git a/apps/E2E/src/VibrancyView/pages/VibrancyViewPageObject.ts b/apps/E2E/src/VibrancyView/pages/VibrancyViewPageObject.ts index e21d3710177..9faa07050d9 100644 --- a/apps/E2E/src/VibrancyView/pages/VibrancyViewPageObject.ts +++ b/apps/E2E/src/VibrancyView/pages/VibrancyViewPageObject.ts @@ -9,7 +9,7 @@ class VibrancyViewTestPage extends BasePage { return VIBRANCYVIEW_TESTPAGE; } - get _primaryComponentName() { + override get _primaryComponentName() { return VIBRANCYVIEW_TEST_COMPONENT; } diff --git a/apps/E2E/src/common/NativeTesting/pages/NativeTestingPageObject.win.ts b/apps/E2E/src/common/NativeTesting/pages/NativeTestingPageObject.win.ts index b4a7f518dab..584f91e2ce9 100644 --- a/apps/E2E/src/common/NativeTesting/pages/NativeTestingPageObject.win.ts +++ b/apps/E2E/src/common/NativeTesting/pages/NativeTestingPageObject.win.ts @@ -45,11 +45,11 @@ class NativeTestingPageObject extends BasePage { return foundValidButton; } - get _testPage(): ChainablePromiseElement { + override get _testPage(): ChainablePromiseElement { throw new Error('You are trying to read the _testPage getter for NativeTestingPageObject, which is not implemented.'); } - get _pageButton(): ChainablePromiseElement { + override get _pageButton(): ChainablePromiseElement { throw new Error('You are trying to read the _pageButton getter for NativeTestingPageObject, which is not implemented.'); } diff --git a/apps/E2E/src/common/consts.ts b/apps/E2E/src/common/consts.ts index c11eac4d1ac..7152ef895b7 100644 --- a/apps/E2E/src/common/consts.ts +++ b/apps/E2E/src/common/consts.ts @@ -29,29 +29,29 @@ export const ANDROID_EDITTEXT = 'android.widget.EditText'; export const BOOT_APP_TIMEOUT = 60000; export const PAGE_TIMEOUT = 15000; -// eslint-disable-next-line @rnx-kit/no-const-enum -export const enum Attribute { - AccessibilityHint = 'HelpText', - AccessibilityLabel = 'Name', - AccessibilityRole = 'ControlType', - ExpandCollapseState = 'ExpandCollapse.ExpandCollapseState', - IsEnabled = 'IsEnabled', - IsFocused = 'HasKeyboardFocus', - IsRequiredForForm = 'IsRequiredForForm', - IsTogglePatternAvailable = 'IsTogglePatternAvailable', - TestID = 'AutomationId', - ToggleState = 'Toggle.ToggleState', -} +export const Attribute = { + AccessibilityHint: 'HelpText', + AccessibilityLabel: 'Name', + AccessibilityRole: 'ControlType', + ExpandCollapseState: 'ExpandCollapse.ExpandCollapseState', + IsEnabled: 'IsEnabled', + IsFocused: 'HasKeyboardFocus', + IsRequiredForForm: 'IsRequiredForForm', + IsTogglePatternAvailable: 'IsTogglePatternAvailable', + TestID: 'AutomationId', + ToggleState: 'Toggle.ToggleState', +} as const; +export type Attribute = (typeof Attribute)[keyof typeof Attribute]; /* Android Element Attributes - https://github.com/appium/appium-uiautomator2-driver#element-attributes */ -// eslint-disable-next-line @rnx-kit/no-const-enum -export const enum AndroidAttribute { - AccessibilityLabel = 'content-desc', - Class = 'class', - Clickable = 'clickable', - Checked = 'checked', - Text = 'text', -} +export const AndroidAttribute = { + AccessibilityLabel: 'content-desc', + Class: 'class', + Clickable: 'clickable', + Checked: 'checked', + Text: 'text', +} as const; +export type AndroidAttribute = (typeof AndroidAttribute)[keyof typeof AndroidAttribute]; export const attributeToEnumName = { [Attribute.AccessibilityHint]: 'AccessibilityHint', @@ -74,80 +74,80 @@ export const androidAttributeToEnumName = { [AndroidAttribute.Text]: 'text', }; -// eslint-disable-next-line @rnx-kit/no-const-enum -export const enum AttributeValue { - on = '1', - off = '0', - true = 'True', - false = 'False', - expanded = 'Expanded', - collapsed = 'Collapsed', -} +export const AttributeValue = { + on: '1', + off: '0', + true: 'True', + false: 'False', + expanded: 'Expanded', + collapsed: 'Collapsed', +} as const; +export type AttributeValue = (typeof AttributeValue)[keyof typeof AttributeValue]; /* Keyboard Key Constants */ -// eslint-disable-next-line @rnx-kit/no-const-enum -export const enum Keys { - NULL = '\uE000', - CANCEL = '\uE001', // ^break - HELP = '\uE002', - BACK_SPACE = '\uE003', - TAB = '\uE004', - CLEAR = '\uE005', - RETURN = '\uE006', - ENTER = '\uE007', - SHIFT = '\uE008', - CONTROL = '\uE009', - ALT = '\uE00A', - PAUSE = '\uE00B', - ESCAPE = '\uE00C', - SPACE = '\uE00D', - PAGE_UP = '\uE00E', - PAGE_DOWN = '\uE00F', - END = '\uE010', - HOME = '\uE011', - ARROW_LEFT = '\uE012', - LEFT = '\uE012', - ARROW_UP = '\uE013', - UP = '\uE013', - ARROW_RIGHT = '\uE014', - RIGHT = '\uE014', - ARROW_DOWN = '\uE015', - DOWN = '\uE015', - INSERT = '\uE016', - DELETE = '\uE017', - SEMICOLON = '\uE018', - EQUALS = '\uE019', +export const Keys = { + NULL: '\uE000', + CANCEL: '\uE001', // ^break + HELP: '\uE002', + BACK_SPACE: '\uE003', + TAB: '\uE004', + CLEAR: '\uE005', + RETURN: '\uE006', + ENTER: '\uE007', + SHIFT: '\uE008', + CONTROL: '\uE009', + ALT: '\uE00A', + PAUSE: '\uE00B', + ESCAPE: '\uE00C', + SPACE: '\uE00D', + PAGE_UP: '\uE00E', + PAGE_DOWN: '\uE00F', + END: '\uE010', + HOME: '\uE011', + ARROW_LEFT: '\uE012', + LEFT: '\uE012', + ARROW_UP: '\uE013', + UP: '\uE013', + ARROW_RIGHT: '\uE014', + RIGHT: '\uE014', + ARROW_DOWN: '\uE015', + DOWN: '\uE015', + INSERT: '\uE016', + DELETE: '\uE017', + SEMICOLON: '\uE018', + EQUALS: '\uE019', - NUMPAD0 = '\uE01A', // number pad keys - NUMPAD1 = '\uE01B', - NUMPAD2 = '\uE01C', - NUMPAD3 = '\uE01D', - NUMPAD4 = '\uE01E', - NUMPAD5 = '\uE01F', - NUMPAD6 = '\uE020', - NUMPAD7 = '\uE021', - NUMPAD8 = '\uE022', - NUMPAD9 = '\uE023', - MULTIPLY = '\uE024', - ADD = '\uE025', - SEPARATOR = '\uE026', - SUBTRACT = '\uE027', - DECIMAL = '\uE028', - DIVIDE = '\uE029', + NUMPAD0: '\uE01A', // number pad keys + NUMPAD1: '\uE01B', + NUMPAD2: '\uE01C', + NUMPAD3: '\uE01D', + NUMPAD4: '\uE01E', + NUMPAD5: '\uE01F', + NUMPAD6: '\uE020', + NUMPAD7: '\uE021', + NUMPAD8: '\uE022', + NUMPAD9: '\uE023', + MULTIPLY: '\uE024', + ADD: '\uE025', + SEPARATOR: '\uE026', + SUBTRACT: '\uE027', + DECIMAL: '\uE028', + DIVIDE: '\uE029', - F1 = '\uE031', // function keys - F2 = '\uE032', - F3 = '\uE033', - F4 = '\uE034', - F5 = '\uE035', - F6 = '\uE036', - F7 = '\uE037', - F8 = '\uE038', - F9 = '\uE039', - F10 = '\uE03A', - F11 = '\uE03B', - F12 = '\uE03C', -} + F1: '\uE031', // function keys + F2: '\uE032', + F3: '\uE033', + F4: '\uE034', + F5: '\uE035', + F6: '\uE036', + F7: '\uE037', + F8: '\uE038', + F9: '\uE039', + F10: '\uE03A', + F11: '\uE03B', + F12: '\uE03C', +} as const; +export type Keys = (typeof Keys)[keyof typeof Keys]; // Used for E2E testing on base page of FluentTester export const BASE_TESTPAGE = 'Base_TestPage'; diff --git a/apps/win32-81/src/index.js b/apps/win32-81/src/index.js new file mode 100644 index 00000000000..b3c1356ca43 --- /dev/null +++ b/apps/win32-81/src/index.js @@ -0,0 +1,6 @@ +'use strict'; +import { AppRegistry } from 'react-native'; +import { FluentTesterApp } from '@fluentui-react-native/tester-core'; +AppRegistry.registerComponent('FluentTester', () => FluentTesterApp); +export default FluentTesterApp; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/apps/win32-81/tsconfig.json b/apps/win32-81/tsconfig.json index 3ebb4fbcb53..866cca9fb58 100644 --- a/apps/win32-81/tsconfig.json +++ b/apps/win32-81/tsconfig.json @@ -1,4 +1,7 @@ { "extends": "@fluentui-react-native/scripts/tsconfig", - "include": ["src"] + "compilerOptions": { + "noEmit": true + }, + "include": ["index.js"] } diff --git a/apps/win32/src/index.js b/apps/win32/src/index.js new file mode 100644 index 00000000000..a68a5b550e6 --- /dev/null +++ b/apps/win32/src/index.js @@ -0,0 +1,7 @@ +'use strict'; +Object.defineProperty(exports, "__esModule", { value: true }); +const react_native_1 = require("react-native"); +const tester_core_1 = require("@fluentui-react-native/tester-core"); +react_native_1.AppRegistry.registerComponent('FluentTester', () => tester_core_1.FluentTesterApp); +exports.default = tester_core_1.FluentTesterApp; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/apps/win32/tsconfig.json b/apps/win32/tsconfig.json index 3ebb4fbcb53..866cca9fb58 100644 --- a/apps/win32/tsconfig.json +++ b/apps/win32/tsconfig.json @@ -1,4 +1,7 @@ { "extends": "@fluentui-react-native/scripts/tsconfig", - "include": ["src"] + "compilerOptions": { + "noEmit": true + }, + "include": ["index.js"] } diff --git a/packages/components/Menu/src/Menu/Menu.types.ts b/packages/components/Menu/src/Menu/Menu.types.ts index 8591c6b4791..a257c32f2c2 100644 --- a/packages/components/Menu/src/Menu/Menu.types.ts +++ b/packages/components/Menu/src/Menu/Menu.types.ts @@ -67,8 +67,9 @@ export interface MenuState extends MenuProps { testID?: string; } -export enum AndroidMenuStates { - Hidden, - Animating, - Shown, -} +export const AndroidMenuStates = { + Hidden: 0, + Animating: 1, + Shown: 2, +} as const; +export type AndroidMenuStates = (typeof AndroidMenuStates)[keyof typeof AndroidMenuStates]; diff --git a/packages/components/RadioGroup/src/Radio/useRadio.win32.ts b/packages/components/RadioGroup/src/Radio/useRadio.win32.ts index 9b939c35495..c99d57561ed 100644 --- a/packages/components/RadioGroup/src/Radio/useRadio.win32.ts +++ b/packages/components/RadioGroup/src/Radio/useRadio.win32.ts @@ -11,12 +11,13 @@ import { useRadioGroupContext } from '../RadioGroup/radioGroupContext'; const defaultAccessibilityActions = [{ name: 'Select' }]; -enum DirectionalArrowKeys { - ArrowUp = 'ArrowUp', - ArrowDown = 'ArrowDown', - ArrowRight = 'ArrowRight', - ArrowLeft = 'ArrowLeft', -} +const DirectionalArrowKeys = { + ArrowUp: 'ArrowUp', + ArrowDown: 'ArrowDown', + ArrowRight: 'ArrowRight', + ArrowLeft: 'ArrowLeft', +} as const; +type DirectionalArrowKeys = (typeof DirectionalArrowKeys)[keyof typeof DirectionalArrowKeys]; export const useRadio = (props: RadioProps): RadioInfo => { const defaultComponentRef = React.useRef(null); diff --git a/packages/components/RadioGroup/src/legacy/RadioButton.win32.tsx b/packages/components/RadioGroup/src/legacy/RadioButton.win32.tsx index 4328f89f179..f1499939e0e 100644 --- a/packages/components/RadioGroup/src/legacy/RadioButton.win32.tsx +++ b/packages/components/RadioGroup/src/legacy/RadioButton.win32.tsx @@ -18,12 +18,13 @@ import type { IRadioButtonType, IRadioButtonProps, IRadioButtonSlotProps, IRadio import { radioButtonName } from './RadioButton.types'; import { RadioGroupContext } from './RadioGroup'; -enum DirectionalArrowKeys { - ArrowUp = 'ArrowUp', - ArrowDown = 'ArrowDown', - ArrowRight = 'ArrowRight', - ArrowLeft = 'ArrowLeft', -} +const DirectionalArrowKeys = { + ArrowUp: 'ArrowUp', + ArrowDown: 'ArrowDown', + ArrowRight: 'ArrowRight', + ArrowLeft: 'ArrowLeft', +} as const; +type DirectionalArrowKeys = (typeof DirectionalArrowKeys)[keyof typeof DirectionalArrowKeys]; export const RadioButton = compose({ displayName: radioButtonName, diff --git a/packages/deprecated/foundation-compose/src/useStyling.ts b/packages/deprecated/foundation-compose/src/useStyling.ts index 1b432a2ea64..30e31fe699d 100644 --- a/packages/deprecated/foundation-compose/src/useStyling.ts +++ b/packages/deprecated/foundation-compose/src/useStyling.ts @@ -27,7 +27,7 @@ function _getHasToken { const slot = slots[slotName]; const slotType = (typeof slot !== 'object' ? slot : slot.slotType) as INativeSlotType; - const options = , TSlotProps>>getOptionsFromObj(slotType); + const options = getOptionsFromObj(slotType) as IComposeOptions, TSlotProps>; slotTokens[slotName] = (options && options.resolvedTokens && options.resolvedTokens.tokenKeys) || undefined; }); return (target: string, key: string) => { diff --git a/packages/deprecated/theming-react-native/src/ThemeLayer.tsx b/packages/deprecated/theming-react-native/src/ThemeLayer.tsx index ba4ff4e3eab..9450de868f2 100644 --- a/packages/deprecated/theming-react-native/src/ThemeLayer.tsx +++ b/packages/deprecated/theming-react-native/src/ThemeLayer.tsx @@ -68,14 +68,14 @@ export class ThemeLayer extends React.Component { }; /** standard cleanup handler to ensure we unregister */ - public componentWillUnmount(): void { + public override componentWillUnmount(): void { if (this._registeredTheme !== undefined) { removeThemeRegistryListener(this); this._registeredTheme = undefined; } } - public render(): FurnJSX.Element { + public override render(): FurnJSX.Element { let themeName = this.props.themeName; return ( diff --git a/packages/deprecated/theming-react-native/tsconfig.json b/packages/deprecated/theming-react-native/tsconfig.json index 65f1338e146..83975437e4d 100644 --- a/packages/deprecated/theming-react-native/tsconfig.json +++ b/packages/deprecated/theming-react-native/tsconfig.json @@ -4,5 +4,5 @@ "outDir": "lib", "rootDir": "src" }, - "include": ["src", "jest"] + "include": ["src"] } diff --git a/packages/experimental/Avatar/tsconfig.json b/packages/experimental/Avatar/tsconfig.json index 83975437e4d..118241a66d9 100644 --- a/packages/experimental/Avatar/tsconfig.json +++ b/packages/experimental/Avatar/tsconfig.json @@ -4,5 +4,6 @@ "outDir": "lib", "rootDir": "src" }, - "include": ["src"] + "include": ["src"], + "exclude": ["src/__tests__/Avatar.test.jsx"] } From 2dee81818b1ff88658efe1f0448dc38843db851a Mon Sep 17 00:00:00 2001 From: Jason Morse Date: Wed, 6 May 2026 17:38:21 -0700 Subject: [PATCH 4/7] add changesets file --- .changeset/wacky-rabbits-retire.md | 78 ++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 .changeset/wacky-rabbits-retire.md diff --git a/.changeset/wacky-rabbits-retire.md b/.changeset/wacky-rabbits-retire.md new file mode 100644 index 00000000000..36455a611a9 --- /dev/null +++ b/.changeset/wacky-rabbits-retire.md @@ -0,0 +1,78 @@ +--- +"@uifabricshared/foundation-composable": patch +"@fluentui-react-native/experimental-appearance-additions": patch +"@uifabricshared/theming-react-native": patch +"@uifabricshared/foundation-settings": patch +"@fluentui-react-native/experimental-activity-indicator": patch +"@fluentui-react-native/experimental-native-font-metrics": patch +"@uifabricshared/foundation-compose": patch +"@fluentui-react-native/experimental-native-date-picker": patch +"@uifabricshared/foundation-tokens": patch +"@fluentui-react-native/themed-stylesheet": patch +"@uifabricshared/themed-settings": patch +"@fluentui-react-native/contextual-menu": patch +"@fluentui-react-native/lint-config-rules": patch +"@uifabricshared/theme-registry": patch +"@fluentui-react-native/vibrancy-view": patch +"@fluentui-react-native/focus-trap-zone": patch +"@fluentui-react-native/notification": patch +"@uifabricshared/theming-ramp": patch +"@fluentui-react-native/experimental-menu-button": patch +"@fluentui-react-native/interactive-hooks": patch +"@fluentui-react-native/persona-coin": patch +"@fluentui-react-native/menu-button": patch +"@fluentui-react-native/radio-group": patch +"@fluentui-react-native/experimental-checkbox": patch +"@fluentui-react-native/dropdown": patch +"@fluentui-react-native/experimental-expander": patch +"@fluentui-react-native/overflow": patch +"@fluentui-react-native/composition": patch +"@fluentui-react-native/use-styling": patch +"@fluentui-react-native/android-theme": patch +"@fluentui-react-native/default-theme": patch +"@fluentui-react-native/theming-utils": patch +"@fluentui-react-native/focus-zone": patch +"@fluentui-react-native/pressable": patch +"@fluentui-react-native/separator": patch +"@fluentui-react-native/popover": patch +"@fluentui-react-native/experimental-shimmer": patch +"@fluentui-react-native/spinner": patch +"@fluentui-react-native/tooltip": patch +"@fluentui-react-native/use-tokens": patch +"@fluentui-react-native/theme-tokens": patch +"@fluentui-react-native/checkbox": patch +"@fluentui-react-native/experimental-avatar": patch +"@fluentui-react-native/drawer": patch +"@fluentui-react-native/experimental-shadow": patch +"@fluentui-react-native/framework": patch +"@fluentui-react-native/use-slots": patch +"@fluentui-react-native/apple-theme": patch +"@fluentui-react-native/theme-types": patch +"@fluentui-react-native/win32-theme": patch +"@fluentui-react-native/callout": patch +"@fluentui-react-native/divider": patch +"@fluentui-react-native/persona": patch +"@fluentui-react-native/tablist": patch +"@fluentui-react-native/use-slot": patch +"@fluentui-react-native/avatar": patch +"@fluentui-react-native/button": patch +"@fluentui-react-native/switch": patch +"@fluentui-react-native/badge": patch +"@fluentui-react-native/input": patch +"@fluentui-react-native/stack": patch +"@fluentui-react-native/chip": patch +"@fluentui-react-native/icon": patch +"@fluentui-react-native/link": patch +"@fluentui-react-native/menu": patch +"@fluentui-react-native/text": patch +"@fluentui-react-native/theme": patch +"@fluentui-react-native/framework-base": patch +"@fluentui/react-native": patch +"@fluentui-react-native/adapters": patch +"@fluentui-react-native/styling-utils": patch +"@fluentui-react-native/tokens": patch +"@fluentui-react-native/tester": patch +"@fluentui-react-native/codemods": patch +--- + +Switch tsconfig settings to more modern settings From 1bbaad87ce686eb3d7316edc6ec66f4cf5f7bb2f Mon Sep 17 00:00:00 2001 From: Jason Morse Date: Wed, 6 May 2026 18:12:46 -0700 Subject: [PATCH 5/7] move oxlint configuration into scripts --- apps/E2E/oxlint.config.ts | 2 +- apps/E2E/package.json | 1 - apps/fluent-tester/package.json | 3 +- apps/tester-core/oxlint.config.ts | 2 +- apps/tester-core/package.json | 1 - apps/win32-81/package.json | 6 +- apps/win32-81/src/index.js | 2 +- apps/win32/package.json | 6 +- apps/win32/src/index.js | 8 +- packages/codemods/oxlint.config.ts | 2 +- packages/codemods/package.json | 3 +- packages/components/Avatar/package.json | 1 - packages/components/Badge/package.json | 1 - packages/components/Button/package.json | 1 - packages/components/Callout/package.json | 1 - packages/components/Checkbox/package.json | 1 - packages/components/Chip/package.json | 1 - .../components/ContextualMenu/package.json | 1 - packages/components/Divider/package.json | 1 - .../components/FocusTrapZone/package.json | 1 - packages/components/FocusZone/package.json | 1 - packages/components/Icon/package.json | 1 - packages/components/Input/package.json | 1 - packages/components/Link/package.json | 1 - packages/components/Menu/package.json | 1 - packages/components/MenuButton/package.json | 1 - packages/components/Notification/package.json | 1 - packages/components/Persona/package.json | 1 - packages/components/PersonaCoin/package.json | 1 - packages/components/Pressable/package.json | 1 - packages/components/RadioGroup/package.json | 1 - packages/components/Separator/package.json | 1 - packages/components/Stack/package.json | 1 - packages/components/Switch/package.json | 1 - packages/components/TabList/package.json | 1 - packages/components/Text/package.json | 1 - packages/configs/jest-config/package.json | 1 - packages/configs/lint-config-rules/.npmignore | 11 --- .../configs/lint-config-rules/CHANGELOG.json | 19 ---- .../configs/lint-config-rules/CHANGELOG.md | 24 ----- .../lint-config-rules/oxlint.config.ts | 1 - .../configs/lint-config-rules/package.json | 39 -------- .../configs/lint-config-rules/tsconfig.json | 10 -- packages/configs/lint-config-rules/types.d.ts | 16 ---- .../foundation-composable/package.json | 1 - .../foundation-compose/package.json | 1 - .../foundation-settings/package.json | 1 - .../deprecated/foundation-tokens/package.json | 1 - .../deprecated/theme-registry/package.json | 1 - .../deprecated/themed-settings/package.json | 1 - packages/deprecated/theming-ramp/package.json | 1 - .../theming-react-native/package.json | 1 - .../ActivityIndicator/package.json | 1 - .../AppearanceAdditions/package.json | 1 - packages/experimental/Avatar/package.json | 1 - packages/experimental/Checkbox/package.json | 1 - packages/experimental/Drawer/package.json | 1 - packages/experimental/Dropdown/package.json | 1 - packages/experimental/Expander/package.json | 1 - packages/experimental/MenuButton/package.json | 1 - .../NativeDatePicker/package.json | 1 - .../NativeFontMetrics/package.json | 1 - packages/experimental/Overflow/package.json | 1 - packages/experimental/Popover/package.json | 1 - packages/experimental/Shadow/package.json | 1 - packages/experimental/Shimmer/package.json | 1 - packages/experimental/Spinner/package.json | 1 - packages/experimental/Tooltip/package.json | 1 - .../experimental/VibrancyView/package.json | 1 - packages/framework-base/package.json | 1 - packages/framework/composition/package.json | 1 - packages/framework/framework/package.json | 1 - packages/framework/theme/package.json | 1 - .../framework/themed-stylesheet/package.json | 1 - packages/framework/use-slot/package.json | 1 - packages/framework/use-slots/package.json | 1 - packages/framework/use-styling/package.json | 1 - packages/framework/use-tokens/package.json | 1 - packages/libraries/core/package.json | 1 - packages/theming/android-theme/package.json | 1 - packages/theming/apple-theme/package.json | 1 - packages/theming/default-theme/package.json | 1 - packages/theming/theme-tokens/package.json | 1 - packages/theming/theme-types/package.json | 1 - .../theming/theming-utils/oxlint.config.ts | 2 +- packages/theming/theming-utils/package.json | 1 - packages/theming/win32-theme/package.json | 1 - packages/utils/adapters/package.json | 1 - .../utils/interactive-hooks/oxlint.config.ts | 2 +- packages/utils/interactive-hooks/package.json | 1 - packages/utils/styling/oxlint.config.ts | 2 +- packages/utils/styling/package.json | 1 - packages/utils/test-tools/oxlint.config.ts | 2 +- packages/utils/test-tools/package.json | 1 - packages/utils/tokens/package.json | 1 - .../configs/oxlint/oxlint.config.ts | 6 +- scripts/oxlint.config.ts | 2 +- scripts/package.json | 5 + scripts/src/tasks/lint.js | 2 +- scripts/src/tasks/lintPackage.ts | 2 +- yarn.lock | 92 ------------------- 101 files changed, 29 insertions(+), 317 deletions(-) delete mode 100644 packages/configs/lint-config-rules/.npmignore delete mode 100644 packages/configs/lint-config-rules/CHANGELOG.json delete mode 100644 packages/configs/lint-config-rules/CHANGELOG.md delete mode 100644 packages/configs/lint-config-rules/oxlint.config.ts delete mode 100644 packages/configs/lint-config-rules/package.json delete mode 100644 packages/configs/lint-config-rules/tsconfig.json delete mode 100644 packages/configs/lint-config-rules/types.d.ts rename packages/configs/lint-config-rules/private.ts => scripts/configs/oxlint/oxlint.config.ts (88%) diff --git a/apps/E2E/oxlint.config.ts b/apps/E2E/oxlint.config.ts index 8b7f9d7bfb9..e076b0f71ea 100644 --- a/apps/E2E/oxlint.config.ts +++ b/apps/E2E/oxlint.config.ts @@ -1,4 +1,4 @@ -import baseConfig from '@fluentui-react-native/lint-config-rules'; +import baseConfig from '@fluentui-react-native/scripts/lint-config'; import { defineConfig } from 'oxlint'; export default defineConfig({ diff --git a/apps/E2E/package.json b/apps/E2E/package.json index 55d6141f238..f174bc53d69 100644 --- a/apps/E2E/package.json +++ b/apps/E2E/package.json @@ -49,7 +49,6 @@ "@babel/runtime": "catalog:", "@fluentui-react-native/focus-zone": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.81.0", "@react-native/metro-babel-transformer": "^0.81.0", diff --git a/apps/fluent-tester/package.json b/apps/fluent-tester/package.json index 8ba6a969a03..9e3edccaf03 100644 --- a/apps/fluent-tester/package.json +++ b/apps/fluent-tester/package.json @@ -33,11 +33,11 @@ "bundle:windows": "rnx-cli bundle --dev false --platform windows", "clean": "fluentui-scripts clean", "depcheck": "fluentui-scripts depcheck", + "format": "fluentui-scripts format", "ios": "rnx-cli run --platform ios", "lint": "fluentui-scripts lint", "lint-package": "fluentui-scripts lint-package", "macos": "rnx-cli run --platform macos", - "format": "fluentui-scripts format", "start": "rnx-cli start", "windows": "react-native run-windows --arch x64 --sln windows/FluentTester.sln" }, @@ -64,7 +64,6 @@ "@fluentui-react-native/experimental-shimmer": "workspace:*", "@fluentui-react-native/focus-zone": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/menu-button": "workspace:*", "@fluentui-react-native/radio-group": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", diff --git a/apps/tester-core/oxlint.config.ts b/apps/tester-core/oxlint.config.ts index b70e88e437c..4d2005653e7 100644 --- a/apps/tester-core/oxlint.config.ts +++ b/apps/tester-core/oxlint.config.ts @@ -1,4 +1,4 @@ -import baseConfig from '@fluentui-react-native/lint-config-rules'; +import baseConfig from '@fluentui-react-native/scripts/lint-config'; import { defineConfig } from 'oxlint'; export default defineConfig({ diff --git a/apps/tester-core/package.json b/apps/tester-core/package.json index 67d181497e8..6225c9c4347 100644 --- a/apps/tester-core/package.json +++ b/apps/tester-core/package.json @@ -96,7 +96,6 @@ "@babel/runtime": "catalog:", "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.81.0", "@react-native-community/cli": "^20.0.0", diff --git a/apps/win32-81/package.json b/apps/win32-81/package.json index 6722f3b0f0e..4e2f3e14906 100644 --- a/apps/win32-81/package.json +++ b/apps/win32-81/package.json @@ -20,9 +20,8 @@ } }, "scripts": { - "build": "fluentui-scripts build", - "build-cjs": "tsgo --outDir lib-commonjs", - "build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler", + "build": "tsgo", + "build-core": "tsgo", "bundle": "rnx-cli bundle --dev false", "bundle-dev": "rnx-cli bundle", "clean": "fluentui-scripts clean", @@ -49,7 +48,6 @@ "@babel/runtime": "catalog:", "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/rex-win32": "0.81.0-preview.0", "@react-native-community/cli": "^20.0.0", diff --git a/apps/win32-81/src/index.js b/apps/win32-81/src/index.js index b3c1356ca43..54f2e9cf9b2 100644 --- a/apps/win32-81/src/index.js +++ b/apps/win32-81/src/index.js @@ -3,4 +3,4 @@ import { AppRegistry } from 'react-native'; import { FluentTesterApp } from '@fluentui-react-native/tester-core'; AppRegistry.registerComponent('FluentTester', () => FluentTesterApp); export default FluentTesterApp; -//# sourceMappingURL=index.js.map \ No newline at end of file +//# sourceMappingURL=index.js.map diff --git a/apps/win32/package.json b/apps/win32/package.json index bb7c29a7451..07b4753e957 100644 --- a/apps/win32/package.json +++ b/apps/win32/package.json @@ -20,9 +20,8 @@ } }, "scripts": { - "build": "fluentui-scripts build", - "build-cjs": "tsgo --outDir lib-commonjs", - "build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler", + "build": "tsgo", + "build-core": "tsgo", "bundle": "rnx-cli bundle --dev false", "bundle-dev": "rnx-cli bundle", "clean": "fluentui-scripts clean", @@ -49,7 +48,6 @@ "@babel/runtime": "catalog:", "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/rex-win32": "0.73.11-devmain.16.0.17615.15030", "@react-native-community/cli": "^13.6.4", diff --git a/apps/win32/src/index.js b/apps/win32/src/index.js index a68a5b550e6..8221d8ba440 100644 --- a/apps/win32/src/index.js +++ b/apps/win32/src/index.js @@ -1,7 +1,7 @@ 'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -const react_native_1 = require("react-native"); -const tester_core_1 = require("@fluentui-react-native/tester-core"); +Object.defineProperty(exports, '__esModule', { value: true }); +const react_native_1 = require('react-native'); +const tester_core_1 = require('@fluentui-react-native/tester-core'); react_native_1.AppRegistry.registerComponent('FluentTester', () => tester_core_1.FluentTesterApp); exports.default = tester_core_1.FluentTesterApp; -//# sourceMappingURL=index.js.map \ No newline at end of file +//# sourceMappingURL=index.js.map diff --git a/packages/codemods/oxlint.config.ts b/packages/codemods/oxlint.config.ts index 6f6abf6dab5..68d724fe3dc 100644 --- a/packages/codemods/oxlint.config.ts +++ b/packages/codemods/oxlint.config.ts @@ -1,4 +1,4 @@ -import baseConfig from '@fluentui-react-native/lint-config-rules'; +import baseConfig from '@fluentui-react-native/scripts/lint-config'; import { defineConfig } from 'oxlint'; export default defineConfig({ diff --git a/packages/codemods/package.json b/packages/codemods/package.json index 342ace50912..164a198fb14 100644 --- a/packages/codemods/package.json +++ b/packages/codemods/package.json @@ -30,9 +30,9 @@ "build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler", "clean": "fluentui-scripts clean", "depcheck": "fluentui-scripts depcheck", + "format": "fluentui-scripts format", "lint": "fluentui-scripts lint", "lint-package": "fluentui-scripts lint-package", - "format": "fluentui-scripts format", "test": "fluentui-scripts jest" }, "dependencies": { @@ -43,7 +43,6 @@ "@babel/core": "catalog:", "@babel/preset-env": "catalog:", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/react-configs": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", diff --git a/packages/components/Avatar/package.json b/packages/components/Avatar/package.json index efc323e8c86..0d7196418c2 100644 --- a/packages/components/Avatar/package.json +++ b/packages/components/Avatar/package.json @@ -50,7 +50,6 @@ "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", "@react-native-community/cli": "^20.0.0", diff --git a/packages/components/Badge/package.json b/packages/components/Badge/package.json index 4c437c7b594..07a0615c9b2 100644 --- a/packages/components/Badge/package.json +++ b/packages/components/Badge/package.json @@ -48,7 +48,6 @@ "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", diff --git a/packages/components/Button/package.json b/packages/components/Button/package.json index d9fdc1f608a..e4126f627dc 100644 --- a/packages/components/Button/package.json +++ b/packages/components/Button/package.json @@ -58,7 +58,6 @@ "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", diff --git a/packages/components/Callout/package.json b/packages/components/Callout/package.json index d6983ebcdfa..d0526a6df45 100644 --- a/packages/components/Callout/package.json +++ b/packages/components/Callout/package.json @@ -45,7 +45,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", "@react-native-community/cli": "^20.0.0", diff --git a/packages/components/Checkbox/package.json b/packages/components/Checkbox/package.json index b783ae5dea5..0bca9ba0409 100644 --- a/packages/components/Checkbox/package.json +++ b/packages/components/Checkbox/package.json @@ -54,7 +54,6 @@ "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", diff --git a/packages/components/Chip/package.json b/packages/components/Chip/package.json index 7bb40978768..ab64f1750cb 100644 --- a/packages/components/Chip/package.json +++ b/packages/components/Chip/package.json @@ -44,7 +44,6 @@ "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", diff --git a/packages/components/ContextualMenu/package.json b/packages/components/ContextualMenu/package.json index 3e2cfbce9d1..b23002973e5 100644 --- a/packages/components/ContextualMenu/package.json +++ b/packages/components/ContextualMenu/package.json @@ -51,7 +51,6 @@ "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/pressable": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", diff --git a/packages/components/Divider/package.json b/packages/components/Divider/package.json index 9540063ce75..b61201c32cb 100644 --- a/packages/components/Divider/package.json +++ b/packages/components/Divider/package.json @@ -45,7 +45,6 @@ "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", diff --git a/packages/components/FocusTrapZone/package.json b/packages/components/FocusTrapZone/package.json index e3534e4b7ef..e447fd30847 100644 --- a/packages/components/FocusTrapZone/package.json +++ b/packages/components/FocusTrapZone/package.json @@ -43,7 +43,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", "@react-native-community/cli": "^20.0.0", diff --git a/packages/components/FocusZone/package.json b/packages/components/FocusZone/package.json index 5200685ee6b..de477adde03 100644 --- a/packages/components/FocusZone/package.json +++ b/packages/components/FocusZone/package.json @@ -43,7 +43,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", "@react-native-community/cli": "^20.0.0", diff --git a/packages/components/Icon/package.json b/packages/components/Icon/package.json index c1a8ab851cd..0aebb4626f0 100644 --- a/packages/components/Icon/package.json +++ b/packages/components/Icon/package.json @@ -43,7 +43,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", diff --git a/packages/components/Input/package.json b/packages/components/Input/package.json index 1ae90dc6bdb..9ba52de7372 100644 --- a/packages/components/Input/package.json +++ b/packages/components/Input/package.json @@ -48,7 +48,6 @@ "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "@react-native-community/cli": "^20.0.0", diff --git a/packages/components/Link/package.json b/packages/components/Link/package.json index 94b9e9cf87f..dd3ed0062c1 100644 --- a/packages/components/Link/package.json +++ b/packages/components/Link/package.json @@ -49,7 +49,6 @@ "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "@react-native-community/cli": "^20.0.0", diff --git a/packages/components/Menu/package.json b/packages/components/Menu/package.json index 531d021fc6d..e44d673e301 100644 --- a/packages/components/Menu/package.json +++ b/packages/components/Menu/package.json @@ -54,7 +54,6 @@ "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", diff --git a/packages/components/MenuButton/package.json b/packages/components/MenuButton/package.json index 2b7d1975f47..cef3c66a6e2 100644 --- a/packages/components/MenuButton/package.json +++ b/packages/components/MenuButton/package.json @@ -48,7 +48,6 @@ "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", "@react-native-community/cli": "^20.0.0", diff --git a/packages/components/Notification/package.json b/packages/components/Notification/package.json index 03d7f8e8d82..54cf37ccfe6 100644 --- a/packages/components/Notification/package.json +++ b/packages/components/Notification/package.json @@ -53,7 +53,6 @@ "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", diff --git a/packages/components/Persona/package.json b/packages/components/Persona/package.json index 1998eac1338..c5d4e34dc41 100644 --- a/packages/components/Persona/package.json +++ b/packages/components/Persona/package.json @@ -47,7 +47,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/components/PersonaCoin/package.json b/packages/components/PersonaCoin/package.json index 40471935b56..b481b415265 100644 --- a/packages/components/PersonaCoin/package.json +++ b/packages/components/PersonaCoin/package.json @@ -47,7 +47,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", "@react-native-community/cli": "^20.0.0", diff --git a/packages/components/Pressable/package.json b/packages/components/Pressable/package.json index 9108a412f81..95a6147ab83 100644 --- a/packages/components/Pressable/package.json +++ b/packages/components/Pressable/package.json @@ -42,7 +42,6 @@ "@babel/core": "catalog:", "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/components/RadioGroup/package.json b/packages/components/RadioGroup/package.json index a840cb3df80..ccd72841291 100644 --- a/packages/components/RadioGroup/package.json +++ b/packages/components/RadioGroup/package.json @@ -53,7 +53,6 @@ "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", diff --git a/packages/components/Separator/package.json b/packages/components/Separator/package.json index 492e1004dd1..33d5256f0f4 100644 --- a/packages/components/Separator/package.json +++ b/packages/components/Separator/package.json @@ -43,7 +43,6 @@ "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", "@react-native-community/cli": "^20.0.0", diff --git a/packages/components/Stack/package.json b/packages/components/Stack/package.json index 24b5233b539..3d0c87b86ed 100644 --- a/packages/components/Stack/package.json +++ b/packages/components/Stack/package.json @@ -47,7 +47,6 @@ "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/text": "workspace:*", "@react-native-community/cli": "^20.0.0", diff --git a/packages/components/Switch/package.json b/packages/components/Switch/package.json index 8ace8cf7b76..58cc3785e3b 100644 --- a/packages/components/Switch/package.json +++ b/packages/components/Switch/package.json @@ -47,7 +47,6 @@ "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", diff --git a/packages/components/TabList/package.json b/packages/components/TabList/package.json index 79a63b1a870..37b381b5a76 100644 --- a/packages/components/TabList/package.json +++ b/packages/components/TabList/package.json @@ -49,7 +49,6 @@ "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", diff --git a/packages/components/Text/package.json b/packages/components/Text/package.json index 2579d1c6247..9f467505d33 100644 --- a/packages/components/Text/package.json +++ b/packages/components/Text/package.json @@ -46,7 +46,6 @@ "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "@react-native-community/cli": "^20.0.0", diff --git a/packages/configs/jest-config/package.json b/packages/configs/jest-config/package.json index bd25e0c0b04..26def381c63 100644 --- a/packages/configs/jest-config/package.json +++ b/packages/configs/jest-config/package.json @@ -34,7 +34,6 @@ "@babel/core": "catalog:", "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native/babel-preset": "^0.81.0", "@types/node": "catalog:", diff --git a/packages/configs/lint-config-rules/.npmignore b/packages/configs/lint-config-rules/.npmignore deleted file mode 100644 index 487696b6ecb..00000000000 --- a/packages/configs/lint-config-rules/.npmignore +++ /dev/null @@ -1,11 +0,0 @@ -node_modules -.gitignore -.gitattributes -.editorconfig -config.js -jest.config.js -.eslintrc.js -.eslintignore -tsconfig.json -jsconfig.json -*.build.log \ No newline at end of file diff --git a/packages/configs/lint-config-rules/CHANGELOG.json b/packages/configs/lint-config-rules/CHANGELOG.json deleted file mode 100644 index 02863e060f2..00000000000 --- a/packages/configs/lint-config-rules/CHANGELOG.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "@uifabric/eslint-config-rules", - "entries": [ - { - "date": "Sat, 14 Sep 2019 01:56:36 GMT", - "tag": "@uifabric/eslint-config-rules_v0.1.1", - "version": "0.1.1", - "comments": { - "patch": [ - { - "comment": "Begin turning on some linting rules", - "author": "taamireh@microsoft.com", - "commit": "530f021858edbb964892dffcb6f15f86db8499fd" - } - ] - } - } - ] -} \ No newline at end of file diff --git a/packages/configs/lint-config-rules/CHANGELOG.md b/packages/configs/lint-config-rules/CHANGELOG.md deleted file mode 100644 index b9763e7100d..00000000000 --- a/packages/configs/lint-config-rules/CHANGELOG.md +++ /dev/null @@ -1,24 +0,0 @@ -# Change Log - @uifabric/eslint-config-rules - -## 0.1.3 - -### Patch Changes - -- 9cf4444: Migrate from ESLint to oxlint - -## 0.1.2 - -### Patch Changes - -- 0d6e9c1: chore: migrate to `oxfmt` -- ac6e7af: Ensure packages have a default export that references the typescript entrypoint and clean up build dependency ordering - -This log was last generated on Sat, 14 Sep 2019 01:56:36 GMT and should not be manually modified. - -## 0.1.1 - -Sat, 14 Sep 2019 01:56:36 GMT - -### Patches - -- Begin turning on some linting rules (taamireh@microsoft.com) diff --git a/packages/configs/lint-config-rules/oxlint.config.ts b/packages/configs/lint-config-rules/oxlint.config.ts deleted file mode 100644 index 7dfc98bb7bf..00000000000 --- a/packages/configs/lint-config-rules/oxlint.config.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './private.js'; diff --git a/packages/configs/lint-config-rules/package.json b/packages/configs/lint-config-rules/package.json deleted file mode 100644 index 37770879e42..00000000000 --- a/packages/configs/lint-config-rules/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "@fluentui-react-native/lint-config-rules", - "version": "0.1.3", - "description": "Oxlint config for Fluent UI React Native", - "license": "MIT", - "repository": { - "type": "git", - "url": "https://github.com/microsoft/fluentui-react-native", - "directory": "packages/configs/lint-config-rules" - }, - "type": "module", - "exports": { - ".": { - "default": "./private.ts" - }, - "./private": { - "default": "./private.ts" - }, - "./package.json": "./package.json" - }, - "scripts": { - "build": "tsgo", - "build-core": "tsgo", - "lint-package": "fluentui-scripts lint-package" - }, - "dependencies": { - "@rnx-kit/oxlint-config": "^1.0.3", - "oxlint": "^1.57.0" - }, - "devDependencies": { - "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/scripts": "workspace:*", - "@types/node": "catalog:", - "typescript": "^5.8.0" - }, - "furn": { - "packageType": "tooling" - } -} diff --git a/packages/configs/lint-config-rules/tsconfig.json b/packages/configs/lint-config-rules/tsconfig.json deleted file mode 100644 index afb42785875..00000000000 --- a/packages/configs/lint-config-rules/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@fluentui-react-native/scripts/tsconfig", - "compilerOptions": { - "allowJs": true, - "checkJs": true, - "noEmit": true - }, - "include": ["private.ts", "oxlint.config.ts", "types.d.ts"], - "exclude": [] -} diff --git a/packages/configs/lint-config-rules/types.d.ts b/packages/configs/lint-config-rules/types.d.ts deleted file mode 100644 index 80825430614..00000000000 --- a/packages/configs/lint-config-rules/types.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { OxlintConfig } from 'oxlint'; - -declare module '@rnx-kit/oxlint-config/sdl-required' { - const config: OxlintConfig; - export default config; -} - -declare module '@rnx-kit/oxlint-config/strict' { - const config: OxlintConfig; - export default config; -} - -declare module '@rnx-kit/oxlint-config/typescript-stylistic' { - const config: OxlintConfig; - export default config; -} diff --git a/packages/deprecated/foundation-composable/package.json b/packages/deprecated/foundation-composable/package.json index d72966918ff..82481cf1b69 100644 --- a/packages/deprecated/foundation-composable/package.json +++ b/packages/deprecated/foundation-composable/package.json @@ -41,7 +41,6 @@ }, "devDependencies": { "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@types/react": "~19.1.4", "react": "19.1.4", diff --git a/packages/deprecated/foundation-compose/package.json b/packages/deprecated/foundation-compose/package.json index 4203ad1e2b1..1aba956ce38 100644 --- a/packages/deprecated/foundation-compose/package.json +++ b/packages/deprecated/foundation-compose/package.json @@ -47,7 +47,6 @@ }, "devDependencies": { "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.81.0", "@types/react": "~19.1.4", diff --git a/packages/deprecated/foundation-settings/package.json b/packages/deprecated/foundation-settings/package.json index 3571880312c..f00873ab43b 100644 --- a/packages/deprecated/foundation-settings/package.json +++ b/packages/deprecated/foundation-settings/package.json @@ -41,7 +41,6 @@ "devDependencies": { "@babel/core": "catalog:", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/react-configs": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@types/jest": "^29.0.0", diff --git a/packages/deprecated/foundation-tokens/package.json b/packages/deprecated/foundation-tokens/package.json index 49b48013447..883014bbde1 100644 --- a/packages/deprecated/foundation-tokens/package.json +++ b/packages/deprecated/foundation-tokens/package.json @@ -44,7 +44,6 @@ "devDependencies": { "@babel/core": "catalog:", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/react-configs": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.81.0", diff --git a/packages/deprecated/theme-registry/package.json b/packages/deprecated/theme-registry/package.json index a581652c856..a76bd4660b0 100644 --- a/packages/deprecated/theme-registry/package.json +++ b/packages/deprecated/theme-registry/package.json @@ -39,7 +39,6 @@ "@babel/core": "catalog:", "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/react-configs": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native/babel-preset": "^0.74.0", diff --git a/packages/deprecated/themed-settings/package.json b/packages/deprecated/themed-settings/package.json index 3ed468a928a..ed632cbf7e0 100644 --- a/packages/deprecated/themed-settings/package.json +++ b/packages/deprecated/themed-settings/package.json @@ -42,7 +42,6 @@ "devDependencies": { "@babel/core": "catalog:", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/react-configs": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native/babel-preset": "^0.81.0", diff --git a/packages/deprecated/theming-ramp/package.json b/packages/deprecated/theming-ramp/package.json index d93662ae740..70627e4a965 100644 --- a/packages/deprecated/theming-ramp/package.json +++ b/packages/deprecated/theming-ramp/package.json @@ -43,7 +43,6 @@ "devDependencies": { "@babel/core": "catalog:", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/react-configs": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", diff --git a/packages/deprecated/theming-react-native/package.json b/packages/deprecated/theming-react-native/package.json index 2bde51d93cd..23943a0a164 100644 --- a/packages/deprecated/theming-react-native/package.json +++ b/packages/deprecated/theming-react-native/package.json @@ -46,7 +46,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/experimental/ActivityIndicator/package.json b/packages/experimental/ActivityIndicator/package.json index e8cb04fd994..621f33567e4 100644 --- a/packages/experimental/ActivityIndicator/package.json +++ b/packages/experimental/ActivityIndicator/package.json @@ -40,7 +40,6 @@ "@babel/core": "catalog:", "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/experimental/AppearanceAdditions/package.json b/packages/experimental/AppearanceAdditions/package.json index 60a06494319..b8ffa4debb1 100644 --- a/packages/experimental/AppearanceAdditions/package.json +++ b/packages/experimental/AppearanceAdditions/package.json @@ -42,7 +42,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/experimental/Avatar/package.json b/packages/experimental/Avatar/package.json index e252b53f8bb..280bd3e5c0a 100644 --- a/packages/experimental/Avatar/package.json +++ b/packages/experimental/Avatar/package.json @@ -41,7 +41,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/experimental/Checkbox/package.json b/packages/experimental/Checkbox/package.json index a5532f36510..24f7903e881 100644 --- a/packages/experimental/Checkbox/package.json +++ b/packages/experimental/Checkbox/package.json @@ -41,7 +41,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", "@react-native-community/cli": "^20.0.0", diff --git a/packages/experimental/Drawer/package.json b/packages/experimental/Drawer/package.json index c0391df1b59..ea9afcb3e8f 100644 --- a/packages/experimental/Drawer/package.json +++ b/packages/experimental/Drawer/package.json @@ -44,7 +44,6 @@ "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/experimental/Dropdown/package.json b/packages/experimental/Dropdown/package.json index 20dfad21350..08f04b64ca0 100644 --- a/packages/experimental/Dropdown/package.json +++ b/packages/experimental/Dropdown/package.json @@ -46,7 +46,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "@react-native-community/cli": "^20.0.0", diff --git a/packages/experimental/Expander/package.json b/packages/experimental/Expander/package.json index b62aaaa37e4..bb2b2024114 100644 --- a/packages/experimental/Expander/package.json +++ b/packages/experimental/Expander/package.json @@ -43,7 +43,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/experimental/MenuButton/package.json b/packages/experimental/MenuButton/package.json index 0a4d7449008..397f5bb8171 100644 --- a/packages/experimental/MenuButton/package.json +++ b/packages/experimental/MenuButton/package.json @@ -44,7 +44,6 @@ "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", "@react-native-community/cli": "^20.0.0", diff --git a/packages/experimental/NativeDatePicker/package.json b/packages/experimental/NativeDatePicker/package.json index dcd4f20f102..982d899899b 100644 --- a/packages/experimental/NativeDatePicker/package.json +++ b/packages/experimental/NativeDatePicker/package.json @@ -37,7 +37,6 @@ "@babel/core": "catalog:", "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/experimental/NativeFontMetrics/package.json b/packages/experimental/NativeFontMetrics/package.json index 50106da96b5..d2403a103f3 100644 --- a/packages/experimental/NativeFontMetrics/package.json +++ b/packages/experimental/NativeFontMetrics/package.json @@ -40,7 +40,6 @@ "@babel/core": "catalog:", "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/experimental/Overflow/package.json b/packages/experimental/Overflow/package.json index 032dce134a3..134c1eb7147 100644 --- a/packages/experimental/Overflow/package.json +++ b/packages/experimental/Overflow/package.json @@ -42,7 +42,6 @@ "@fluentui-react-native/button": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/menu": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", diff --git a/packages/experimental/Popover/package.json b/packages/experimental/Popover/package.json index e4ca4326b00..a0418370cd7 100644 --- a/packages/experimental/Popover/package.json +++ b/packages/experimental/Popover/package.json @@ -41,7 +41,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/experimental/Shadow/package.json b/packages/experimental/Shadow/package.json index 4f269f831e4..1295592c425 100644 --- a/packages/experimental/Shadow/package.json +++ b/packages/experimental/Shadow/package.json @@ -43,7 +43,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "@react-native-community/cli": "^20.0.0", diff --git a/packages/experimental/Shimmer/package.json b/packages/experimental/Shimmer/package.json index 72a8f376c19..9570218f506 100644 --- a/packages/experimental/Shimmer/package.json +++ b/packages/experimental/Shimmer/package.json @@ -45,7 +45,6 @@ "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/experimental/Spinner/package.json b/packages/experimental/Spinner/package.json index 2942bd1b298..6620bd90d7e 100644 --- a/packages/experimental/Spinner/package.json +++ b/packages/experimental/Spinner/package.json @@ -43,7 +43,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/experimental/Tooltip/package.json b/packages/experimental/Tooltip/package.json index 0d4d20ad789..1d06cefc220 100644 --- a/packages/experimental/Tooltip/package.json +++ b/packages/experimental/Tooltip/package.json @@ -42,7 +42,6 @@ "@fluentui-react-native/button": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", diff --git a/packages/experimental/VibrancyView/package.json b/packages/experimental/VibrancyView/package.json index c8163f09e0e..bd1db7fd4a1 100644 --- a/packages/experimental/VibrancyView/package.json +++ b/packages/experimental/VibrancyView/package.json @@ -40,7 +40,6 @@ "@babel/core": "catalog:", "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.81.0", "@react-native-community/cli": "^20.0.0", diff --git a/packages/framework-base/package.json b/packages/framework-base/package.json index a54780fc0d3..61fcaea0cc5 100644 --- a/packages/framework-base/package.json +++ b/packages/framework-base/package.json @@ -44,7 +44,6 @@ "devDependencies": { "@babel/core": "catalog:", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/react-configs": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@types/jest": "^29.0.0", diff --git a/packages/framework/composition/package.json b/packages/framework/composition/package.json index cacabffdf4c..7e1c7d2d1ef 100644 --- a/packages/framework/composition/package.json +++ b/packages/framework/composition/package.json @@ -45,7 +45,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native/babel-preset": "^0.81.0", "@types/react": "~19.1.4", diff --git a/packages/framework/framework/package.json b/packages/framework/framework/package.json index 4326416ecbd..ff5340a499e 100644 --- a/packages/framework/framework/package.json +++ b/packages/framework/framework/package.json @@ -50,7 +50,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/framework/theme/package.json b/packages/framework/theme/package.json index cd8a4d2d660..97cea5b1a98 100644 --- a/packages/framework/theme/package.json +++ b/packages/framework/theme/package.json @@ -44,7 +44,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "@react-native-community/cli": "^20.0.0", diff --git a/packages/framework/themed-stylesheet/package.json b/packages/framework/themed-stylesheet/package.json index 71fb3c2ab9e..4cfc8a4e76f 100644 --- a/packages/framework/themed-stylesheet/package.json +++ b/packages/framework/themed-stylesheet/package.json @@ -43,7 +43,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/framework/use-slot/package.json b/packages/framework/use-slot/package.json index 8e1534b7d34..b438a90bfb7 100644 --- a/packages/framework/use-slot/package.json +++ b/packages/framework/use-slot/package.json @@ -43,7 +43,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/framework/use-slots/package.json b/packages/framework/use-slots/package.json index 93a2e8c6971..3b10ca224ca 100644 --- a/packages/framework/use-slots/package.json +++ b/packages/framework/use-slots/package.json @@ -44,7 +44,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/framework/use-styling/package.json b/packages/framework/use-styling/package.json index 535bb010542..be06a8c7524 100644 --- a/packages/framework/use-styling/package.json +++ b/packages/framework/use-styling/package.json @@ -44,7 +44,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/framework/use-tokens/package.json b/packages/framework/use-tokens/package.json index 4d3edd2135d..4e3bb971455 100644 --- a/packages/framework/use-tokens/package.json +++ b/packages/framework/use-tokens/package.json @@ -43,7 +43,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/libraries/core/package.json b/packages/libraries/core/package.json index 5bb6491ab93..8d8d3829966 100644 --- a/packages/libraries/core/package.json +++ b/packages/libraries/core/package.json @@ -56,7 +56,6 @@ "@babel/core": "catalog:", "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/theming/android-theme/package.json b/packages/theming/android-theme/package.json index 673629f0d95..bba068c7a83 100644 --- a/packages/theming/android-theme/package.json +++ b/packages/theming/android-theme/package.json @@ -47,7 +47,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/theming/apple-theme/package.json b/packages/theming/apple-theme/package.json index 7292bbdb8e1..e2b3341b3cd 100644 --- a/packages/theming/apple-theme/package.json +++ b/packages/theming/apple-theme/package.json @@ -52,7 +52,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/theming/default-theme/package.json b/packages/theming/default-theme/package.json index 0a692360a27..0bac0ab99af 100644 --- a/packages/theming/default-theme/package.json +++ b/packages/theming/default-theme/package.json @@ -48,7 +48,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", "@react-native-community/cli": "^20.0.0", diff --git a/packages/theming/theme-tokens/package.json b/packages/theming/theme-tokens/package.json index 1f9b3acfadb..63518c48464 100644 --- a/packages/theming/theme-tokens/package.json +++ b/packages/theming/theme-tokens/package.json @@ -47,7 +47,6 @@ "@babel/core": "catalog:", "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/theming/theme-types/package.json b/packages/theming/theme-types/package.json index ac0bcb72bc2..d0402c09019 100644 --- a/packages/theming/theme-types/package.json +++ b/packages/theming/theme-types/package.json @@ -39,7 +39,6 @@ "@babel/core": "catalog:", "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/theming/theming-utils/oxlint.config.ts b/packages/theming/theming-utils/oxlint.config.ts index d1e027f0edf..0de970ab4ed 100644 --- a/packages/theming/theming-utils/oxlint.config.ts +++ b/packages/theming/theming-utils/oxlint.config.ts @@ -1,4 +1,4 @@ -import baseConfig from '@fluentui-react-native/lint-config-rules'; +import baseConfig from '@fluentui-react-native/scripts/lint-config'; import { defineConfig } from 'oxlint'; export default defineConfig({ diff --git a/packages/theming/theming-utils/package.json b/packages/theming/theming-utils/package.json index 520819c35a2..9ad6e505b06 100644 --- a/packages/theming/theming-utils/package.json +++ b/packages/theming/theming-utils/package.json @@ -43,7 +43,6 @@ "@fluentui-react-native/design-tokens-windows": "^0.53.0", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/theming/win32-theme/package.json b/packages/theming/win32-theme/package.json index d9df1476ddf..b1bd3393097 100644 --- a/packages/theming/win32-theme/package.json +++ b/packages/theming/win32-theme/package.json @@ -49,7 +49,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", "@react-native-community/cli": "^20.0.0", diff --git a/packages/utils/adapters/package.json b/packages/utils/adapters/package.json index f29db71b089..1b14115c7b2 100644 --- a/packages/utils/adapters/package.json +++ b/packages/utils/adapters/package.json @@ -35,7 +35,6 @@ "devDependencies": { "@babel/core": "catalog:", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/react-configs": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.81.0", diff --git a/packages/utils/interactive-hooks/oxlint.config.ts b/packages/utils/interactive-hooks/oxlint.config.ts index d1e027f0edf..0de970ab4ed 100644 --- a/packages/utils/interactive-hooks/oxlint.config.ts +++ b/packages/utils/interactive-hooks/oxlint.config.ts @@ -1,4 +1,4 @@ -import baseConfig from '@fluentui-react-native/lint-config-rules'; +import baseConfig from '@fluentui-react-native/scripts/lint-config'; import { defineConfig } from 'oxlint'; export default defineConfig({ diff --git a/packages/utils/interactive-hooks/package.json b/packages/utils/interactive-hooks/package.json index 6282c113afc..7eb47b62b2b 100644 --- a/packages/utils/interactive-hooks/package.json +++ b/packages/utils/interactive-hooks/package.json @@ -41,7 +41,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", diff --git a/packages/utils/styling/oxlint.config.ts b/packages/utils/styling/oxlint.config.ts index d1e027f0edf..0de970ab4ed 100644 --- a/packages/utils/styling/oxlint.config.ts +++ b/packages/utils/styling/oxlint.config.ts @@ -1,4 +1,4 @@ -import baseConfig from '@fluentui-react-native/lint-config-rules'; +import baseConfig from '@fluentui-react-native/scripts/lint-config'; import { defineConfig } from 'oxlint'; export default defineConfig({ diff --git a/packages/utils/styling/package.json b/packages/utils/styling/package.json index f1dee7319be..4ade2710ff5 100644 --- a/packages/utils/styling/package.json +++ b/packages/utils/styling/package.json @@ -36,7 +36,6 @@ "@babel/core": "catalog:", "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/utils/test-tools/oxlint.config.ts b/packages/utils/test-tools/oxlint.config.ts index d1e027f0edf..0de970ab4ed 100644 --- a/packages/utils/test-tools/oxlint.config.ts +++ b/packages/utils/test-tools/oxlint.config.ts @@ -1,4 +1,4 @@ -import baseConfig from '@fluentui-react-native/lint-config-rules'; +import baseConfig from '@fluentui-react-native/scripts/lint-config'; import { defineConfig } from 'oxlint'; export default defineConfig({ diff --git a/packages/utils/test-tools/package.json b/packages/utils/test-tools/package.json index 3a1e83e3b63..a8ebb3ffc78 100644 --- a/packages/utils/test-tools/package.json +++ b/packages/utils/test-tools/package.json @@ -37,7 +37,6 @@ "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/theme-types": "workspace:*", "@react-native/babel-preset": "^0.81.0", diff --git a/packages/utils/tokens/package.json b/packages/utils/tokens/package.json index 046812db70e..ffff37b8204 100644 --- a/packages/utils/tokens/package.json +++ b/packages/utils/tokens/package.json @@ -40,7 +40,6 @@ "@babel/core": "catalog:", "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", "@react-native-community/cli-platform-android": "^20.0.0", diff --git a/packages/configs/lint-config-rules/private.ts b/scripts/configs/oxlint/oxlint.config.ts similarity index 88% rename from packages/configs/lint-config-rules/private.ts rename to scripts/configs/oxlint/oxlint.config.ts index 5fa52a745f4..21614c6db6e 100644 --- a/packages/configs/lint-config-rules/private.ts +++ b/scripts/configs/oxlint/oxlint.config.ts @@ -1,9 +1,9 @@ import { defineConfig, type OxlintConfig } from 'oxlint'; -// @ts-ignore -- @rnx-kit/oxlint-config ships untyped JS; types.d.ts covers the local build +// @ts-expect-error -- @rnx-kit/oxlint-config ships untyped JS; types.d.ts covers the local build import sdlRequired from '@rnx-kit/oxlint-config/sdl-required'; -// @ts-ignore -- same as above +// @ts-expect-error -- same as above import strict from '@rnx-kit/oxlint-config/strict'; -// @ts-ignore -- same as above +// @ts-expect-error -- same as above import stylistic from '@rnx-kit/oxlint-config/typescript-stylistic'; export default defineConfig({ diff --git a/scripts/oxlint.config.ts b/scripts/oxlint.config.ts index 028370112ac..e96ab95e118 100644 --- a/scripts/oxlint.config.ts +++ b/scripts/oxlint.config.ts @@ -1,4 +1,4 @@ -import config from '../packages/configs/lint-config-rules/private.ts'; +import config from './configs/oxlint/oxlint.config.ts'; import { defineConfig } from 'oxlint'; export default defineConfig({ diff --git a/scripts/package.json b/scripts/package.json index a02edab2a08..6c573b8d8ae 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -18,6 +18,7 @@ "require": "./src/index.js", "default": "./src/index.js" }, + "./lint-config": "./configs/oxlint/oxlint.config.ts", "./package.json": "./package.json", "./tsconfig": "./configs/tsconfig/tsconfig.json", "./tsconfig-strict": "./configs/tsconfig/tsconfig.strict.json" @@ -31,6 +32,10 @@ "lint": "node ./src/cli.mjs lint", "lint-package": "node ./src/cli.mjs lint-package" }, + "dependencies": { + "@rnx-kit/oxlint-config": "^1.0.3", + "oxlint": "^1.57.0" + }, "devDependencies": { "@fluentui-react-native/kit-config": "workspace:*", "@rnx-kit/align-deps": "catalog:", diff --git a/scripts/src/tasks/lint.js b/scripts/src/tasks/lint.js index 8d675e30254..ed41dc97596 100644 --- a/scripts/src/tasks/lint.js +++ b/scripts/src/tasks/lint.js @@ -47,6 +47,6 @@ export class LintCommand extends Command { return localConfig; } - return fileURLToPath(new URL('../../../packages/configs/lint-config-rules/private.ts', import.meta.url)); + return fileURLToPath(new URL('../../configs/oxlint/oxlint.config.ts', import.meta.url)); } } diff --git a/scripts/src/tasks/lintPackage.ts b/scripts/src/tasks/lintPackage.ts index cd377a62f7b..36080e0b466 100644 --- a/scripts/src/tasks/lintPackage.ts +++ b/scripts/src/tasks/lintPackage.ts @@ -34,7 +34,7 @@ export class LintPackageCommand extends Command { private isLibrary = false; private projRoot: ProjectRoot = getProjectRoot(process.cwd()); private result = 0; - private removedDevDeps: string[] = []; + private removedDevDeps: string[] = ['@fluentui-react-native/lint-config-rules']; private addedDevDeps: Record = {}; private ensuredCapabilities: string[] = []; private removedCapabilities: string[] = []; diff --git a/yarn.lock b/yarn.lock index 64647d6164f..1f958b3d5c1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2640,7 +2640,6 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/react-configs": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@office-iss/react-native-win32": "npm:^0.81.0" @@ -2681,7 +2680,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme": "workspace:*" "@fluentui-react-native/theme-tokens": "workspace:*" @@ -2729,7 +2727,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme": "workspace:*" "@fluentui-react-native/theme-tokens": "workspace:*" @@ -2778,7 +2775,6 @@ __metadata: "@fluentui-react-native/icon": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme-tokens": "workspace:*" "@fluentui-react-native/theming-utils": "workspace:*" @@ -2853,7 +2849,6 @@ __metadata: "@fluentui-react-native/icon": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" "@fluentui-react-native/text": "workspace:*" @@ -2911,7 +2906,6 @@ __metadata: "@fluentui-react-native/interactive-hooks": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/pressable": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/styling-utils": "workspace:*" @@ -2968,7 +2962,6 @@ __metadata: "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/tokens": "workspace:*" "@office-iss/react-native-win32": "npm:^0.74.0" @@ -3018,7 +3011,6 @@ __metadata: "@fluentui-react-native/interactive-hooks": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/pressable": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/styling-utils": "workspace:*" @@ -3078,7 +3070,6 @@ __metadata: "@fluentui-react-native/interactive-hooks": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" "@fluentui-react-native/text": "workspace:*" @@ -3126,7 +3117,6 @@ __metadata: "@babel/core": "catalog:" "@babel/preset-env": "catalog:" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/react-configs": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" @@ -3148,7 +3138,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/use-slots": "workspace:*" "@fluentui-react-native/use-styling": "workspace:*" @@ -3181,7 +3170,6 @@ __metadata: "@fluentui-react-native/interactive-hooks": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/pressable": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/text": "workspace:*" @@ -3235,7 +3223,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme": "workspace:*" "@fluentui-react-native/theme-tokens": "workspace:*" @@ -3548,7 +3535,6 @@ __metadata: "@fluentui-react-native/icon": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" "@fluentui-react-native/text": "workspace:*" @@ -3599,7 +3585,6 @@ __metadata: "@fluentui-react-native/interactive-hooks": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme-tokens": "workspace:*" "@fluentui-react-native/use-styling": "workspace:*" @@ -3647,7 +3632,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/interactive-hooks": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" "@fluentui-react-native/text": "workspace:*" @@ -3691,7 +3675,6 @@ __metadata: "@babel/runtime": "catalog:" "@fluentui-react-native/focus-zone": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@office-iss/react-native-win32": "npm:^0.81.0" "@office-iss/rex-win32": "npm:0.73.11-devmain.16.0.17615.15030" @@ -3751,7 +3734,6 @@ __metadata: "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" "@react-native-community/cli-platform-android": "npm:^20.0.0" @@ -3793,7 +3775,6 @@ __metadata: "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" "@react-native-community/cli-platform-android": "npm:^20.0.0" @@ -3834,7 +3815,6 @@ __metadata: "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" "@react-native-community/cli-platform-android": "npm:^20.0.0" @@ -3876,7 +3856,6 @@ __metadata: "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@office-iss/react-native-win32": "npm:^0.74.0" "@react-native-community/cli": "npm:^20.0.0" @@ -3919,7 +3898,6 @@ __metadata: "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" "@react-native-community/cli-platform-android": "npm:^20.0.0" @@ -3961,7 +3939,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/tokens": "workspace:*" "@office-iss/react-native-win32": "npm:^0.74.0" @@ -4005,7 +3982,6 @@ __metadata: "@babel/core": "catalog:" "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" "@react-native-community/cli-platform-android": "npm:^20.0.0" @@ -4031,7 +4007,6 @@ __metadata: "@babel/core": "catalog:" "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" "@react-native-community/cli-platform-android": "npm:^20.0.0" @@ -4062,7 +4037,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/pressable": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" @@ -4108,7 +4082,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theming-utils": "workspace:*" "@fluentui-react-native/tokens": "workspace:*" @@ -4157,7 +4130,6 @@ __metadata: "@fluentui-react-native/interactive-hooks": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@office-iss/react-native-win32": "npm:^0.74.0" "@react-native-community/cli": "npm:^20.0.0" @@ -4203,7 +4175,6 @@ __metadata: "@fluentui-react-native/interactive-hooks": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@office-iss/react-native-win32": "npm:^0.74.0" "@react-native-community/cli": "npm:^20.0.0" @@ -4246,7 +4217,6 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/react-configs": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@types/jest": "npm:^29.0.0" @@ -4274,7 +4244,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme-types": "workspace:*" "@fluentui-react-native/tokens": "workspace:*" @@ -4325,7 +4294,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" "@fluentui-react-native/text": "workspace:*" @@ -4375,7 +4343,6 @@ __metadata: "@fluentui-react-native/interactive-hooks": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/styling-utils": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" @@ -4426,7 +4393,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" "@office-iss/react-native-win32": "npm:^0.74.0" @@ -4470,7 +4436,6 @@ __metadata: "@babel/core": "catalog:" "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native/babel-preset": "npm:^0.81.0" "@rnx-kit/jest-preset": "catalog:" @@ -4505,7 +4470,6 @@ __metadata: "@fluentui-react-native/interactive-hooks": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" "@fluentui-react-native/text": "workspace:*" @@ -4545,19 +4509,6 @@ __metadata: languageName: unknown linkType: soft -"@fluentui-react-native/lint-config-rules@workspace:*, @fluentui-react-native/lint-config-rules@workspace:packages/configs/lint-config-rules": - version: 0.0.0-use.local - resolution: "@fluentui-react-native/lint-config-rules@workspace:packages/configs/lint-config-rules" - dependencies: - "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/scripts": "workspace:*" - "@rnx-kit/oxlint-config": "npm:^1.0.3" - "@types/node": "catalog:" - oxlint: "npm:^1.57.0" - typescript: "npm:^5.8.0" - languageName: unknown - linkType: soft - "@fluentui-react-native/menu-button@workspace:*, @fluentui-react-native/menu-button@workspace:packages/components/MenuButton": version: 0.0.0-use.local resolution: "@fluentui-react-native/menu-button@workspace:packages/components/MenuButton" @@ -4570,7 +4521,6 @@ __metadata: "@fluentui-react-native/icon": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/tokens": "workspace:*" "@office-iss/react-native-win32": "npm:^0.74.0" @@ -4626,7 +4576,6 @@ __metadata: "@fluentui-react-native/interactive-hooks": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" "@fluentui-react-native/text": "workspace:*" @@ -4685,7 +4634,6 @@ __metadata: "@fluentui-react-native/interactive-hooks": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/pressable": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" @@ -4739,7 +4687,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/menu": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" @@ -4783,7 +4730,6 @@ __metadata: "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme-tokens": "workspace:*" "@fluentui-react-native/tokens": "workspace:*" @@ -4830,7 +4776,6 @@ __metadata: "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/persona-coin": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/tokens": "workspace:*" @@ -4876,7 +4821,6 @@ __metadata: "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" "@react-native-community/cli-platform-android": "npm:^20.0.0" @@ -4915,7 +4859,6 @@ __metadata: "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/interactive-hooks": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" "@react-native-community/cli-platform-android": "npm:^20.0.0" @@ -4960,7 +4903,6 @@ __metadata: "@fluentui-react-native/interactive-hooks": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/pressable": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" @@ -5097,7 +5039,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme-tokens": "workspace:*" "@fluentui-react-native/use-styling": "workspace:*" @@ -5142,7 +5083,6 @@ __metadata: "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/text": "workspace:*" "@fluentui-react-native/theme-tokens": "workspace:*" @@ -5189,7 +5129,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/text": "workspace:*" "@fluentui-react-native/tokens": "workspace:*" @@ -5235,7 +5174,6 @@ __metadata: "@babel/core": "catalog:" "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" "@react-native-community/cli-platform-android": "npm:^20.0.0" @@ -5265,7 +5203,6 @@ __metadata: "@fluentui-react-native/interactive-hooks": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" "@fluentui-react-native/text": "workspace:*" @@ -5318,7 +5255,6 @@ __metadata: "@fluentui-react-native/interactive-hooks": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" "@fluentui-react-native/text": "workspace:*" @@ -5367,7 +5303,6 @@ __metadata: "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme-types": "workspace:*" "@react-native/babel-preset": "npm:^0.81.0" @@ -5424,7 +5359,6 @@ __metadata: "@fluentui-react-native/input": "workspace:*" "@fluentui-react-native/interactive-hooks": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/menu": "workspace:*" "@fluentui-react-native/menu-button": "workspace:*" "@fluentui-react-native/notification": "workspace:*" @@ -5551,7 +5485,6 @@ __metadata: "@babel/runtime": "catalog:" "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/tester-core": "workspace:*" "@office-iss/react-native-win32": "npm:^0.81.0" @@ -5594,7 +5527,6 @@ __metadata: "@babel/runtime": "catalog:" "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/tester-core": "workspace:*" "@office-iss/react-native-win32": "npm:^0.74.0" @@ -5641,7 +5573,6 @@ __metadata: "@fluentui-react-native/experimental-shimmer": "workspace:*" "@fluentui-react-native/focus-zone": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/menu-button": "workspace:*" "@fluentui-react-native/radio-group": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" @@ -5699,7 +5630,6 @@ __metadata: "@fluentui-react-native/interactive-hooks": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" "@fluentui-react-native/theme-tokens": "workspace:*" @@ -5747,7 +5677,6 @@ __metadata: "@fluentui-react-native/design-tokens-win32": "npm:^0.53.0" "@fluentui-react-native/design-tokens-windows": "npm:^0.53.0" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme-types": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" @@ -5775,7 +5704,6 @@ __metadata: "@babel/core": "catalog:" "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" "@react-native-community/cli-platform-android": "npm:^20.0.0" @@ -5803,7 +5731,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" "@fluentui-react-native/theme-types": "workspace:*" @@ -5834,7 +5761,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" "@react-native-community/cli-platform-android": "npm:^20.0.0" @@ -5864,7 +5790,6 @@ __metadata: "@fluentui-react-native/design-tokens-windows": "npm:^0.53.0" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme-types": "workspace:*" "@fluentui-react-native/tokens": "workspace:*" @@ -5905,7 +5830,6 @@ __metadata: "@fluentui-react-native/adapters": "workspace:*" "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme-types": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" @@ -5947,7 +5871,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" "@office-iss/react-native-win32": "npm:^0.74.0" @@ -5989,7 +5912,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" "@react-native-community/cli-platform-android": "npm:^20.0.0" @@ -6020,7 +5942,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/use-slot": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" @@ -6051,7 +5972,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/use-tokens": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" @@ -6083,7 +6003,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" "@react-native-community/cli-platform-android": "npm:^20.0.0" @@ -6113,7 +6032,6 @@ __metadata: "@fluentui-react-native/adapters": "workspace:*" "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@office-iss/react-native-win32": "npm:^0.81.0" "@react-native-community/cli": "npm:^20.0.0" @@ -6155,7 +6073,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme": "workspace:*" "@fluentui-react-native/theme-tokens": "workspace:*" @@ -6219,7 +6136,6 @@ __metadata: "@fluentui-react-native/interactive-hooks": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/link": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/menu-button": "workspace:*" "@fluentui-react-native/persona": "workspace:*" "@fluentui-react-native/persona-coin": "workspace:*" @@ -10937,7 +10853,6 @@ __metadata: dependencies: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@types/react": "npm:~19.1.4" "@uifabricshared/foundation-settings": "workspace:*" @@ -10960,7 +10875,6 @@ __metadata: "@fluentui-react-native/default-theme": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme-types": "workspace:*" "@office-iss/react-native-win32": "npm:^0.81.0" @@ -11000,7 +10914,6 @@ __metadata: "@babel/core": "catalog:" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/react-configs": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@types/jest": "npm:^29.0.0" @@ -11023,7 +10936,6 @@ __metadata: "@babel/core": "catalog:" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/react-configs": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/tokens": "workspace:*" @@ -11067,7 +10979,6 @@ __metadata: "@babel/core": "catalog:" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/react-configs": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native/babel-preset": "npm:^0.74.0" @@ -11092,7 +11003,6 @@ __metadata: "@babel/core": "catalog:" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/react-configs": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native/babel-preset": "npm:^0.81.0" @@ -11118,7 +11028,6 @@ __metadata: "@babel/core": "catalog:" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/react-configs": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" @@ -11147,7 +11056,6 @@ __metadata: "@fluentui-react-native/default-theme": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/lint-config-rules": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/win32-theme": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" From 6e7d9193efd24490ebb62fd980c7797c84688181 Mon Sep 17 00:00:00 2001 From: Jason Morse Date: Wed, 6 May 2026 18:15:10 -0700 Subject: [PATCH 6/7] changeset --- .changeset/upset-shirts-carry.md | 77 ++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 .changeset/upset-shirts-carry.md diff --git a/.changeset/upset-shirts-carry.md b/.changeset/upset-shirts-carry.md new file mode 100644 index 00000000000..f384890ffed --- /dev/null +++ b/.changeset/upset-shirts-carry.md @@ -0,0 +1,77 @@ +--- +"@uifabricshared/foundation-composable": patch +"@fluentui-react-native/experimental-appearance-additions": patch +"@uifabricshared/theming-react-native": patch +"@uifabricshared/foundation-settings": patch +"@fluentui-react-native/experimental-activity-indicator": patch +"@fluentui-react-native/experimental-native-font-metrics": patch +"@uifabricshared/foundation-compose": patch +"@fluentui-react-native/experimental-native-date-picker": patch +"@uifabricshared/foundation-tokens": patch +"@fluentui-react-native/themed-stylesheet": patch +"@uifabricshared/themed-settings": patch +"@fluentui-react-native/contextual-menu": patch +"@uifabricshared/theme-registry": patch +"@fluentui-react-native/vibrancy-view": patch +"@fluentui-react-native/focus-trap-zone": patch +"@fluentui-react-native/notification": patch +"@uifabricshared/theming-ramp": patch +"@fluentui-react-native/experimental-menu-button": patch +"@fluentui-react-native/interactive-hooks": patch +"@fluentui-react-native/persona-coin": patch +"@fluentui-react-native/menu-button": patch +"@fluentui-react-native/radio-group": patch +"@fluentui-react-native/experimental-checkbox": patch +"@fluentui-react-native/dropdown": patch +"@fluentui-react-native/experimental-expander": patch +"@fluentui-react-native/overflow": patch +"@fluentui-react-native/composition": patch +"@fluentui-react-native/use-styling": patch +"@fluentui-react-native/android-theme": patch +"@fluentui-react-native/default-theme": patch +"@fluentui-react-native/theming-utils": patch +"@fluentui-react-native/focus-zone": patch +"@fluentui-react-native/pressable": patch +"@fluentui-react-native/separator": patch +"@fluentui-react-native/popover": patch +"@fluentui-react-native/experimental-shimmer": patch +"@fluentui-react-native/spinner": patch +"@fluentui-react-native/tooltip": patch +"@fluentui-react-native/use-tokens": patch +"@fluentui-react-native/theme-tokens": patch +"@fluentui-react-native/checkbox": patch +"@fluentui-react-native/experimental-avatar": patch +"@fluentui-react-native/drawer": patch +"@fluentui-react-native/experimental-shadow": patch +"@fluentui-react-native/framework": patch +"@fluentui-react-native/use-slots": patch +"@fluentui-react-native/apple-theme": patch +"@fluentui-react-native/theme-types": patch +"@fluentui-react-native/win32-theme": patch +"@fluentui-react-native/callout": patch +"@fluentui-react-native/divider": patch +"@fluentui-react-native/persona": patch +"@fluentui-react-native/tablist": patch +"@fluentui-react-native/use-slot": patch +"@fluentui-react-native/avatar": patch +"@fluentui-react-native/button": patch +"@fluentui-react-native/switch": patch +"@fluentui-react-native/badge": patch +"@fluentui-react-native/input": patch +"@fluentui-react-native/stack": patch +"@fluentui-react-native/chip": patch +"@fluentui-react-native/icon": patch +"@fluentui-react-native/link": patch +"@fluentui-react-native/menu": patch +"@fluentui-react-native/text": patch +"@fluentui-react-native/theme": patch +"@fluentui-react-native/framework-base": patch +"@fluentui/react-native": patch +"@fluentui-react-native/adapters": patch +"@fluentui-react-native/styling-utils": patch +"@fluentui-react-native/tokens": patch +"@fluentui-react-native/tester": patch +"@fluentui-react-native/codemods": patch +--- + +remove oxlint config package and move it into scripts From 1707aee037e4106c9539d6751bb2b209ae0a0893 Mon Sep 17 00:00:00 2001 From: Jason Morse Date: Thu, 7 May 2026 11:33:33 -0700 Subject: [PATCH 7/7] remove lingering references to package being removed --- packages/configs/kit-config/furn-preset.ts | 7 ------- packages/framework-base/package.json | 1 - scripts/src/preinstall/tool-versions.js | 1 - 3 files changed, 9 deletions(-) diff --git a/packages/configs/kit-config/furn-preset.ts b/packages/configs/kit-config/furn-preset.ts index 4f1a3f90427..7a2dc7eb73f 100644 --- a/packages/configs/kit-config/furn-preset.ts +++ b/packages/configs/kit-config/furn-preset.ts @@ -23,7 +23,6 @@ type Capability = | 'babel-preset-react-native' | 'babel-core' | 'tools-babel' - | 'tools-eslint' | 'tools-jest' | 'tools-jest-react' | 'tools-core' @@ -124,12 +123,6 @@ function formFurnPreset(rnPreset: VersionPreset, _version: number): VersionPrese version: 'workspace:*', devOnly: true, }, - 'tools-eslint': { - name: '@fluentui-react-native/lint-config-rules', - version: 'workspace:*', - devOnly: true, - capabilities: ['tools-core'], - }, 'tools-jest': { name: '@fluentui-react-native/jest-config', version: 'workspace:*', diff --git a/packages/framework-base/package.json b/packages/framework-base/package.json index 61fcaea0cc5..f273b6564b0 100644 --- a/packages/framework-base/package.json +++ b/packages/framework-base/package.json @@ -69,7 +69,6 @@ "core-dev-only", "react", "tools-core", - "tools-eslint", "tools-jest-react" ] } diff --git a/scripts/src/preinstall/tool-versions.js b/scripts/src/preinstall/tool-versions.js index 9195794c5fb..e93017b81bf 100644 --- a/scripts/src/preinstall/tool-versions.js +++ b/scripts/src/preinstall/tool-versions.js @@ -61,7 +61,6 @@ const devToolVersions = { /** @type {Record} */ const workspaceToolVersions = { '@fluentui-react-native/babel-config': 'workspace:*', - '@fluentui-react-native/lint-config-rules': 'workspace:*', '@fluentui-react-native/jest-config': 'workspace:*', '@fluentui-react-native/scripts': 'workspace:*', };