Co-authored-by: Matt <77928207+mattzcarey@users.noreply.github.com> Co-authored-by: Konstantin Konstantinov <KKonstantinov@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
27 lines
881 B
JavaScript
27 lines
881 B
JavaScript
// @ts-check
|
|
|
|
import baseConfig from '@modelcontextprotocol/eslint-config';
|
|
|
|
export default [
|
|
...baseConfig,
|
|
{
|
|
files: ['src/**/*.{ts,tsx,js,jsx,mts,cts}'],
|
|
rules: {
|
|
// Allow console statements in examples only
|
|
'no-console': 'off',
|
|
// One-way dependency: @mcp-examples/shared is scaffolding consumed BY
|
|
// stories; it must never import FROM a story package.
|
|
'no-restricted-imports': [
|
|
'error',
|
|
{
|
|
patterns: [
|
|
{
|
|
group: ['@mcp-examples/*', '!@mcp-examples/shared', '../../*/**'],
|
|
message: '@mcp-examples/shared must not import from story packages (one-way dependency).'
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
];
|