diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 71b1976..96073e5 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -24,7 +24,7 @@ jobs: uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9 - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: - node-version: 22 + node-version: lts/* cache: 'pnpm' - name: Restore node_modules uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 diff --git a/eslint.config.mjs b/eslint.config.ts similarity index 53% rename from eslint.config.mjs rename to eslint.config.ts index 9389886..d9465fb 100644 --- a/eslint.config.mjs +++ b/eslint.config.ts @@ -1,14 +1,18 @@ import globals from 'globals'; import pluginJs from '@eslint/js'; import pluginReact from 'eslint-plugin-react'; +import pluginReactHooks from 'eslint-plugin-react-hooks'; import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; +import tseslint from 'typescript-eslint'; -export default [ - { files: ['**/*.{js,mjs,cjs,jsx}'] }, - { languageOptions: { globals: globals.browser } }, - { ignores: ['src/grammar.js', 'grammar.js', 'src/App.test.jsx'] }, +export default tseslint.config( + {files: ['**/*.{js,mjs,cjs,jsx,ts,tsx}']}, + {languageOptions: {globals: {...globals.browser, ...globals.node}}}, + {ignores: ['src/grammar.js', 'grammar.js', 'build/**']}, pluginJs.configs.recommended, + tseslint.configs.recommended, pluginReact.configs.flat['jsx-runtime'], + pluginReactHooks.configs.flat['recommended-latest'], eslintPluginPrettierRecommended, { rules: { @@ -17,5 +21,5 @@ export default [ 'spaced-comment': ['error', 'always'], 'react/jsx-uses-vars': 1, }, - }, -]; + } +); diff --git a/index.html b/index.html index e5cc208..0a2324f 100644 --- a/index.html +++ b/index.html @@ -12,12 +12,6 @@ homescreen on Android. See https://developers.google.com/web/fundamentals/web-app-manifest/ --> -