Skip to content

Commit 47abe25

Browse files
disable import/export line by line
1 parent 8c83109 commit 47abe25

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

eslint.config.mjs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -443,13 +443,6 @@ export default defineConfig(
443443
'react-hooks/static-components': 'off',
444444
},
445445
})),
446-
...['x-charts-pro', 'x-charts-premium', 'x-data-grid'].map((pkgName) => ({
447-
files: [`packages/${pkgName}/src/**/*${EXTENSION_TS}`],
448-
ignores: ['**/*.d.ts'],
449-
rules: {
450-
'import/export': 'off',
451-
},
452-
})),
453446
{
454447
files: [
455448
`test/utils/**/*${EXTENSION_TS}`,

packages/x-charts-premium/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,15 @@ export * from '@mui/x-charts-pro/ChartZoomSlider';
4040
export * from '@mui/x-charts-pro/ChartsToolbarPro';
4141

4242
// Premium utilities
43+
// eslint-disable-next-line import/export
4344
export * from './colorPalettes';
45+
// eslint-disable-next-line import/export
4446
export * from './constants';
47+
// eslint-disable-next-line import/export
4548
export * from './hooks';
49+
// eslint-disable-next-line import/export
4650
export * from './context';
51+
// eslint-disable-next-line import/export
4752
export * from './models';
4853
// Locales should be imported from `@mui/x-charts-premium/locales`
4954
// export * from './locales';

packages/x-charts-pro/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@ export * from '@mui/x-charts/ChartsOverlay';
2626
export * from '@mui/x-charts/ChartsWrapper';
2727

2828
// Pro utilities
29+
// eslint-disable-next-line import/export
2930
export * from './constants';
3031
export * from './hooks';
3132
export * from './context';
3233
export * from './models';
3334
export * from './plugins';
3435
// Locales should be imported from `@mui/x-charts-pro/locales`
3536
// export * from './locales';
37+
// eslint-disable-next-line import/export
3638
export * from './colorPalettes';
3739

3840
// Pro components

packages/x-data-grid/src/hooks/utils/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export * from './useGridApiMethod';
44
export * from './useGridLogger';
55
export { useGridSelector } from './useGridSelector';
66
export * from './useGridNativeEventListener';
7+
// eslint-disable-next-line import/export
78
export * from './useFirstRender';
89
export * from './useOnMount';
910
export * from './useRunOncePerLoop';

0 commit comments

Comments
 (0)