-
Notifications
You must be signed in to change notification settings - Fork 2.9k
chore: migrate to eslint flat configs #35590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Hotell
merged 11 commits into
microsoft:master
from
mainframev:chore/migrate-to-flat-cfgs-vol-4
Jan 7, 2026
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1e024f9
chore: migrate to flat eslint flat configs
mainframev 9e4c3dd
chore: change files
mainframev c68db36
test: update beachball test
mainframev 2a5cf79
chore: spread root eslint config for v9
mainframev b4f0680
chore(workspace-plugin): merge eslint extensions
mainframev 47fcc68
chore(scripts): update base.config beachball
mainframev 1623e22
fixup! chore: migrate to flat eslint flat configs
mainframev 9ec1402
test(scripts): update beachball test
mainframev 79aa4fd
chore: format
mainframev 9a32ec8
fixup! chore: change files
mainframev 8fe9d2f
fixup! chore: spread root eslint config for v9
mainframev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
change/@fluentui-tokens-6e67aa3e-9b31-4d76-a1a1-8e891bbfa643.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: migrate to new eslint flat config format", | ||
| "packageName": "@fluentui/tokens", | ||
| "email": "vgenaev@gmail.com", | ||
| "dependentChangeType": "none" | ||
| } |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-web-components-3349be97-7f32-49ff-bc78-1f2ff01d94b5.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
| } | ||
7 changes: 7 additions & 0 deletions
7
change/@fluentui-webpack-utilities-548f764d-130b-4ce2-b7ef-fb3b4ff26403.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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']; | ||
mainframev marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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', | ||
| }, | ||
| }, | ||
| ]; |
4 changes: 2 additions & 2 deletions
4
packages/react-components/component-selector-preview/library/eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| // @ts-check | ||
|
|
||
| const fluentPlugin = require('@fluentui/eslint-plugin'); | ||
| const rootConfig = require('../../../../eslint.config.js'); | ||
|
|
||
| module.exports = [...fluentPlugin.configs['flat/react']]; | ||
| module.exports = [...rootConfig]; |
4 changes: 2 additions & 2 deletions
4
packages/react-components/component-selector-preview/stories/eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/react-components/deprecated/react-alert/eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| // @ts-check | ||
|
|
||
| const fluentPlugin = require('@fluentui/eslint-plugin'); | ||
| const rootConfig = require('../../../../eslint.config.js'); | ||
|
|
||
| module.exports = [...fluentPlugin.configs['flat/react']]; | ||
| module.exports = [...rootConfig]; |
4 changes: 2 additions & 2 deletions
4
packages/react-components/deprecated/react-infobutton/eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| // @ts-check | ||
|
|
||
| const fluentPlugin = require('@fluentui/eslint-plugin'); | ||
| const rootConfig = require('../../../../eslint.config.js'); | ||
|
|
||
| module.exports = [...fluentPlugin.configs['flat/react']]; | ||
| module.exports = [...rootConfig]; |
4 changes: 2 additions & 2 deletions
4
packages/react-components/deprecated/react-virtualizer/eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| // @ts-check | ||
|
|
||
| const fluentPlugin = require('@fluentui/eslint-plugin'); | ||
| const rootConfig = require('../../../eslint.config.js'); | ||
|
|
||
| module.exports = [...fluentPlugin.configs['flat/react']]; | ||
| module.exports = [...rootConfig]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| // @ts-check | ||
|
|
||
| const fluentPlugin = require('@fluentui/eslint-plugin'); | ||
| const rootConfig = require('../../../eslint.config.js'); | ||
|
|
||
| module.exports = [...fluentPlugin.configs['flat/react']]; | ||
| module.exports = [...rootConfig]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| // @ts-check | ||
|
|
||
| const fluentPlugin = require('@fluentui/eslint-plugin'); | ||
| const rootConfig = require('../../../eslint.config.js'); | ||
|
|
||
| module.exports = [...fluentPlugin.configs['flat/react']]; | ||
| module.exports = [...rootConfig]; |
4 changes: 2 additions & 2 deletions
4
packages/react-components/react-accordion/library/eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| // @ts-check | ||
|
|
||
| const fluentPlugin = require('@fluentui/eslint-plugin'); | ||
| const rootConfig = require('../../../../eslint.config.js'); | ||
|
|
||
| module.exports = [...fluentPlugin.configs['flat/react']]; | ||
| module.exports = [...rootConfig]; |
4 changes: 2 additions & 2 deletions
4
packages/react-components/react-accordion/stories/eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/react-components/react-aria/library/eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| // @ts-check | ||
|
|
||
| const fluentPlugin = require('@fluentui/eslint-plugin'); | ||
| const rootConfig = require('../../../../eslint.config.js'); | ||
|
|
||
| module.exports = [...fluentPlugin.configs['flat/react']]; | ||
| module.exports = [...rootConfig]; |
4 changes: 2 additions & 2 deletions
4
packages/react-components/react-aria/stories/eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/react-components/react-avatar/library/eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| // @ts-check | ||
|
|
||
| const fluentPlugin = require('@fluentui/eslint-plugin'); | ||
| const rootConfig = require('../../../../eslint.config.js'); | ||
|
|
||
| module.exports = [...fluentPlugin.configs['flat/react']]; | ||
| module.exports = [...rootConfig]; |
4 changes: 2 additions & 2 deletions
4
packages/react-components/react-avatar/stories/eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/react-components/react-badge/library/eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| // @ts-check | ||
|
|
||
| const fluentPlugin = require('@fluentui/eslint-plugin'); | ||
| const rootConfig = require('../../../../eslint.config.js'); | ||
|
|
||
| module.exports = [...fluentPlugin.configs['flat/react']]; | ||
| module.exports = [...rootConfig]; |
4 changes: 2 additions & 2 deletions
4
packages/react-components/react-badge/stories/eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/react-components/react-breadcrumb/library/eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| // @ts-check | ||
|
|
||
| const fluentPlugin = require('@fluentui/eslint-plugin'); | ||
| const rootConfig = require('../../../../eslint.config.js'); | ||
|
|
||
| module.exports = [...fluentPlugin.configs['flat/react']]; | ||
| module.exports = [...rootConfig]; |
4 changes: 2 additions & 2 deletions
4
packages/react-components/react-breadcrumb/stories/eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/react-components/react-button/library/eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| // @ts-check | ||
|
|
||
| const fluentPlugin = require('@fluentui/eslint-plugin'); | ||
| const rootConfig = require('../../../../eslint.config.js'); | ||
|
|
||
| module.exports = [...fluentPlugin.configs['flat/react']]; | ||
| module.exports = [...rootConfig]; |
4 changes: 2 additions & 2 deletions
4
packages/react-components/react-button/stories/eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/react-components/react-calendar-compat/library/eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| // @ts-check | ||
|
|
||
| const fluentPlugin = require('@fluentui/eslint-plugin'); | ||
| const rootConfig = require('../../../../eslint.config.js'); | ||
|
|
||
| module.exports = [...fluentPlugin.configs['flat/react']]; | ||
| module.exports = [...rootConfig]; |
4 changes: 2 additions & 2 deletions
4
packages/react-components/react-calendar-compat/stories/eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/react-components/react-card/library/eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| // @ts-check | ||
|
|
||
| const fluentPlugin = require('@fluentui/eslint-plugin'); | ||
| const rootConfig = require('../../../../eslint.config.js'); | ||
|
|
||
| module.exports = [...fluentPlugin.configs['flat/react']]; | ||
| module.exports = [...rootConfig]; |
4 changes: 2 additions & 2 deletions
4
packages/react-components/react-card/stories/eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.