Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "feat(eslint-plugin): enable no-export-all:all for all packages public API",
"packageName": "@fluentui/eslint-plugin",
"email": "martinhochel@microsoft.com",
"dependentChangeType": "none"
}
7 changes: 7 additions & 0 deletions packages/eslint-plugin/src/configs/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,13 @@ const typeAwareRules = {
const getOverrides = () => [
// Enable rules requiring type info only for appropriate files/circumstances
...configHelpers.getTypeInfoRuleOverrides(typeAwareRules),
{
files: '**/src/index.{ts,tsx,js}',
rules: {
// TODO: propagate to `error` once all packages barrel files have been fixed
'@rnx-kit/no-export-all': ['warn', { expand: 'all' }],
},
},
{
files: '**/*.{ts,tsx}',
// This turns off a few rules that don't work or are unnecessary for TS, and enables a few
Expand Down
1 change: 1 addition & 0 deletions packages/react-components/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
{
"files": "**/index.ts",
"rules": {
"@rnx-kit/no-export-all": ["error", { "expand": "all" }],
"@fluentui/ban-imports": [
"error",
{
Expand Down