diff --git a/eslint.config.js b/eslint.config.js index ac170ae..0da09fb 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -2,8 +2,27 @@ import js from '@eslint/js'; import globals from 'globals'; import hooks from 'eslint-plugin-react-hooks'; export default [ - {ignores:['dist/**','node_modules/**','public/**','src/data/**','docs/**']}, - js.configs.recommended, - {files:['**/*.{js,jsx,mjs}'],languageOptions:{ecmaVersion:2022,sourceType:'module',globals:{...globals.browser,...globals.node},parserOptions:{ecmaFeatures:{jsx:true}}},rules:{'no-unused-vars':['error',{argsIgnorePattern:'^_',varsIgnorePattern:'^[A-Z]',ignoreRestSiblings:true}],'no-empty':['error',{allowEmptyCatch:true}]}}, - {files:['src/**/*.{js,jsx}'],plugins:{'react-hooks':hooks},rules:{'react-hooks/rules-of-hooks':'error','react-hooks/exhaustive-deps':'error'}}, + { ignores: ['dist/**', 'node_modules/**', 'public/**', 'src/data/**', 'docs/**'] }, + js.configs.recommended, + { + files: ['**/*.{js,jsx,mjs}'], + languageOptions: { + ecmaVersion: 2022, + sourceType: 'module', + globals: { ...globals.browser, ...globals.node }, + parserOptions: { ecmaFeatures: { jsx: true } }, + }, + rules: { + 'no-unused-vars': [ + 'error', + { argsIgnorePattern: '^_', varsIgnorePattern: '^[A-Z]', ignoreRestSiblings: true }, + ], + 'no-empty': ['error', { allowEmptyCatch: true }], + }, + }, + { + files: ['src/**/*.{js,jsx}'], + plugins: { 'react-hooks': hooks }, + rules: { 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'error' }, + }, ]; diff --git a/index.html b/index.html index ebc7ff0..8ce6716 100644 --- a/index.html +++ b/index.html @@ -1,17 +1,24 @@ -
- - - + + + +