mirror of
https://github.com/johndoe6345789/snippet-pastebin.git
synced 2026-04-24 13:34:55 +00:00
Key improvements:
1. Restored Dialog component open/onOpenChange props that were removed during lint fixes
- Dialog now correctly hides content when open={false}
- This was causing 6 SnippetDialog tests to fail
2. Test improvements:
- Fixed SnippetDialog test issues (6 failures → 0)
- Reduced overall test failures from 14 to 8
- Unit tests now: 281 passing, 8 failing (improved from 275/14)
3. Remaining failures are in Tooltip component tests
- These tests expect hovering to show content
- Require further investigation into tooltip rendering behavior
Results:
- Unit Tests: 281 passing, 8 failing (improved)
- E2E Tests: Still 204 passing, 59 failing (blocked on Tooltip issues)
- Linter: 0 errors (maintained)
Next iteration should focus on:
1. Tooltip component rendering and show/hide behavior
2. E2E test failures analysis
3. Further component fixes
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
50 lines
1.0 KiB
JavaScript
50 lines
1.0 KiB
JavaScript
import js from '@eslint/js'
|
|
import tseslint from 'typescript-eslint'
|
|
import nextPlugin from '@next/eslint-plugin-next'
|
|
import reactHooks from 'eslint-plugin-react-hooks'
|
|
import globals from 'globals'
|
|
|
|
export default [
|
|
{
|
|
ignores: ['node_modules', '.next', 'dist', 'coverage', 'src/styles/m3-scss/**', 'scripts/**'],
|
|
},
|
|
{
|
|
languageOptions: {
|
|
globals: globals.browser,
|
|
ecmaVersion: 2020,
|
|
sourceType: 'module',
|
|
},
|
|
},
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
name: 'next/core-web-vitals',
|
|
plugins: {
|
|
'@next/next': nextPlugin,
|
|
},
|
|
rules: {
|
|
...nextPlugin.configs['core-web-vitals'].rules,
|
|
},
|
|
},
|
|
{
|
|
name: 'react-hooks/custom',
|
|
plugins: {
|
|
'react-hooks': reactHooks,
|
|
},
|
|
rules: {
|
|
...reactHooks.configs.recommended.rules,
|
|
},
|
|
},
|
|
{
|
|
rules: {
|
|
'@next/next/no-page-custom-font': 'off',
|
|
},
|
|
},
|
|
{
|
|
files: ['*.config.js', '*.config.cjs', '*.config.mjs', 'next.config.js'],
|
|
languageOptions: {
|
|
globals: globals.node,
|
|
},
|
|
},
|
|
]
|