From ea763d88fef1a582c4bac2df71237d2b2a06477a Mon Sep 17 00:00:00 2001 From: Dmytro Kirpa Date: Thu, 12 Dec 2024 12:06:29 +0100 Subject: [PATCH] fix type-check issue and update api doc --- .../etc/eslint-plugin-react-components.api.md | 4 ++-- .../eslint-plugin-react-components/tsconfig.spec.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/react-components/eslint-plugin-react-components/etc/eslint-plugin-react-components.api.md b/packages/react-components/eslint-plugin-react-components/etc/eslint-plugin-react-components.api.md index 97074aa5c04be0..1c5903fb43dd25 100644 --- a/packages/react-components/eslint-plugin-react-components/etc/eslint-plugin-react-components.api.md +++ b/packages/react-components/eslint-plugin-react-components/etc/eslint-plugin-react-components.api.md @@ -22,8 +22,8 @@ export const plugin: { }; }; rules: { - "prefer-fluentui-v9": RuleModule<"replaceFluent8With9" | "replaceFluent8With9Unstable" | "replaceIconWithJsx" | "replaceStackWithFlex", { - unstable?: boolean | undefined; + "prefer-fluentui-v9": RuleModule<"replaceFluent8With9" | "replaceIconWithJsx" | "replaceStackWithFlex" | "replaceFocusZoneWithTabster", { + preview?: boolean | undefined; }[], unknown, RuleListener>; }; }; diff --git a/packages/react-components/eslint-plugin-react-components/tsconfig.spec.json b/packages/react-components/eslint-plugin-react-components/tsconfig.spec.json index 469fcba4d7ba75..18aba1c9375371 100644 --- a/packages/react-components/eslint-plugin-react-components/tsconfig.spec.json +++ b/packages/react-components/eslint-plugin-react-components/tsconfig.spec.json @@ -1,7 +1,8 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "CommonJS", + "module": "NodeNext", + "moduleResolution": "NodeNext", "outDir": "dist", "types": ["jest", "node"] },