diff --git a/eslint.config.mjs b/eslint.config.mjs index 1002e90..793decb 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,11 +1,13 @@ // @ts-check -// import eslint from '@eslint/js'; +import eslint from '@eslint/js'; import tseslint from 'typescript-eslint'; import unusedImports from 'eslint-plugin-unused-imports'; import react from 'eslint-plugin-react'; import reactHooks from 'eslint-plugin-react-hooks'; export default tseslint.config( + eslint.configs.recommended, + ...tseslint.configs.recommended, { files: ["src/**/*.ts", "src/**/*.tsx"], plugins: { diff --git a/src/index.tsx b/src/index.tsx index 226f53e..6f138e8 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -5,7 +5,7 @@ import App from './components/app'; import './index.scss'; const main = document.querySelector('main'); -if (main == null) { +if (main === null) { throw new Error('unable to find main!'); } const root = createRoot(main);