Skip to content

Commit 75c394e

Browse files
authored
style(react-components): add no-restricted-imports to mitigate alpha/beta apis exposure (#34443)
1 parent 09c3aaf commit 75c394e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

packages/react-components/react-components/.eslintrc.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22
"extends": ["plugin:@fluentui/eslint-plugin/react"],
33
"root": true,
44
"overrides": [
5+
{
6+
"files": "src/index.ts",
7+
"rules": {
8+
"no-restricted-imports": "off",
9+
"@typescript-eslint/no-restricted-imports": [
10+
"error",
11+
{
12+
"patterns": [
13+
{
14+
"regex": "@fluentui/react-(infobutton|alert|virtualizer)",
15+
"message": "Alpha/Beta packages cannot be exposed as part of stable api of @fluentui/react-components"
16+
}
17+
]
18+
}
19+
]
20+
}
21+
},
522
{
623
"files": "**/index.ts",
724
"rules": {

0 commit comments

Comments
 (0)