diff --git a/bun.lockb b/bun.lockb index 061a462..e9ebac8 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/eslint.config.mjs b/eslint.config.mjs index 438600d..9add6b6 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,13 +1,14 @@ -import pluginJs from '@eslint/js'; -import eslintConfigPrettier from 'eslint-config-prettier'; -import globals from 'globals'; -import tseslint from 'typescript-eslint'; +// @ts-check -/** @type {import('eslint').Linter.Config[]} */ -export default [ - { files: ['**/*.{js,mjs,cjs,ts}'] }, - { languageOptions: { globals: globals.browser } }, - pluginJs.configs.recommended, - ...tseslint.configs.recommended, - eslintConfigPrettier, -]; +import eslint from '@eslint/js'; +import tseslint from 'typescript-eslint'; +// @ts-expect-error No type-def +import eslintConfigPrettier from 'eslint-config-prettier'; + +export default tseslint.config( + { files: ['{app,src}/**/*.{js,mjs,ts}'] }, + { ignores: ['build/*'] }, + eslint.configs.recommended, + tseslint.configs.recommended, + eslintConfigPrettier +); \ No newline at end of file diff --git a/package.json b/package.json index d7f90dd..5e233b8 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "@types/bun": "latest", "eslint": "^9.16.0", "eslint-config-prettier": "^9.1.0", - "globals": "^15.13.0", "prettier": "3.4.1", "prisma": "^6.0.1", "typescript-eslint": "^8.17.0"