mirror of
https://github.com/johndoe6345789/snippet-pastebin.git
synced 2026-04-24 13:34:55 +00:00
- Implemented tests for various MD3 components including buttons, text fields, dialogs, navigation, menus, progress indicators, and responsive design. - Created utility functions to interact with MD3 components, check their states, and validate accessibility attributes. - Added support for keyboard navigation testing and touch target size validation. - Introduced schema-based component definitions to streamline test implementations.
35 lines
801 B
JavaScript
35 lines
801 B
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/**'],
|
|
},
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
nextPlugin.configs['core-web-vitals'],
|
|
{
|
|
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,
|
|
},
|
|
},
|
|
]
|