- Add "type": "module" to @tpmjs/eslint-config package.json for ES module support - Rename eslint.config.js to eslint.config.mjs in apps/web and packages/ui - Update ESLint configs to ignore build directories (.next, dist, .turbo) - Extend import/no-internal-modules allowlist for Next.js, testing libs, and React - Fix unescaped quotes in playground page code elements - Convert CardDescriptionProps from empty interface to type alias - Disable jsx-a11y/no-autofocus rule in test files - Change web app lint script from 'next lint' to 'eslint .' - Fix TypeScript ref type inference errors in UI package tests by using non-null assertions - Disable Biome noNonNullAssertion rule for test files 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
28 lines
608 B
JavaScript
28 lines
608 B
JavaScript
import reactConfig from '@tpmjs/eslint-config/react.js';
|
|
|
|
export default [
|
|
{
|
|
ignores: ['dist/**', 'node_modules/**', 'eslint.config.mjs']
|
|
},
|
|
...reactConfig,
|
|
{
|
|
rules: {
|
|
'import/no-internal-modules': ['error', {
|
|
allow: [
|
|
'@tpmjs/ui/*/[!index]*',
|
|
'@tpmjs/utils/*',
|
|
'@tpmjs/types/*',
|
|
'@tpmjs/eslint-config/*',
|
|
'@testing-library/**',
|
|
'react/*',
|
|
]
|
|
}],
|
|
}
|
|
},
|
|
{
|
|
files: ['**/*.test.ts', '**/*.test.tsx', '**/*.spec.ts', '**/*.spec.tsx'],
|
|
rules: {
|
|
'jsx-a11y/no-autofocus': 'off',
|
|
}
|
|
}
|
|
];
|