From 1e024f984bf36971aac6937a2a3aefb76d4095bf Mon Sep 17 00:00:00 2001 From: mainframev Date: Thu, 18 Dec 2025 21:32:57 +0100 Subject: [PATCH 01/11] chore: migrate to flat eslint flat configs --- .eslintrc.json | 31 ------------------- .github/CODEOWNERS | 6 ++-- nx.json | 9 ++---- packages/codemods/.eslintrc.json | 23 -------------- packages/codemods/eslint.config.js | 25 +++++++++++++++ packages/tokens/.eslintrc.json | 12 ------- packages/tokens/eslint.config.js | 17 ++++++++++ .../scripts/verify-packaging.js | 1 - packages/webpack-utilities/.eslintrc.json | 16 ---------- packages/webpack-utilities/eslint.config.js | 19 ++++++++++++ scripts/beachball/base.config.json | 2 +- scripts/lint-staged/src/eslint-for-package.js | 2 +- scripts/lint-staged/src/eslint.js | 4 ++- scripts/tasks/src/verify-packaging.ts | 2 +- tools/eslint-rules/README.md | 25 +++++++++------ .../executors/verify-packaging/executor.ts | 2 +- .../src/plugins/workspace-plugin.spec.ts | 10 +++--- .../src/plugins/workspace-plugin.ts | 18 +++-------- 18 files changed, 98 insertions(+), 126 deletions(-) delete mode 100644 .eslintrc.json delete mode 100644 packages/codemods/.eslintrc.json create mode 100644 packages/codemods/eslint.config.js delete mode 100644 packages/tokens/.eslintrc.json create mode 100644 packages/tokens/eslint.config.js delete mode 100644 packages/webpack-utilities/.eslintrc.json create mode 100644 packages/webpack-utilities/eslint.config.js diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 75cc7f5e91788..0000000000000 --- a/.eslintrc.json +++ /dev/null @@ -1,31 +0,0 @@ -// Default eslintrc for packages without one, or files outside a package -// NOTE: -// - this is very old config (v8/v0 active era) - we don't use it anywhere -// - if nx migration adds any kind of overrides undo these changes as our config setup is not compatible with extending package from root -// TODO: -// - this needs to be re-done when doing whole lint re-structuring within monorepo -// - will be used to follow standard NX linting approach -{ - "root": true, - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 2018, - "sourceType": "module" - }, - "env": { - "browser": true, - "es6": true, - "node": true - }, - "ignorePatterns": [ - "**/coverage", - "**/dist", - "**/etc", - "**/lib", - "**/lib-amd", - "**/lib-commonjs", - "**/node_modules", - "**/temp", - "**/*.scss.ts" - ] -} diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index d430c6d33bbbf..898a6967acc58 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -42,7 +42,6 @@ /typings @microsoft/fluentui-react-build #### Root Build files -/.eslintrc.* @microsoft/fluentui-react-build /.yarnrc @microsoft/fluentui-react-build /.gitattributes @microsoft/fluentui-react-build /.gitignore @microsoft/fluentui-react-build @@ -399,8 +398,9 @@ packages/react-experiments/src/components/TileList @ThomasMichon **/just.config.ts @microsoft/fluentui-react-build **/jest.config.js @microsoft/fluentui-react-build **/webpack.*.js @microsoft/fluentui-react-build -**/.eslintrc.js @microsoft/fluentui-react-build -**/.eslintrc.json @microsoft/fluentui-react-build +**/eslint.config.js @microsoft/fluentui-react-build +**/eslint.config.cjs @microsoft/fluentui-react-build +**/eslint.config.mjs @microsoft/fluentui-react-build **/tsconfig.json @microsoft/fluentui-react-build **/tsconfig.lib.json @microsoft/fluentui-react-build **/tsconfig.spec.json @microsoft/fluentui-react-build diff --git a/nx.json b/nx.json index cf2f5ed5a3a14..908ace8cdc516 100644 --- a/nx.json +++ b/nx.json @@ -68,14 +68,9 @@ "executor": "nx:run-commands", "dependsOn": ["build"], "cache": true, - "inputs": [ - "default", - "{workspaceRoot}/.eslintrc.json", - "{workspaceRoot}/.eslintignore", - "{workspaceRoot}/eslint.config.js" - ], + "inputs": ["default"], "options": { - "command": "cross-env ESLINT_USE_FLAT_CONFIG=false eslint src" + "command": "eslint src" } }, "format": { diff --git a/packages/codemods/.eslintrc.json b/packages/codemods/.eslintrc.json deleted file mode 100644 index fb156f13b9891..0000000000000 --- a/packages/codemods/.eslintrc.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "extends": ["plugin:@fluentui/eslint-plugin/node", "plugin:@fluentui/eslint-plugin/react--legacy"], - "root": true, - "overrides": [ - { - "files": ["./src/**/*.{ts,tsx,js}"], - "rules": { - "@typescript-eslint/naming-convention": "off", - "@typescript-eslint/explicit-module-boundary-types": "off" - } - }, - { - "files": ["./src/codeMods/tests/mock/**/*.{ts,tsx}"], - "rules": { - "@typescript-eslint/ban-ts-comment": "off", - "@typescript-eslint/no-explicit-any": "off", - "@typescript-eslint/naming-convention": "off", - "import/no-extraneous-dependencies": "off", - "@typescript-eslint/no-deprecated": "off" - } - } - ] -} diff --git a/packages/codemods/eslint.config.js b/packages/codemods/eslint.config.js new file mode 100644 index 0000000000000..9170ceb0b3220 --- /dev/null +++ b/packages/codemods/eslint.config.js @@ -0,0 +1,25 @@ +// @ts-check +const fluentPlugin = require('@fluentui/eslint-plugin'); + +/** @type {import("eslint").Linter.Config[]} */ +module.exports = [ + ...fluentPlugin.configs['flat/node'], + ...fluentPlugin.configs['flat/react-legacy'], + { + files: ['./src/**/*.{ts,tsx,js}'], + rules: { + '@typescript-eslint/naming-convention': 'off', + '@typescript-eslint/explicit-module-boundary-types': 'off', + }, + }, + { + files: ['./src/codeMods/tests/mock/**/*.{ts,tsx}'], + rules: { + '@typescript-eslint/ban-ts-comment': 'off', + '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/naming-convention': 'off', + 'import/no-extraneous-dependencies': 'off', + '@typescript-eslint/no-deprecated': 'off', + }, + }, +]; diff --git a/packages/tokens/.eslintrc.json b/packages/tokens/.eslintrc.json deleted file mode 100644 index 80ca7022e8d9b..0000000000000 --- a/packages/tokens/.eslintrc.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": ["plugin:@fluentui/eslint-plugin/react"], - "root": true, - "rules": { - "no-restricted-imports": [ - "error", - { - "patterns": ["@fluentui/*", "react", "react-dom"] - } - ] - } -} diff --git a/packages/tokens/eslint.config.js b/packages/tokens/eslint.config.js new file mode 100644 index 0000000000000..cf64081cd2b10 --- /dev/null +++ b/packages/tokens/eslint.config.js @@ -0,0 +1,17 @@ +// @ts-check +const fluentPlugin = require('@fluentui/eslint-plugin'); + +/** @type {import("eslint").Linter.Config[]} */ +module.exports = [ + ...fluentPlugin.configs['flat/react'], + { + rules: { + 'no-restricted-imports': [ + 'error', + { + patterns: ['@fluentui/*', 'react', 'react-dom'], + }, + ], + }, + }, +]; diff --git a/packages/web-components/scripts/verify-packaging.js b/packages/web-components/scripts/verify-packaging.js index 25eec53ab30c2..88c1cebb0ea81 100644 --- a/packages/web-components/scripts/verify-packaging.js +++ b/packages/web-components/scripts/verify-packaging.js @@ -20,7 +20,6 @@ function main() { const rootConfigFiles = [ 'just.config.[jt]s', 'jest.config.[jt]s', - '.eslintrc.(js|json)', 'project.json', '.babelrc.json', '.swcrc', diff --git a/packages/webpack-utilities/.eslintrc.json b/packages/webpack-utilities/.eslintrc.json deleted file mode 100644 index a563e7abd8369..0000000000000 --- a/packages/webpack-utilities/.eslintrc.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "extends": ["plugin:@fluentui/eslint-plugin/node--legacy"], - "root": true, - "rules": { - "@typescript-eslint/no-explicit-any": "off", - "prefer-arrow-callback": "off" - }, - "overrides": [ - { - "files": ["**/*.{ts,tsx}"], - "rules": { - "@typescript-eslint/no-deprecated": "off" - } - } - ] -} diff --git a/packages/webpack-utilities/eslint.config.js b/packages/webpack-utilities/eslint.config.js new file mode 100644 index 0000000000000..3ba2e43c4fcaa --- /dev/null +++ b/packages/webpack-utilities/eslint.config.js @@ -0,0 +1,19 @@ +// @ts-check +const fluentPlugin = require('@fluentui/eslint-plugin'); + +/** @type {import("eslint").Linter.Config[]} */ +module.exports = [ + ...fluentPlugin.configs['flat/node-legacy'], + { + rules: { + '@typescript-eslint/no-explicit-any': 'off', + 'prefer-arrow-callback': 'off', + }, + }, + { + files: ['**/*.{ts,tsx}'], + rules: { + '@typescript-eslint/no-deprecated': 'off', + }, + }, +]; diff --git a/scripts/beachball/base.config.json b/scripts/beachball/base.config.json index dcb3a3b9e2228..ca37e0f1f7bce 100644 --- a/scripts/beachball/base.config.json +++ b/scripts/beachball/base.config.json @@ -6,7 +6,7 @@ "**/*.{shot,snap}", "**/*.{test,spec,cy}.{ts,tsx}", "**/*.stories.{ts,tsx}", - "**/.eslintrc.*", + "**/eslint.config.(js|cjs|mjs)", "**/rit.config.js", "**/__fixtures__/**", "**/__mocks__/**", diff --git a/scripts/lint-staged/src/eslint-for-package.js b/scripts/lint-staged/src/eslint-for-package.js index e7ff6bee07a43..f88e8ed9da722 100644 --- a/scripts/lint-staged/src/eslint-for-package.js +++ b/scripts/lint-staged/src/eslint-for-package.js @@ -4,7 +4,7 @@ const fs = require('node:fs'); const path = require('node:path'); const { eslintConstants } = require('@fluentui/scripts-monorepo'); -const { LegacyESLint: ESLint } = require('eslint/use-at-your-own-risk'); +const { ESLint } = require('eslint'); const micromatch = require('micromatch'); /** diff --git a/scripts/lint-staged/src/eslint.js b/scripts/lint-staged/src/eslint.js index 4e9f8a6e50503..936e719ce4424 100644 --- a/scripts/lint-staged/src/eslint.js +++ b/scripts/lint-staged/src/eslint.js @@ -37,7 +37,9 @@ function groupFilesByPackage(files) { } const hasEslintConfig = - fs.existsSync(path.join(packagePath, '.eslintrc.json')) || fs.existsSync(path.join(packagePath, '.eslintrc.js')); + fs.existsSync(path.join(packagePath, 'eslint.config.js')) || + fs.existsSync(path.join(packagePath, 'eslint.config.cjs')) || + fs.existsSync(path.join(packagePath, 'eslint.config.mjs')); if (!hasEslintConfig) { continue; diff --git a/scripts/tasks/src/verify-packaging.ts b/scripts/tasks/src/verify-packaging.ts index cf437a1ecfce6..eb00716372202 100644 --- a/scripts/tasks/src/verify-packaging.ts +++ b/scripts/tasks/src/verify-packaging.ts @@ -14,7 +14,7 @@ const alwaysPublishedFiles = ['LICENSE', 'package.json', 'README.md']; const rootConfigFiles = [ 'just.config.[jt]s', 'jest.config.[jt]s', - '.eslintrc.(js|json)', + 'eslint.config.(js|cjs|mjs)', 'project.json', '.babelrc.json', '.swcrc', diff --git a/tools/eslint-rules/README.md b/tools/eslint-rules/README.md index fe88290640fe3..155ab3d13e331 100644 --- a/tools/eslint-rules/README.md +++ b/tools/eslint-rules/README.md @@ -13,15 +13,22 @@ Let's say we implement custom lint rule named `uppercase-const`. Following rule declaration will enable it for particular lint config: -```jsonc -/* @filename /.eslintrc */ -{ - "extends:" ["../../.eslintrc"], - "rules": { - /* pattern: <@nx/workspace>- */ - "@nx/workspace-uppercase-const": "error" - } -} +```js +// @filename /eslint.config.js +// @ts-check +const fluentPlugin = require('@fluentui/eslint-plugin'); + +/** @type {import("eslint").Linter.Config[]} */ +module.exports = [ + // or 'flat/react-legacy', 'flat/node', etc. + ...fluentPlugin.configs['flat/core'], + { + rules: { + // pattern: <@nx/workspace>- + '@nx/workspace-uppercase-const': 'error', + }, + }, +]; ``` ## Adding new rule: diff --git a/tools/workspace-plugin/src/executors/verify-packaging/executor.ts b/tools/workspace-plugin/src/executors/verify-packaging/executor.ts index 37033028b6faa..28990daba5b41 100644 --- a/tools/workspace-plugin/src/executors/verify-packaging/executor.ts +++ b/tools/workspace-plugin/src/executors/verify-packaging/executor.ts @@ -60,7 +60,7 @@ function normalizeOptions(schema: VerifyPackagingExecutorSchema, context: Execut const rootConfigFiles = [ 'just.config.[jt]s', 'jest.config.[jt]s', - '.eslintrc.(js|json)', + 'eslint.config.(js|cjs|mjs)', 'project.json', '.babelrc.json', '.swcrc', diff --git a/tools/workspace-plugin/src/plugins/workspace-plugin.spec.ts b/tools/workspace-plugin/src/plugins/workspace-plugin.spec.ts index 6951c7960909d..455c60473848b 100644 --- a/tools/workspace-plugin/src/plugins/workspace-plugin.spec.ts +++ b/tools/workspace-plugin/src/plugins/workspace-plugin.spec.ts @@ -53,7 +53,7 @@ describe(`workspace-plugin`, () => { await tempFs.createFiles({ 'proj/project.json': serializeJson({}), 'proj/package.json': serializeJson({}), - 'proj/.eslintrc.json': '{}', + 'proj/eslint.config.js': 'module.exports = {}', 'proj/jest.config.js': 'module.exports = {}', 'proj/monosize.config.mjs': 'export default {}', }); @@ -66,14 +66,12 @@ describe(`workspace-plugin`, () => { "executor": "nx:run-commands", "inputs": Array [ "default", - "{projectRoot}/.eslintrc.json", - "{projectRoot}/.eslintrc.js", "{projectRoot}/eslint.config.js", "{projectRoot}/eslint.config.cjs", "{projectRoot}/eslint.config.mjs", - "{workspaceRoot}/.eslintrc.json", - "{workspaceRoot}/.eslintignore", "{workspaceRoot}/eslint.config.js", + "{workspaceRoot}/eslint.config.cjs", + "{workspaceRoot}/eslint.config.mjs", Object { "externalDependencies": Array [ "eslint", @@ -95,7 +93,7 @@ describe(`workspace-plugin`, () => { ], }, "options": Object { - "command": "yarn cross-env ESLINT_USE_FLAT_CONFIG=false eslint src", + "command": "yarn eslint src", "cwd": "proj", }, "outputs": Array [ diff --git a/tools/workspace-plugin/src/plugins/workspace-plugin.ts b/tools/workspace-plugin/src/plugins/workspace-plugin.ts index 3080919f85198..50da17b2484ea 100644 --- a/tools/workspace-plugin/src/plugins/workspace-plugin.ts +++ b/tools/workspace-plugin/src/plugins/workspace-plugin.ts @@ -322,35 +322,27 @@ function buildLintTarget( context: CreateNodesContextV2, config: TaskBuilderConfig, ): TargetConfiguration | null { - const hasFlatConfig = + const hasEslintConfig = existsSync(join(projectRoot, 'eslint.config.js')) || existsSync(join(projectRoot, 'eslint.config.cjs')) || existsSync(join(projectRoot, 'eslint.config.mjs')); - const hasLegacyConfig = - existsSync(join(projectRoot, '.eslintrc.json')) || existsSync(join(projectRoot, '.eslintrc.js')); - if (!hasFlatConfig && !hasLegacyConfig) { + if (!hasEslintConfig) { return null; } - const command = hasFlatConfig - ? `${config.pmc.exec} eslint src` - : `${config.pmc.exec} cross-env ESLINT_USE_FLAT_CONFIG=false eslint src`; - return { executor: 'nx:run-commands', cache: true, - options: { cwd: projectRoot, command }, + options: { cwd: projectRoot, command: `${config.pmc.exec} eslint src` }, inputs: [ 'default', - '{projectRoot}/.eslintrc.json', - '{projectRoot}/.eslintrc.js', '{projectRoot}/eslint.config.js', '{projectRoot}/eslint.config.cjs', '{projectRoot}/eslint.config.mjs', - '{workspaceRoot}/.eslintrc.json', - '{workspaceRoot}/.eslintignore', '{workspaceRoot}/eslint.config.js', + '{workspaceRoot}/eslint.config.cjs', + '{workspaceRoot}/eslint.config.mjs', { externalDependencies: ['eslint'] }, ], outputs: ['{options.outputFile}'], From 9e4c3dd2e6f1eeab345902bd4d3462e0955fc62f Mon Sep 17 00:00:00 2001 From: mainframev Date: Thu, 18 Dec 2025 23:14:40 +0100 Subject: [PATCH 02/11] chore: change files --- ...ntui-codemods-965c917f-46d4-4a35-b9c4-cbe87124e705.json | 7 +++++++ ...uentui-tokens-6e67aa3e-9b31-4d76-a1a1-8e891bbfa643.json | 7 +++++++ ...eb-components-3349be97-7f32-49ff-bc78-1f2ff01d94b5.json | 7 +++++++ ...ack-utilities-548f764d-130b-4ce2-b7ef-fb3b4ff26403.json | 7 +++++++ 4 files changed, 28 insertions(+) create mode 100644 change/@fluentui-codemods-965c917f-46d4-4a35-b9c4-cbe87124e705.json create mode 100644 change/@fluentui-tokens-6e67aa3e-9b31-4d76-a1a1-8e891bbfa643.json create mode 100644 change/@fluentui-web-components-3349be97-7f32-49ff-bc78-1f2ff01d94b5.json create mode 100644 change/@fluentui-webpack-utilities-548f764d-130b-4ce2-b7ef-fb3b4ff26403.json diff --git a/change/@fluentui-codemods-965c917f-46d4-4a35-b9c4-cbe87124e705.json b/change/@fluentui-codemods-965c917f-46d4-4a35-b9c4-cbe87124e705.json new file mode 100644 index 0000000000000..80340a8d110ca --- /dev/null +++ b/change/@fluentui-codemods-965c917f-46d4-4a35-b9c4-cbe87124e705.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: migrate to new eslint flat config format", + "packageName": "@fluentui/codemods", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-tokens-6e67aa3e-9b31-4d76-a1a1-8e891bbfa643.json b/change/@fluentui-tokens-6e67aa3e-9b31-4d76-a1a1-8e891bbfa643.json new file mode 100644 index 0000000000000..4102507949166 --- /dev/null +++ b/change/@fluentui-tokens-6e67aa3e-9b31-4d76-a1a1-8e891bbfa643.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: migrate to new eslint flat config format", + "packageName": "@fluentui/tokens", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-web-components-3349be97-7f32-49ff-bc78-1f2ff01d94b5.json b/change/@fluentui-web-components-3349be97-7f32-49ff-bc78-1f2ff01d94b5.json new file mode 100644 index 0000000000000..f552c326ee305 --- /dev/null +++ b/change/@fluentui-web-components-3349be97-7f32-49ff-bc78-1f2ff01d94b5.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update verify-packaging script to exclude root eslintrc file", + "packageName": "@fluentui/web-components", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-webpack-utilities-548f764d-130b-4ce2-b7ef-fb3b4ff26403.json b/change/@fluentui-webpack-utilities-548f764d-130b-4ce2-b7ef-fb3b4ff26403.json new file mode 100644 index 0000000000000..dc9535b059965 --- /dev/null +++ b/change/@fluentui-webpack-utilities-548f764d-130b-4ce2-b7ef-fb3b4ff26403.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: migrate to new eslint flat config format", + "packageName": "@fluentui/webpack-utilities", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} From c68db3672a1f7fdf3a1c6f525d7468ba062e5541 Mon Sep 17 00:00:00 2001 From: mainframev Date: Thu, 18 Dec 2025 23:35:47 +0100 Subject: [PATCH 03/11] test: update beachball test --- scripts/beachball/src/config.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/beachball/src/config.test.ts b/scripts/beachball/src/config.test.ts index 8fa2b6eec85b7..da9cee41f7027 100644 --- a/scripts/beachball/src/config.test.ts +++ b/scripts/beachball/src/config.test.ts @@ -19,7 +19,7 @@ describe(`beachball configs`, () => { '**/*.{shot,snap}', '**/*.{test,spec,cy}.{ts,tsx}', '**/*.stories.{ts,tsx}', - '**/.eslintrc.*', + '**/eslint.config.(js|cjs|mjs)', '**/rit.config.js', '**/__fixtures__/**', '**/__mocks__/**', From 2a5cf79347a946477a24db7822d08371a91a02ca Mon Sep 17 00:00:00 2001 From: mainframev Date: Mon, 5 Jan 2026 12:28:35 +0100 Subject: [PATCH 04/11] chore: spread root eslint config for v9 --- eslint.config.js | 13 +++++++++++++ .../library/eslint.config.js | 6 ++++-- .../stories/eslint.config.js | 4 ++-- .../deprecated/react-alert/eslint.config.js | 6 ++++-- .../deprecated/react-infobutton/eslint.config.js | 6 ++++-- .../deprecated/react-virtualizer/eslint.config.js | 4 ++-- .../global-context/eslint.config.js | 6 ++++-- .../react-components/keyboard-keys/eslint.config.js | 6 ++++-- .../priority-overflow/eslint.config.js | 6 ++++-- .../react-accordion/library/eslint.config.js | 6 ++++-- .../react-accordion/stories/eslint.config.js | 4 ++-- .../react-aria/library/eslint.config.js | 6 ++++-- .../react-aria/stories/eslint.config.js | 4 ++-- .../react-avatar/library/eslint.config.js | 6 ++++-- .../react-avatar/stories/eslint.config.js | 4 ++-- .../react-badge/library/eslint.config.js | 6 ++++-- .../react-badge/stories/eslint.config.js | 4 ++-- .../react-breadcrumb/library/eslint.config.js | 6 ++++-- .../react-breadcrumb/stories/eslint.config.js | 4 ++-- .../react-button/library/eslint.config.js | 6 ++++-- .../react-button/stories/eslint.config.js | 4 ++-- .../react-calendar-compat/library/eslint.config.js | 6 ++++-- .../react-calendar-compat/stories/eslint.config.js | 4 ++-- .../react-card/library/eslint.config.js | 6 ++++-- .../react-card/stories/eslint.config.js | 4 ++-- .../react-carousel/library/eslint.config.js | 6 ++++-- .../react-carousel/stories/eslint.config.js | 4 ++-- .../react-checkbox/library/eslint.config.js | 6 ++++-- .../react-checkbox/stories/eslint.config.js | 4 ++-- .../react-color-picker/library/eslint.config.js | 6 ++++-- .../react-color-picker/stories/eslint.config.js | 4 ++-- .../react-colorpicker-compat/eslint.config.js | 6 ++++-- .../react-combobox/library/eslint.config.js | 6 ++++-- .../react-combobox/stories/eslint.config.js | 4 ++-- .../react-components/eslint.config.js | 4 ++-- .../react-context-selector/eslint.config.js | 6 ++++-- .../library/eslint.config.js | 6 ++++-- .../stories/eslint.config.js | 4 ++-- .../react-dialog/library/eslint.config.js | 6 ++++-- .../react-dialog/stories/eslint.config.js | 4 ++-- .../react-divider/library/eslint.config.js | 6 ++++-- .../react-divider/stories/eslint.config.js | 4 ++-- .../react-drawer/library/eslint.config.js | 4 ++-- .../react-drawer/stories/eslint.config.js | 4 ++-- .../react-field/library/eslint.config.js | 6 ++++-- .../react-field/stories/eslint.config.js | 4 ++-- .../react-icons-compat/library/eslint.config.js | 6 ++++-- .../react-icons-compat/stories/eslint.config.js | 4 ++-- .../react-image/library/eslint.config.js | 6 ++++-- .../react-image/stories/eslint.config.js | 4 ++-- .../react-infolabel/library/eslint.config.js | 6 ++++-- .../react-infolabel/stories/eslint.config.js | 4 ++-- .../react-input/library/eslint.config.js | 6 ++++-- .../react-input/stories/eslint.config.js | 4 ++-- .../react-jsx-runtime/eslint.config.js | 4 ++-- .../react-label/library/eslint.config.js | 6 ++++-- .../react-label/stories/eslint.config.js | 4 ++-- .../react-link/library/eslint.config.js | 6 ++++-- .../react-link/stories/eslint.config.js | 4 ++-- .../react-list/library/eslint.config.js | 6 ++++-- .../react-list/stories/eslint.config.js | 4 ++-- .../library/eslint.config.js | 6 ++++-- .../stories/eslint.config.js | 4 ++-- .../react-menu/library/eslint.config.js | 6 ++++-- .../react-menu/stories/eslint.config.js | 4 ++-- .../react-message-bar/library/eslint.config.js | 6 ++++-- .../react-message-bar/stories/eslint.config.js | 4 ++-- .../react-migration-v0-v9/library/eslint.config.js | 4 ++-- .../react-migration-v0-v9/stories/eslint.config.js | 4 ++-- .../react-migration-v8-v9/library/eslint.config.js | 4 ++-- .../react-migration-v8-v9/stories/eslint.config.js | 4 ++-- .../library/eslint.config.js | 6 ++++-- .../stories/eslint.config.js | 4 ++-- .../react-motion/library/eslint.config.js | 6 ++++-- .../react-motion/stories/eslint.config.js | 4 ++-- .../react-nav/library/eslint.config.js | 6 ++++-- .../react-nav/stories/eslint.config.js | 4 ++-- .../react-overflow/library/eslint.config.js | 6 ++++-- .../react-overflow/stories/eslint.config.js | 4 ++-- .../react-persona/library/eslint.config.js | 6 ++++-- .../react-persona/stories/eslint.config.js | 4 ++-- .../react-popover/library/eslint.config.js | 6 ++++-- .../react-popover/stories/eslint.config.js | 4 ++-- .../react-portal-compat-context/eslint.config.js | 6 ++++-- .../react-portal-compat/eslint.config.js | 6 ++++-- .../react-portal/library/eslint.config.js | 6 ++++-- .../react-portal/stories/eslint.config.js | 4 ++-- .../react-positioning/library/eslint.config.js | 6 ++++-- .../react-positioning/stories/eslint.config.js | 4 ++-- .../react-progress/library/eslint.config.js | 6 ++++-- .../react-progress/stories/eslint.config.js | 4 ++-- .../react-provider/library/eslint.config.js | 6 ++++-- .../react-provider/stories/eslint.config.js | 4 ++-- .../react-radio/library/eslint.config.js | 6 ++++-- .../react-radio/stories/eslint.config.js | 4 ++-- .../react-rating/library/eslint.config.js | 6 ++++-- .../react-rating/stories/eslint.config.js | 4 ++-- .../react-search/library/eslint.config.js | 6 ++++-- .../react-search/stories/eslint.config.js | 4 ++-- .../react-select/library/eslint.config.js | 6 ++++-- .../react-select/stories/eslint.config.js | 4 ++-- .../react-shared-contexts/library/eslint.config.js | 4 ++-- .../react-shared-contexts/stories/eslint.config.js | 4 ++-- .../react-skeleton/library/eslint.config.js | 6 ++++-- .../react-skeleton/stories/eslint.config.js | 4 ++-- .../react-slider/library/eslint.config.js | 6 ++++-- .../react-slider/stories/eslint.config.js | 4 ++-- .../react-spinbutton/library/eslint.config.js | 6 ++++-- .../react-spinbutton/stories/eslint.config.js | 4 ++-- .../react-spinner/library/eslint.config.js | 6 ++++-- .../react-spinner/stories/eslint.config.js | 4 ++-- .../react-storybook-addon/eslint.config.js | 4 ++-- .../react-swatch-picker/library/eslint.config.js | 6 ++++-- .../react-swatch-picker/stories/eslint.config.js | 4 ++-- .../react-switch/library/eslint.config.js | 6 ++++-- .../react-switch/stories/eslint.config.js | 4 ++-- .../react-table/library/eslint.config.js | 6 ++++-- .../react-table/stories/eslint.config.js | 4 ++-- .../react-tabs/library/eslint.config.js | 6 ++++-- .../react-tabs/stories/eslint.config.js | 4 ++-- .../react-components/react-tabster/eslint.config.js | 6 ++++-- .../react-tag-picker/library/eslint.config.js | 6 ++++-- .../react-tag-picker/stories/eslint.config.js | 4 ++-- .../react-tags/library/eslint.config.js | 6 ++++-- .../react-tags/stories/eslint.config.js | 4 ++-- .../react-teaching-popover/library/eslint.config.js | 6 ++++-- .../react-teaching-popover/stories/eslint.config.js | 4 ++-- .../react-text/library/eslint.config.js | 6 ++++-- .../react-text/stories/eslint.config.js | 4 ++-- .../react-textarea/library/eslint.config.js | 6 ++++-- .../react-textarea/stories/eslint.config.js | 4 ++-- .../react-theme/library/eslint.config.js | 6 ++++-- .../react-theme/stories/eslint.config.js | 4 ++-- .../library/eslint.config.js | 6 ++++-- .../stories/eslint.config.js | 4 ++-- .../react-toast/library/eslint.config.js | 6 ++++-- .../react-toast/stories/eslint.config.js | 4 ++-- .../react-toolbar/library/eslint.config.js | 6 ++++-- .../react-toolbar/stories/eslint.config.js | 4 ++-- .../react-tooltip/library/eslint.config.js | 6 ++++-- .../react-tooltip/stories/eslint.config.js | 4 ++-- .../react-tree/library/eslint.config.js | 6 ++++-- .../react-tree/stories/eslint.config.js | 4 ++-- .../react-utilities-compat/library/eslint.config.js | 6 ++++-- .../react-utilities-compat/stories/eslint.config.js | 4 ++-- .../react-utilities/eslint.config.js | 6 ++++-- packages/react-components/recipes/eslint.config.js | 4 ++-- .../theme-designer/eslint.config.js | 4 ++-- 148 files changed, 451 insertions(+), 294 deletions(-) create mode 100644 eslint.config.js diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000000000..28e4d7db82fa1 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,13 @@ +// @ts-check + +/** + * Root ESLint configuration for Fluent UI monorepo + * + * - Root config provides base rules for react-components (v9) packages + * - v9 packages extend this config and add overrides as needed + * - v8 and other legacy packages maintain their own independent configs + */ + +const fluentPlugin = require('@fluentui/eslint-plugin'); + +module.exports = fluentPlugin.configs['flat/react']; diff --git a/packages/react-components/component-selector-preview/library/eslint.config.js b/packages/react-components/component-selector-preview/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/component-selector-preview/library/eslint.config.js +++ b/packages/react-components/component-selector-preview/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/component-selector-preview/stories/eslint.config.js b/packages/react-components/component-selector-preview/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/component-selector-preview/stories/eslint.config.js +++ b/packages/react-components/component-selector-preview/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/deprecated/react-alert/eslint.config.js b/packages/react-components/deprecated/react-alert/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/deprecated/react-alert/eslint.config.js +++ b/packages/react-components/deprecated/react-alert/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/deprecated/react-infobutton/eslint.config.js b/packages/react-components/deprecated/react-infobutton/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/deprecated/react-infobutton/eslint.config.js +++ b/packages/react-components/deprecated/react-infobutton/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/deprecated/react-virtualizer/eslint.config.js b/packages/react-components/deprecated/react-virtualizer/eslint.config.js index 185228a80e339..d2c9b48a74efb 100644 --- a/packages/react-components/deprecated/react-virtualizer/eslint.config.js +++ b/packages/react-components/deprecated/react-virtualizer/eslint.config.js @@ -1,9 +1,9 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = [ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { '@typescript-eslint/no-deprecated': 'off', diff --git a/packages/react-components/global-context/eslint.config.js b/packages/react-components/global-context/eslint.config.js index ec2e7cb1fc479..dbf994dec5e48 100644 --- a/packages/react-components/global-context/eslint.config.js +++ b/packages/react-components/global-context/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/keyboard-keys/eslint.config.js b/packages/react-components/keyboard-keys/eslint.config.js index ec2e7cb1fc479..dbf994dec5e48 100644 --- a/packages/react-components/keyboard-keys/eslint.config.js +++ b/packages/react-components/keyboard-keys/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/priority-overflow/eslint.config.js b/packages/react-components/priority-overflow/eslint.config.js index ec2e7cb1fc479..dbf994dec5e48 100644 --- a/packages/react-components/priority-overflow/eslint.config.js +++ b/packages/react-components/priority-overflow/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-accordion/library/eslint.config.js b/packages/react-components/react-accordion/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-accordion/library/eslint.config.js +++ b/packages/react-components/react-accordion/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-accordion/stories/eslint.config.js b/packages/react-components/react-accordion/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-accordion/stories/eslint.config.js +++ b/packages/react-components/react-accordion/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-aria/library/eslint.config.js b/packages/react-components/react-aria/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-aria/library/eslint.config.js +++ b/packages/react-components/react-aria/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-aria/stories/eslint.config.js b/packages/react-components/react-aria/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-aria/stories/eslint.config.js +++ b/packages/react-components/react-aria/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-avatar/library/eslint.config.js b/packages/react-components/react-avatar/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-avatar/library/eslint.config.js +++ b/packages/react-components/react-avatar/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-avatar/stories/eslint.config.js b/packages/react-components/react-avatar/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-avatar/stories/eslint.config.js +++ b/packages/react-components/react-avatar/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-badge/library/eslint.config.js b/packages/react-components/react-badge/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-badge/library/eslint.config.js +++ b/packages/react-components/react-badge/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-badge/stories/eslint.config.js b/packages/react-components/react-badge/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-badge/stories/eslint.config.js +++ b/packages/react-components/react-badge/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-breadcrumb/library/eslint.config.js b/packages/react-components/react-breadcrumb/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-breadcrumb/library/eslint.config.js +++ b/packages/react-components/react-breadcrumb/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-breadcrumb/stories/eslint.config.js b/packages/react-components/react-breadcrumb/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-breadcrumb/stories/eslint.config.js +++ b/packages/react-components/react-breadcrumb/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-button/library/eslint.config.js b/packages/react-components/react-button/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-button/library/eslint.config.js +++ b/packages/react-components/react-button/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-button/stories/eslint.config.js b/packages/react-components/react-button/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-button/stories/eslint.config.js +++ b/packages/react-components/react-button/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-calendar-compat/library/eslint.config.js b/packages/react-components/react-calendar-compat/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-calendar-compat/library/eslint.config.js +++ b/packages/react-components/react-calendar-compat/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-calendar-compat/stories/eslint.config.js b/packages/react-components/react-calendar-compat/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-calendar-compat/stories/eslint.config.js +++ b/packages/react-components/react-calendar-compat/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-card/library/eslint.config.js b/packages/react-components/react-card/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-card/library/eslint.config.js +++ b/packages/react-components/react-card/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-card/stories/eslint.config.js b/packages/react-components/react-card/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-card/stories/eslint.config.js +++ b/packages/react-components/react-card/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-carousel/library/eslint.config.js b/packages/react-components/react-carousel/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-carousel/library/eslint.config.js +++ b/packages/react-components/react-carousel/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-carousel/stories/eslint.config.js b/packages/react-components/react-carousel/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-carousel/stories/eslint.config.js +++ b/packages/react-components/react-carousel/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-checkbox/library/eslint.config.js b/packages/react-components/react-checkbox/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-checkbox/library/eslint.config.js +++ b/packages/react-components/react-checkbox/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-checkbox/stories/eslint.config.js b/packages/react-components/react-checkbox/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-checkbox/stories/eslint.config.js +++ b/packages/react-components/react-checkbox/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-color-picker/library/eslint.config.js b/packages/react-components/react-color-picker/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-color-picker/library/eslint.config.js +++ b/packages/react-components/react-color-picker/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-color-picker/stories/eslint.config.js b/packages/react-components/react-color-picker/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-color-picker/stories/eslint.config.js +++ b/packages/react-components/react-color-picker/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-colorpicker-compat/eslint.config.js b/packages/react-components/react-colorpicker-compat/eslint.config.js index ec2e7cb1fc479..dbf994dec5e48 100644 --- a/packages/react-components/react-colorpicker-compat/eslint.config.js +++ b/packages/react-components/react-colorpicker-compat/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-combobox/library/eslint.config.js b/packages/react-components/react-combobox/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-combobox/library/eslint.config.js +++ b/packages/react-components/react-combobox/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-combobox/stories/eslint.config.js b/packages/react-components/react-combobox/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-combobox/stories/eslint.config.js +++ b/packages/react-components/react-combobox/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-components/eslint.config.js b/packages/react-components/react-components/eslint.config.js index 8d8a70cba7b28..cc6dd31a1cf16 100644 --- a/packages/react-components/react-components/eslint.config.js +++ b/packages/react-components/react-components/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { files: ['src/index.ts'], rules: { diff --git a/packages/react-components/react-context-selector/eslint.config.js b/packages/react-components/react-context-selector/eslint.config.js index ec2e7cb1fc479..dbf994dec5e48 100644 --- a/packages/react-components/react-context-selector/eslint.config.js +++ b/packages/react-components/react-context-selector/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-datepicker-compat/library/eslint.config.js b/packages/react-components/react-datepicker-compat/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-datepicker-compat/library/eslint.config.js +++ b/packages/react-components/react-datepicker-compat/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-datepicker-compat/stories/eslint.config.js b/packages/react-components/react-datepicker-compat/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-datepicker-compat/stories/eslint.config.js +++ b/packages/react-components/react-datepicker-compat/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-dialog/library/eslint.config.js b/packages/react-components/react-dialog/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-dialog/library/eslint.config.js +++ b/packages/react-components/react-dialog/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-dialog/stories/eslint.config.js b/packages/react-components/react-dialog/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-dialog/stories/eslint.config.js +++ b/packages/react-components/react-dialog/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-divider/library/eslint.config.js b/packages/react-components/react-divider/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-divider/library/eslint.config.js +++ b/packages/react-components/react-divider/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-divider/stories/eslint.config.js b/packages/react-components/react-divider/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-divider/stories/eslint.config.js +++ b/packages/react-components/react-divider/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-drawer/library/eslint.config.js b/packages/react-components/react-drawer/library/eslint.config.js index a543563e06e92..2a2d96ef21845 100644 --- a/packages/react-components/react-drawer/library/eslint.config.js +++ b/packages/react-components/react-drawer/library/eslint.config.js @@ -1,9 +1,9 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = [ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { files: ['./src/e2e/*.tsx'], rules: { diff --git a/packages/react-components/react-drawer/stories/eslint.config.js b/packages/react-components/react-drawer/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-drawer/stories/eslint.config.js +++ b/packages/react-components/react-drawer/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-field/library/eslint.config.js b/packages/react-components/react-field/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-field/library/eslint.config.js +++ b/packages/react-components/react-field/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-field/stories/eslint.config.js b/packages/react-components/react-field/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-field/stories/eslint.config.js +++ b/packages/react-components/react-field/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-icons-compat/library/eslint.config.js b/packages/react-components/react-icons-compat/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-icons-compat/library/eslint.config.js +++ b/packages/react-components/react-icons-compat/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-icons-compat/stories/eslint.config.js b/packages/react-components/react-icons-compat/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-icons-compat/stories/eslint.config.js +++ b/packages/react-components/react-icons-compat/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-image/library/eslint.config.js b/packages/react-components/react-image/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-image/library/eslint.config.js +++ b/packages/react-components/react-image/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-image/stories/eslint.config.js b/packages/react-components/react-image/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-image/stories/eslint.config.js +++ b/packages/react-components/react-image/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-infolabel/library/eslint.config.js b/packages/react-components/react-infolabel/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-infolabel/library/eslint.config.js +++ b/packages/react-components/react-infolabel/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-infolabel/stories/eslint.config.js b/packages/react-components/react-infolabel/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-infolabel/stories/eslint.config.js +++ b/packages/react-components/react-infolabel/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-input/library/eslint.config.js b/packages/react-components/react-input/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-input/library/eslint.config.js +++ b/packages/react-components/react-input/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-input/stories/eslint.config.js b/packages/react-components/react-input/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-input/stories/eslint.config.js +++ b/packages/react-components/react-input/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-jsx-runtime/eslint.config.js b/packages/react-components/react-jsx-runtime/eslint.config.js index 862526181bf8c..a290c99bfa0bd 100644 --- a/packages/react-components/react-jsx-runtime/eslint.config.js +++ b/packages/react-components/react-jsx-runtime/eslint.config.js @@ -1,9 +1,9 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../eslint.config.js'); module.exports = [ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { files: ['**/*.{test,spec}.tsx'], rules: { diff --git a/packages/react-components/react-label/library/eslint.config.js b/packages/react-components/react-label/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-label/library/eslint.config.js +++ b/packages/react-components/react-label/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-label/stories/eslint.config.js b/packages/react-components/react-label/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-label/stories/eslint.config.js +++ b/packages/react-components/react-label/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-link/library/eslint.config.js b/packages/react-components/react-link/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-link/library/eslint.config.js +++ b/packages/react-components/react-link/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-link/stories/eslint.config.js b/packages/react-components/react-link/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-link/stories/eslint.config.js +++ b/packages/react-components/react-link/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-list/library/eslint.config.js b/packages/react-components/react-list/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-list/library/eslint.config.js +++ b/packages/react-components/react-list/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-list/stories/eslint.config.js b/packages/react-components/react-list/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-list/stories/eslint.config.js +++ b/packages/react-components/react-list/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-menu-grid-preview/library/eslint.config.js b/packages/react-components/react-menu-grid-preview/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-menu-grid-preview/library/eslint.config.js +++ b/packages/react-components/react-menu-grid-preview/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-menu-grid-preview/stories/eslint.config.js b/packages/react-components/react-menu-grid-preview/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-menu-grid-preview/stories/eslint.config.js +++ b/packages/react-components/react-menu-grid-preview/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-menu/library/eslint.config.js b/packages/react-components/react-menu/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-menu/library/eslint.config.js +++ b/packages/react-components/react-menu/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-menu/stories/eslint.config.js b/packages/react-components/react-menu/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-menu/stories/eslint.config.js +++ b/packages/react-components/react-menu/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-message-bar/library/eslint.config.js b/packages/react-components/react-message-bar/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-message-bar/library/eslint.config.js +++ b/packages/react-components/react-message-bar/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-message-bar/stories/eslint.config.js b/packages/react-components/react-message-bar/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-message-bar/stories/eslint.config.js +++ b/packages/react-components/react-message-bar/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-migration-v0-v9/library/eslint.config.js b/packages/react-components/react-migration-v0-v9/library/eslint.config.js index f66e868e7c590..4b4c5a54236fc 100644 --- a/packages/react-components/react-migration-v0-v9/library/eslint.config.js +++ b/packages/react-components/react-migration-v0-v9/library/eslint.config.js @@ -1,9 +1,9 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = [ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { files: ['**/*.stories.{tsx,ts}'], rules: { diff --git a/packages/react-components/react-migration-v0-v9/stories/eslint.config.js b/packages/react-components/react-migration-v0-v9/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-migration-v0-v9/stories/eslint.config.js +++ b/packages/react-components/react-migration-v0-v9/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-migration-v8-v9/library/eslint.config.js b/packages/react-components/react-migration-v8-v9/library/eslint.config.js index f66e868e7c590..4b4c5a54236fc 100644 --- a/packages/react-components/react-migration-v8-v9/library/eslint.config.js +++ b/packages/react-components/react-migration-v8-v9/library/eslint.config.js @@ -1,9 +1,9 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = [ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { files: ['**/*.stories.{tsx,ts}'], rules: { diff --git a/packages/react-components/react-migration-v8-v9/stories/eslint.config.js b/packages/react-components/react-migration-v8-v9/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-migration-v8-v9/stories/eslint.config.js +++ b/packages/react-components/react-migration-v8-v9/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-motion-components-preview/library/eslint.config.js b/packages/react-components/react-motion-components-preview/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-motion-components-preview/library/eslint.config.js +++ b/packages/react-components/react-motion-components-preview/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-motion-components-preview/stories/eslint.config.js b/packages/react-components/react-motion-components-preview/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-motion-components-preview/stories/eslint.config.js +++ b/packages/react-components/react-motion-components-preview/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-motion/library/eslint.config.js b/packages/react-components/react-motion/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-motion/library/eslint.config.js +++ b/packages/react-components/react-motion/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-motion/stories/eslint.config.js b/packages/react-components/react-motion/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-motion/stories/eslint.config.js +++ b/packages/react-components/react-motion/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-nav/library/eslint.config.js b/packages/react-components/react-nav/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-nav/library/eslint.config.js +++ b/packages/react-components/react-nav/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-nav/stories/eslint.config.js b/packages/react-components/react-nav/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-nav/stories/eslint.config.js +++ b/packages/react-components/react-nav/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-overflow/library/eslint.config.js b/packages/react-components/react-overflow/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-overflow/library/eslint.config.js +++ b/packages/react-components/react-overflow/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-overflow/stories/eslint.config.js b/packages/react-components/react-overflow/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-overflow/stories/eslint.config.js +++ b/packages/react-components/react-overflow/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-persona/library/eslint.config.js b/packages/react-components/react-persona/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-persona/library/eslint.config.js +++ b/packages/react-components/react-persona/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-persona/stories/eslint.config.js b/packages/react-components/react-persona/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-persona/stories/eslint.config.js +++ b/packages/react-components/react-persona/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-popover/library/eslint.config.js b/packages/react-components/react-popover/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-popover/library/eslint.config.js +++ b/packages/react-components/react-popover/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-popover/stories/eslint.config.js b/packages/react-components/react-popover/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-popover/stories/eslint.config.js +++ b/packages/react-components/react-popover/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-portal-compat-context/eslint.config.js b/packages/react-components/react-portal-compat-context/eslint.config.js index ec2e7cb1fc479..dbf994dec5e48 100644 --- a/packages/react-components/react-portal-compat-context/eslint.config.js +++ b/packages/react-components/react-portal-compat-context/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-portal-compat/eslint.config.js b/packages/react-components/react-portal-compat/eslint.config.js index ec2e7cb1fc479..dbf994dec5e48 100644 --- a/packages/react-components/react-portal-compat/eslint.config.js +++ b/packages/react-components/react-portal-compat/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-portal/library/eslint.config.js b/packages/react-components/react-portal/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-portal/library/eslint.config.js +++ b/packages/react-components/react-portal/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-portal/stories/eslint.config.js b/packages/react-components/react-portal/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-portal/stories/eslint.config.js +++ b/packages/react-components/react-portal/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-positioning/library/eslint.config.js b/packages/react-components/react-positioning/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-positioning/library/eslint.config.js +++ b/packages/react-components/react-positioning/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-positioning/stories/eslint.config.js b/packages/react-components/react-positioning/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-positioning/stories/eslint.config.js +++ b/packages/react-components/react-positioning/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-progress/library/eslint.config.js b/packages/react-components/react-progress/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-progress/library/eslint.config.js +++ b/packages/react-components/react-progress/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-progress/stories/eslint.config.js b/packages/react-components/react-progress/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-progress/stories/eslint.config.js +++ b/packages/react-components/react-progress/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-provider/library/eslint.config.js b/packages/react-components/react-provider/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-provider/library/eslint.config.js +++ b/packages/react-components/react-provider/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-provider/stories/eslint.config.js b/packages/react-components/react-provider/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-provider/stories/eslint.config.js +++ b/packages/react-components/react-provider/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-radio/library/eslint.config.js b/packages/react-components/react-radio/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-radio/library/eslint.config.js +++ b/packages/react-components/react-radio/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-radio/stories/eslint.config.js b/packages/react-components/react-radio/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-radio/stories/eslint.config.js +++ b/packages/react-components/react-radio/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-rating/library/eslint.config.js b/packages/react-components/react-rating/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-rating/library/eslint.config.js +++ b/packages/react-components/react-rating/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-rating/stories/eslint.config.js b/packages/react-components/react-rating/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-rating/stories/eslint.config.js +++ b/packages/react-components/react-rating/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-search/library/eslint.config.js b/packages/react-components/react-search/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-search/library/eslint.config.js +++ b/packages/react-components/react-search/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-search/stories/eslint.config.js b/packages/react-components/react-search/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-search/stories/eslint.config.js +++ b/packages/react-components/react-search/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-select/library/eslint.config.js b/packages/react-components/react-select/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-select/library/eslint.config.js +++ b/packages/react-components/react-select/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-select/stories/eslint.config.js b/packages/react-components/react-select/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-select/stories/eslint.config.js +++ b/packages/react-components/react-select/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-shared-contexts/library/eslint.config.js b/packages/react-components/react-shared-contexts/library/eslint.config.js index 82b4c64ee91c9..6efede5f666bd 100644 --- a/packages/react-components/react-shared-contexts/library/eslint.config.js +++ b/packages/react-components/react-shared-contexts/library/eslint.config.js @@ -1,9 +1,9 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = [ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'prefer-const': 'off', diff --git a/packages/react-components/react-shared-contexts/stories/eslint.config.js b/packages/react-components/react-shared-contexts/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-shared-contexts/stories/eslint.config.js +++ b/packages/react-components/react-shared-contexts/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-skeleton/library/eslint.config.js b/packages/react-components/react-skeleton/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-skeleton/library/eslint.config.js +++ b/packages/react-components/react-skeleton/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-skeleton/stories/eslint.config.js b/packages/react-components/react-skeleton/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-skeleton/stories/eslint.config.js +++ b/packages/react-components/react-skeleton/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-slider/library/eslint.config.js b/packages/react-components/react-slider/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-slider/library/eslint.config.js +++ b/packages/react-components/react-slider/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-slider/stories/eslint.config.js b/packages/react-components/react-slider/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-slider/stories/eslint.config.js +++ b/packages/react-components/react-slider/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-spinbutton/library/eslint.config.js b/packages/react-components/react-spinbutton/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-spinbutton/library/eslint.config.js +++ b/packages/react-components/react-spinbutton/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-spinbutton/stories/eslint.config.js b/packages/react-components/react-spinbutton/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-spinbutton/stories/eslint.config.js +++ b/packages/react-components/react-spinbutton/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-spinner/library/eslint.config.js b/packages/react-components/react-spinner/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-spinner/library/eslint.config.js +++ b/packages/react-components/react-spinner/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-spinner/stories/eslint.config.js b/packages/react-components/react-spinner/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-spinner/stories/eslint.config.js +++ b/packages/react-components/react-spinner/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-storybook-addon/eslint.config.js b/packages/react-components/react-storybook-addon/eslint.config.js index ed35a5964ba9e..ac31b0b01860d 100644 --- a/packages/react-components/react-storybook-addon/eslint.config.js +++ b/packages/react-components/react-storybook-addon/eslint.config.js @@ -1,9 +1,9 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../eslint.config.js'); module.exports = [ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { files: ['**/*.ts', '**/*.tsx'], rules: { diff --git a/packages/react-components/react-swatch-picker/library/eslint.config.js b/packages/react-components/react-swatch-picker/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-swatch-picker/library/eslint.config.js +++ b/packages/react-components/react-swatch-picker/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-swatch-picker/stories/eslint.config.js b/packages/react-components/react-swatch-picker/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-swatch-picker/stories/eslint.config.js +++ b/packages/react-components/react-swatch-picker/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-switch/library/eslint.config.js b/packages/react-components/react-switch/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-switch/library/eslint.config.js +++ b/packages/react-components/react-switch/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-switch/stories/eslint.config.js b/packages/react-components/react-switch/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-switch/stories/eslint.config.js +++ b/packages/react-components/react-switch/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-table/library/eslint.config.js b/packages/react-components/react-table/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-table/library/eslint.config.js +++ b/packages/react-components/react-table/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-table/stories/eslint.config.js b/packages/react-components/react-table/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-table/stories/eslint.config.js +++ b/packages/react-components/react-table/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-tabs/library/eslint.config.js b/packages/react-components/react-tabs/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-tabs/library/eslint.config.js +++ b/packages/react-components/react-tabs/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-tabs/stories/eslint.config.js b/packages/react-components/react-tabs/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-tabs/stories/eslint.config.js +++ b/packages/react-components/react-tabs/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-tabster/eslint.config.js b/packages/react-components/react-tabster/eslint.config.js index ec2e7cb1fc479..dbf994dec5e48 100644 --- a/packages/react-components/react-tabster/eslint.config.js +++ b/packages/react-components/react-tabster/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-tag-picker/library/eslint.config.js b/packages/react-components/react-tag-picker/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-tag-picker/library/eslint.config.js +++ b/packages/react-components/react-tag-picker/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-tag-picker/stories/eslint.config.js b/packages/react-components/react-tag-picker/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-tag-picker/stories/eslint.config.js +++ b/packages/react-components/react-tag-picker/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-tags/library/eslint.config.js b/packages/react-components/react-tags/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-tags/library/eslint.config.js +++ b/packages/react-components/react-tags/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-tags/stories/eslint.config.js b/packages/react-components/react-tags/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-tags/stories/eslint.config.js +++ b/packages/react-components/react-tags/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-teaching-popover/library/eslint.config.js b/packages/react-components/react-teaching-popover/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-teaching-popover/library/eslint.config.js +++ b/packages/react-components/react-teaching-popover/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-teaching-popover/stories/eslint.config.js b/packages/react-components/react-teaching-popover/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-teaching-popover/stories/eslint.config.js +++ b/packages/react-components/react-teaching-popover/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-text/library/eslint.config.js b/packages/react-components/react-text/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-text/library/eslint.config.js +++ b/packages/react-components/react-text/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-text/stories/eslint.config.js b/packages/react-components/react-text/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-text/stories/eslint.config.js +++ b/packages/react-components/react-text/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-textarea/library/eslint.config.js b/packages/react-components/react-textarea/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-textarea/library/eslint.config.js +++ b/packages/react-components/react-textarea/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-textarea/stories/eslint.config.js b/packages/react-components/react-textarea/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-textarea/stories/eslint.config.js +++ b/packages/react-components/react-textarea/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-theme/library/eslint.config.js b/packages/react-components/react-theme/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-theme/library/eslint.config.js +++ b/packages/react-components/react-theme/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-theme/stories/eslint.config.js b/packages/react-components/react-theme/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-theme/stories/eslint.config.js +++ b/packages/react-components/react-theme/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-timepicker-compat/library/eslint.config.js b/packages/react-components/react-timepicker-compat/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-timepicker-compat/library/eslint.config.js +++ b/packages/react-components/react-timepicker-compat/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-timepicker-compat/stories/eslint.config.js b/packages/react-components/react-timepicker-compat/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-timepicker-compat/stories/eslint.config.js +++ b/packages/react-components/react-timepicker-compat/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-toast/library/eslint.config.js b/packages/react-components/react-toast/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-toast/library/eslint.config.js +++ b/packages/react-components/react-toast/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-toast/stories/eslint.config.js b/packages/react-components/react-toast/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-toast/stories/eslint.config.js +++ b/packages/react-components/react-toast/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-toolbar/library/eslint.config.js b/packages/react-components/react-toolbar/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-toolbar/library/eslint.config.js +++ b/packages/react-components/react-toolbar/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-toolbar/stories/eslint.config.js b/packages/react-components/react-toolbar/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-toolbar/stories/eslint.config.js +++ b/packages/react-components/react-toolbar/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-tooltip/library/eslint.config.js b/packages/react-components/react-tooltip/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-tooltip/library/eslint.config.js +++ b/packages/react-components/react-tooltip/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-tooltip/stories/eslint.config.js b/packages/react-components/react-tooltip/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-tooltip/stories/eslint.config.js +++ b/packages/react-components/react-tooltip/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-tree/library/eslint.config.js b/packages/react-components/react-tree/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-tree/library/eslint.config.js +++ b/packages/react-components/react-tree/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-tree/stories/eslint.config.js b/packages/react-components/react-tree/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-tree/stories/eslint.config.js +++ b/packages/react-components/react-tree/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-utilities-compat/library/eslint.config.js b/packages/react-components/react-utilities-compat/library/eslint.config.js index ec2e7cb1fc479..7fb38cf8eb968 100644 --- a/packages/react-components/react-utilities-compat/library/eslint.config.js +++ b/packages/react-components/react-utilities-compat/library/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/react-utilities-compat/stories/eslint.config.js b/packages/react-components/react-utilities-compat/stories/eslint.config.js index 0f46bd94e8730..5ccd96ece77ce 100644 --- a/packages/react-components/react-utilities-compat/stories/eslint.config.js +++ b/packages/react-components/react-utilities-compat/stories/eslint.config.js @@ -1,10 +1,10 @@ // @ts-check const { defineConfig } = require('eslint/config'); -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../../eslint.config.js'); module.exports = defineConfig([ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { 'import/no-extraneous-dependencies': [ diff --git a/packages/react-components/react-utilities/eslint.config.js b/packages/react-components/react-utilities/eslint.config.js index ec2e7cb1fc479..dbf994dec5e48 100644 --- a/packages/react-components/react-utilities/eslint.config.js +++ b/packages/react-components/react-utilities/eslint.config.js @@ -1,5 +1,7 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../eslint.config.js'); -module.exports = [...fluentPlugin.configs['flat/react']]; +module.exports = [ + ...rootConfig, +]; diff --git a/packages/react-components/recipes/eslint.config.js b/packages/react-components/recipes/eslint.config.js index 64d0a8982104f..d6a86298a4677 100644 --- a/packages/react-components/recipes/eslint.config.js +++ b/packages/react-components/recipes/eslint.config.js @@ -1,9 +1,9 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../eslint.config.js'); module.exports = [ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { '@nx/workspace-enforce-use-client': 'off', diff --git a/packages/react-components/theme-designer/eslint.config.js b/packages/react-components/theme-designer/eslint.config.js index a3e98bab42992..bed0583efd44b 100644 --- a/packages/react-components/theme-designer/eslint.config.js +++ b/packages/react-components/theme-designer/eslint.config.js @@ -1,9 +1,9 @@ // @ts-check -const fluentPlugin = require('@fluentui/eslint-plugin'); +const rootConfig = require('../../../eslint.config.js'); module.exports = [ - ...fluentPlugin.configs['flat/react'], + ...rootConfig, { rules: { '@griffel/styles-file': 'off', From b4f06803d23d2ecb0aa6e99d1fd1002939af7de0 Mon Sep 17 00:00:00 2001 From: mainframev Date: Mon, 5 Jan 2026 12:33:16 +0100 Subject: [PATCH 05/11] chore(workspace-plugin): merge eslint extensions --- .../workspace-plugin/src/plugins/workspace-plugin.spec.ts | 8 ++------ tools/workspace-plugin/src/plugins/workspace-plugin.ts | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/tools/workspace-plugin/src/plugins/workspace-plugin.spec.ts b/tools/workspace-plugin/src/plugins/workspace-plugin.spec.ts index 455c60473848b..68e7beaaf7ad3 100644 --- a/tools/workspace-plugin/src/plugins/workspace-plugin.spec.ts +++ b/tools/workspace-plugin/src/plugins/workspace-plugin.spec.ts @@ -66,12 +66,8 @@ describe(`workspace-plugin`, () => { "executor": "nx:run-commands", "inputs": Array [ "default", - "{projectRoot}/eslint.config.js", - "{projectRoot}/eslint.config.cjs", - "{projectRoot}/eslint.config.mjs", - "{workspaceRoot}/eslint.config.js", - "{workspaceRoot}/eslint.config.cjs", - "{workspaceRoot}/eslint.config.mjs", + "{projectRoot}/eslint.{js,cjs,mjs}", + "{workspaceRoot}/eslint.config.{js,cjs,mjs}", Object { "externalDependencies": Array [ "eslint", diff --git a/tools/workspace-plugin/src/plugins/workspace-plugin.ts b/tools/workspace-plugin/src/plugins/workspace-plugin.ts index 50da17b2484ea..c96d0175a5a2e 100644 --- a/tools/workspace-plugin/src/plugins/workspace-plugin.ts +++ b/tools/workspace-plugin/src/plugins/workspace-plugin.ts @@ -337,12 +337,8 @@ function buildLintTarget( options: { cwd: projectRoot, command: `${config.pmc.exec} eslint src` }, inputs: [ 'default', - '{projectRoot}/eslint.config.js', - '{projectRoot}/eslint.config.cjs', - '{projectRoot}/eslint.config.mjs', - '{workspaceRoot}/eslint.config.js', - '{workspaceRoot}/eslint.config.cjs', - '{workspaceRoot}/eslint.config.mjs', + '{projectRoot}/eslint.{js,cjs,mjs}', + '{workspaceRoot}/eslint.config.{js,cjs,mjs}', { externalDependencies: ['eslint'] }, ], outputs: ['{options.outputFile}'], From 47fcc68d3825aeeecbbad862ee61a997ba1a207f Mon Sep 17 00:00:00 2001 From: mainframev Date: Mon, 5 Jan 2026 14:07:59 +0100 Subject: [PATCH 06/11] chore(scripts): update base.config beachball --- scripts/beachball/base.config.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/beachball/base.config.json b/scripts/beachball/base.config.json index ca37e0f1f7bce..a4666c0fdd9e5 100644 --- a/scripts/beachball/base.config.json +++ b/scripts/beachball/base.config.json @@ -6,7 +6,8 @@ "**/*.{shot,snap}", "**/*.{test,spec,cy}.{ts,tsx}", "**/*.stories.{ts,tsx}", - "**/eslint.config.(js|cjs|mjs)", + "**/.eslintrc.*", + "**/eslint.config.*", "**/rit.config.js", "**/__fixtures__/**", "**/__mocks__/**", From 1623e226c1685013c147cb929599257ca94b7445 Mon Sep 17 00:00:00 2001 From: mainframev Date: Mon, 5 Jan 2026 14:20:11 +0100 Subject: [PATCH 07/11] fixup! chore: migrate to flat eslint flat configs --- packages/web-components/scripts/verify-packaging.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/web-components/scripts/verify-packaging.js b/packages/web-components/scripts/verify-packaging.js index 88c1cebb0ea81..2726e84bb0cb5 100644 --- a/packages/web-components/scripts/verify-packaging.js +++ b/packages/web-components/scripts/verify-packaging.js @@ -20,6 +20,7 @@ function main() { const rootConfigFiles = [ 'just.config.[jt]s', 'jest.config.[jt]s', + 'eslint.config.js', 'project.json', '.babelrc.json', '.swcrc', From 9ec1402a6961f57ddfb68b5584b677d98100676f Mon Sep 17 00:00:00 2001 From: mainframev Date: Mon, 5 Jan 2026 14:24:02 +0100 Subject: [PATCH 08/11] test(scripts): update beachball test --- scripts/beachball/src/config.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/beachball/src/config.test.ts b/scripts/beachball/src/config.test.ts index da9cee41f7027..b25d9b8e40460 100644 --- a/scripts/beachball/src/config.test.ts +++ b/scripts/beachball/src/config.test.ts @@ -19,7 +19,8 @@ describe(`beachball configs`, () => { '**/*.{shot,snap}', '**/*.{test,spec,cy}.{ts,tsx}', '**/*.stories.{ts,tsx}', - '**/eslint.config.(js|cjs|mjs)', + '**/.eslintrc.*', + '**/eslint.config.*', '**/rit.config.js', '**/__fixtures__/**', '**/__mocks__/**', From 79aa4fd9394ee7a9ce8c54ab479bf88edbf383fd Mon Sep 17 00:00:00 2001 From: mainframev Date: Mon, 5 Jan 2026 15:11:58 +0100 Subject: [PATCH 09/11] chore: format --- .../component-selector-preview/library/eslint.config.js | 4 +--- .../react-components/deprecated/react-alert/eslint.config.js | 4 +--- .../deprecated/react-infobutton/eslint.config.js | 4 +--- packages/react-components/global-context/eslint.config.js | 4 +--- packages/react-components/keyboard-keys/eslint.config.js | 4 +--- packages/react-components/priority-overflow/eslint.config.js | 4 +--- .../react-components/react-accordion/library/eslint.config.js | 4 +--- packages/react-components/react-aria/library/eslint.config.js | 4 +--- .../react-components/react-avatar/library/eslint.config.js | 4 +--- .../react-components/react-badge/library/eslint.config.js | 4 +--- .../react-breadcrumb/library/eslint.config.js | 4 +--- .../react-components/react-button/library/eslint.config.js | 4 +--- .../react-calendar-compat/library/eslint.config.js | 4 +--- packages/react-components/react-card/library/eslint.config.js | 4 +--- .../react-components/react-carousel/library/eslint.config.js | 4 +--- .../react-components/react-checkbox/library/eslint.config.js | 4 +--- .../react-color-picker/library/eslint.config.js | 4 +--- .../react-colorpicker-compat/eslint.config.js | 4 +--- .../react-components/react-combobox/library/eslint.config.js | 4 +--- .../react-components/react-context-selector/eslint.config.js | 4 +--- .../react-datepicker-compat/library/eslint.config.js | 4 +--- .../react-components/react-dialog/library/eslint.config.js | 4 +--- .../react-components/react-divider/library/eslint.config.js | 4 +--- .../react-components/react-field/library/eslint.config.js | 4 +--- .../react-icons-compat/library/eslint.config.js | 4 +--- .../react-components/react-image/library/eslint.config.js | 4 +--- .../react-components/react-infolabel/library/eslint.config.js | 4 +--- .../react-components/react-input/library/eslint.config.js | 4 +--- .../react-components/react-label/library/eslint.config.js | 4 +--- packages/react-components/react-link/library/eslint.config.js | 4 +--- packages/react-components/react-list/library/eslint.config.js | 4 +--- .../react-menu-grid-preview/library/eslint.config.js | 4 +--- packages/react-components/react-menu/library/eslint.config.js | 4 +--- .../react-message-bar/library/eslint.config.js | 4 +--- .../react-motion-components-preview/library/eslint.config.js | 4 +--- .../react-components/react-motion/library/eslint.config.js | 4 +--- packages/react-components/react-nav/library/eslint.config.js | 4 +--- .../react-components/react-overflow/library/eslint.config.js | 4 +--- .../react-components/react-persona/library/eslint.config.js | 4 +--- .../react-components/react-popover/library/eslint.config.js | 4 +--- .../react-portal-compat-context/eslint.config.js | 4 +--- .../react-components/react-portal-compat/eslint.config.js | 4 +--- .../react-components/react-portal/library/eslint.config.js | 4 +--- .../react-positioning/library/eslint.config.js | 4 +--- .../react-components/react-progress/library/eslint.config.js | 4 +--- .../react-components/react-provider/library/eslint.config.js | 4 +--- .../react-components/react-radio/library/eslint.config.js | 4 +--- .../react-components/react-rating/library/eslint.config.js | 4 +--- .../react-components/react-search/library/eslint.config.js | 4 +--- .../react-components/react-select/library/eslint.config.js | 4 +--- .../react-components/react-skeleton/library/eslint.config.js | 4 +--- .../react-components/react-slider/library/eslint.config.js | 4 +--- .../react-spinbutton/library/eslint.config.js | 4 +--- .../react-components/react-spinner/library/eslint.config.js | 4 +--- .../react-swatch-picker/library/eslint.config.js | 4 +--- .../react-components/react-switch/library/eslint.config.js | 4 +--- .../react-components/react-table/library/eslint.config.js | 4 +--- packages/react-components/react-tabs/library/eslint.config.js | 4 +--- packages/react-components/react-tabster/eslint.config.js | 4 +--- .../react-tag-picker/library/eslint.config.js | 4 +--- packages/react-components/react-tags/library/eslint.config.js | 4 +--- .../react-teaching-popover/library/eslint.config.js | 4 +--- packages/react-components/react-text/library/eslint.config.js | 4 +--- .../react-components/react-textarea/library/eslint.config.js | 4 +--- .../react-components/react-theme/library/eslint.config.js | 4 +--- .../react-timepicker-compat/library/eslint.config.js | 4 +--- .../react-components/react-toast/library/eslint.config.js | 4 +--- .../react-components/react-toolbar/library/eslint.config.js | 4 +--- .../react-components/react-tooltip/library/eslint.config.js | 4 +--- packages/react-components/react-tree/library/eslint.config.js | 4 +--- .../react-utilities-compat/library/eslint.config.js | 4 +--- packages/react-components/react-utilities/eslint.config.js | 4 +--- 72 files changed, 72 insertions(+), 216 deletions(-) diff --git a/packages/react-components/component-selector-preview/library/eslint.config.js b/packages/react-components/component-selector-preview/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/component-selector-preview/library/eslint.config.js +++ b/packages/react-components/component-selector-preview/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/deprecated/react-alert/eslint.config.js b/packages/react-components/deprecated/react-alert/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/deprecated/react-alert/eslint.config.js +++ b/packages/react-components/deprecated/react-alert/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/deprecated/react-infobutton/eslint.config.js b/packages/react-components/deprecated/react-infobutton/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/deprecated/react-infobutton/eslint.config.js +++ b/packages/react-components/deprecated/react-infobutton/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/global-context/eslint.config.js b/packages/react-components/global-context/eslint.config.js index dbf994dec5e48..84160d8835958 100644 --- a/packages/react-components/global-context/eslint.config.js +++ b/packages/react-components/global-context/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/keyboard-keys/eslint.config.js b/packages/react-components/keyboard-keys/eslint.config.js index dbf994dec5e48..84160d8835958 100644 --- a/packages/react-components/keyboard-keys/eslint.config.js +++ b/packages/react-components/keyboard-keys/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/priority-overflow/eslint.config.js b/packages/react-components/priority-overflow/eslint.config.js index dbf994dec5e48..84160d8835958 100644 --- a/packages/react-components/priority-overflow/eslint.config.js +++ b/packages/react-components/priority-overflow/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-accordion/library/eslint.config.js b/packages/react-components/react-accordion/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-accordion/library/eslint.config.js +++ b/packages/react-components/react-accordion/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-aria/library/eslint.config.js b/packages/react-components/react-aria/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-aria/library/eslint.config.js +++ b/packages/react-components/react-aria/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-avatar/library/eslint.config.js b/packages/react-components/react-avatar/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-avatar/library/eslint.config.js +++ b/packages/react-components/react-avatar/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-badge/library/eslint.config.js b/packages/react-components/react-badge/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-badge/library/eslint.config.js +++ b/packages/react-components/react-badge/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-breadcrumb/library/eslint.config.js b/packages/react-components/react-breadcrumb/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-breadcrumb/library/eslint.config.js +++ b/packages/react-components/react-breadcrumb/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-button/library/eslint.config.js b/packages/react-components/react-button/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-button/library/eslint.config.js +++ b/packages/react-components/react-button/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-calendar-compat/library/eslint.config.js b/packages/react-components/react-calendar-compat/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-calendar-compat/library/eslint.config.js +++ b/packages/react-components/react-calendar-compat/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-card/library/eslint.config.js b/packages/react-components/react-card/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-card/library/eslint.config.js +++ b/packages/react-components/react-card/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-carousel/library/eslint.config.js b/packages/react-components/react-carousel/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-carousel/library/eslint.config.js +++ b/packages/react-components/react-carousel/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-checkbox/library/eslint.config.js b/packages/react-components/react-checkbox/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-checkbox/library/eslint.config.js +++ b/packages/react-components/react-checkbox/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-color-picker/library/eslint.config.js b/packages/react-components/react-color-picker/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-color-picker/library/eslint.config.js +++ b/packages/react-components/react-color-picker/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-colorpicker-compat/eslint.config.js b/packages/react-components/react-colorpicker-compat/eslint.config.js index dbf994dec5e48..84160d8835958 100644 --- a/packages/react-components/react-colorpicker-compat/eslint.config.js +++ b/packages/react-components/react-colorpicker-compat/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-combobox/library/eslint.config.js b/packages/react-components/react-combobox/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-combobox/library/eslint.config.js +++ b/packages/react-components/react-combobox/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-context-selector/eslint.config.js b/packages/react-components/react-context-selector/eslint.config.js index dbf994dec5e48..84160d8835958 100644 --- a/packages/react-components/react-context-selector/eslint.config.js +++ b/packages/react-components/react-context-selector/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-datepicker-compat/library/eslint.config.js b/packages/react-components/react-datepicker-compat/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-datepicker-compat/library/eslint.config.js +++ b/packages/react-components/react-datepicker-compat/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-dialog/library/eslint.config.js b/packages/react-components/react-dialog/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-dialog/library/eslint.config.js +++ b/packages/react-components/react-dialog/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-divider/library/eslint.config.js b/packages/react-components/react-divider/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-divider/library/eslint.config.js +++ b/packages/react-components/react-divider/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-field/library/eslint.config.js b/packages/react-components/react-field/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-field/library/eslint.config.js +++ b/packages/react-components/react-field/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-icons-compat/library/eslint.config.js b/packages/react-components/react-icons-compat/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-icons-compat/library/eslint.config.js +++ b/packages/react-components/react-icons-compat/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-image/library/eslint.config.js b/packages/react-components/react-image/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-image/library/eslint.config.js +++ b/packages/react-components/react-image/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-infolabel/library/eslint.config.js b/packages/react-components/react-infolabel/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-infolabel/library/eslint.config.js +++ b/packages/react-components/react-infolabel/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-input/library/eslint.config.js b/packages/react-components/react-input/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-input/library/eslint.config.js +++ b/packages/react-components/react-input/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-label/library/eslint.config.js b/packages/react-components/react-label/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-label/library/eslint.config.js +++ b/packages/react-components/react-label/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-link/library/eslint.config.js b/packages/react-components/react-link/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-link/library/eslint.config.js +++ b/packages/react-components/react-link/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-list/library/eslint.config.js b/packages/react-components/react-list/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-list/library/eslint.config.js +++ b/packages/react-components/react-list/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-menu-grid-preview/library/eslint.config.js b/packages/react-components/react-menu-grid-preview/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-menu-grid-preview/library/eslint.config.js +++ b/packages/react-components/react-menu-grid-preview/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-menu/library/eslint.config.js b/packages/react-components/react-menu/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-menu/library/eslint.config.js +++ b/packages/react-components/react-menu/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-message-bar/library/eslint.config.js b/packages/react-components/react-message-bar/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-message-bar/library/eslint.config.js +++ b/packages/react-components/react-message-bar/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-motion-components-preview/library/eslint.config.js b/packages/react-components/react-motion-components-preview/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-motion-components-preview/library/eslint.config.js +++ b/packages/react-components/react-motion-components-preview/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-motion/library/eslint.config.js b/packages/react-components/react-motion/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-motion/library/eslint.config.js +++ b/packages/react-components/react-motion/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-nav/library/eslint.config.js b/packages/react-components/react-nav/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-nav/library/eslint.config.js +++ b/packages/react-components/react-nav/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-overflow/library/eslint.config.js b/packages/react-components/react-overflow/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-overflow/library/eslint.config.js +++ b/packages/react-components/react-overflow/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-persona/library/eslint.config.js b/packages/react-components/react-persona/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-persona/library/eslint.config.js +++ b/packages/react-components/react-persona/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-popover/library/eslint.config.js b/packages/react-components/react-popover/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-popover/library/eslint.config.js +++ b/packages/react-components/react-popover/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-portal-compat-context/eslint.config.js b/packages/react-components/react-portal-compat-context/eslint.config.js index dbf994dec5e48..84160d8835958 100644 --- a/packages/react-components/react-portal-compat-context/eslint.config.js +++ b/packages/react-components/react-portal-compat-context/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-portal-compat/eslint.config.js b/packages/react-components/react-portal-compat/eslint.config.js index dbf994dec5e48..84160d8835958 100644 --- a/packages/react-components/react-portal-compat/eslint.config.js +++ b/packages/react-components/react-portal-compat/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-portal/library/eslint.config.js b/packages/react-components/react-portal/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-portal/library/eslint.config.js +++ b/packages/react-components/react-portal/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-positioning/library/eslint.config.js b/packages/react-components/react-positioning/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-positioning/library/eslint.config.js +++ b/packages/react-components/react-positioning/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-progress/library/eslint.config.js b/packages/react-components/react-progress/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-progress/library/eslint.config.js +++ b/packages/react-components/react-progress/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-provider/library/eslint.config.js b/packages/react-components/react-provider/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-provider/library/eslint.config.js +++ b/packages/react-components/react-provider/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-radio/library/eslint.config.js b/packages/react-components/react-radio/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-radio/library/eslint.config.js +++ b/packages/react-components/react-radio/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-rating/library/eslint.config.js b/packages/react-components/react-rating/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-rating/library/eslint.config.js +++ b/packages/react-components/react-rating/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-search/library/eslint.config.js b/packages/react-components/react-search/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-search/library/eslint.config.js +++ b/packages/react-components/react-search/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-select/library/eslint.config.js b/packages/react-components/react-select/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-select/library/eslint.config.js +++ b/packages/react-components/react-select/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-skeleton/library/eslint.config.js b/packages/react-components/react-skeleton/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-skeleton/library/eslint.config.js +++ b/packages/react-components/react-skeleton/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-slider/library/eslint.config.js b/packages/react-components/react-slider/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-slider/library/eslint.config.js +++ b/packages/react-components/react-slider/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-spinbutton/library/eslint.config.js b/packages/react-components/react-spinbutton/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-spinbutton/library/eslint.config.js +++ b/packages/react-components/react-spinbutton/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-spinner/library/eslint.config.js b/packages/react-components/react-spinner/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-spinner/library/eslint.config.js +++ b/packages/react-components/react-spinner/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-swatch-picker/library/eslint.config.js b/packages/react-components/react-swatch-picker/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-swatch-picker/library/eslint.config.js +++ b/packages/react-components/react-swatch-picker/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-switch/library/eslint.config.js b/packages/react-components/react-switch/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-switch/library/eslint.config.js +++ b/packages/react-components/react-switch/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-table/library/eslint.config.js b/packages/react-components/react-table/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-table/library/eslint.config.js +++ b/packages/react-components/react-table/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-tabs/library/eslint.config.js b/packages/react-components/react-tabs/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-tabs/library/eslint.config.js +++ b/packages/react-components/react-tabs/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-tabster/eslint.config.js b/packages/react-components/react-tabster/eslint.config.js index dbf994dec5e48..84160d8835958 100644 --- a/packages/react-components/react-tabster/eslint.config.js +++ b/packages/react-components/react-tabster/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-tag-picker/library/eslint.config.js b/packages/react-components/react-tag-picker/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-tag-picker/library/eslint.config.js +++ b/packages/react-components/react-tag-picker/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-tags/library/eslint.config.js b/packages/react-components/react-tags/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-tags/library/eslint.config.js +++ b/packages/react-components/react-tags/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-teaching-popover/library/eslint.config.js b/packages/react-components/react-teaching-popover/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-teaching-popover/library/eslint.config.js +++ b/packages/react-components/react-teaching-popover/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-text/library/eslint.config.js b/packages/react-components/react-text/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-text/library/eslint.config.js +++ b/packages/react-components/react-text/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-textarea/library/eslint.config.js b/packages/react-components/react-textarea/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-textarea/library/eslint.config.js +++ b/packages/react-components/react-textarea/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-theme/library/eslint.config.js b/packages/react-components/react-theme/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-theme/library/eslint.config.js +++ b/packages/react-components/react-theme/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-timepicker-compat/library/eslint.config.js b/packages/react-components/react-timepicker-compat/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-timepicker-compat/library/eslint.config.js +++ b/packages/react-components/react-timepicker-compat/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-toast/library/eslint.config.js b/packages/react-components/react-toast/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-toast/library/eslint.config.js +++ b/packages/react-components/react-toast/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-toolbar/library/eslint.config.js b/packages/react-components/react-toolbar/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-toolbar/library/eslint.config.js +++ b/packages/react-components/react-toolbar/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-tooltip/library/eslint.config.js b/packages/react-components/react-tooltip/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-tooltip/library/eslint.config.js +++ b/packages/react-components/react-tooltip/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-tree/library/eslint.config.js b/packages/react-components/react-tree/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-tree/library/eslint.config.js +++ b/packages/react-components/react-tree/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-utilities-compat/library/eslint.config.js b/packages/react-components/react-utilities-compat/library/eslint.config.js index 7fb38cf8eb968..cc02d6523de7b 100644 --- a/packages/react-components/react-utilities-compat/library/eslint.config.js +++ b/packages/react-components/react-utilities-compat/library/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; diff --git a/packages/react-components/react-utilities/eslint.config.js b/packages/react-components/react-utilities/eslint.config.js index dbf994dec5e48..84160d8835958 100644 --- a/packages/react-components/react-utilities/eslint.config.js +++ b/packages/react-components/react-utilities/eslint.config.js @@ -2,6 +2,4 @@ const rootConfig = require('../../../eslint.config.js'); -module.exports = [ - ...rootConfig, -]; +module.exports = [...rootConfig]; From 9a32ec8e78949dad284ff980417c0f3f6135c948 Mon Sep 17 00:00:00 2001 From: mainframev Date: Tue, 6 Jan 2026 15:29:43 +0100 Subject: [PATCH 10/11] fixup! chore: change files --- ...ntui-codemods-965c917f-46d4-4a35-b9c4-cbe87124e705.json | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 change/@fluentui-codemods-965c917f-46d4-4a35-b9c4-cbe87124e705.json diff --git a/change/@fluentui-codemods-965c917f-46d4-4a35-b9c4-cbe87124e705.json b/change/@fluentui-codemods-965c917f-46d4-4a35-b9c4-cbe87124e705.json deleted file mode 100644 index 80340a8d110ca..0000000000000 --- a/change/@fluentui-codemods-965c917f-46d4-4a35-b9c4-cbe87124e705.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "type": "none", - "comment": "chore: migrate to new eslint flat config format", - "packageName": "@fluentui/codemods", - "email": "vgenaev@gmail.com", - "dependentChangeType": "none" -} From 8fe9d2f43109684c52b8d4edc40d52887a4b5b71 Mon Sep 17 00:00:00 2001 From: mainframev Date: Tue, 6 Jan 2026 15:31:32 +0100 Subject: [PATCH 11/11] fixup! chore: spread root eslint config for v9 --- nx.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx.json b/nx.json index 908ace8cdc516..65353a02d372f 100644 --- a/nx.json +++ b/nx.json @@ -68,7 +68,7 @@ "executor": "nx:run-commands", "dependsOn": ["build"], "cache": true, - "inputs": ["default"], + "inputs": ["default", "{workspaceRoot/eslint.config.js}"], "options": { "command": "eslint src" }