fix eslint

This commit is contained in:
Benjamin Palko 2024-12-05 10:52:32 -05:00
parent 7a40ff6d03
commit 79b39d908c
3 changed files with 13 additions and 13 deletions

BIN
bun.lockb

Binary file not shown.

View file

@ -1,13 +1,14 @@
import pluginJs from '@eslint/js'; // @ts-check
import eslintConfigPrettier from 'eslint-config-prettier';
import globals from 'globals';
import tseslint from 'typescript-eslint';
/** @type {import('eslint').Linter.Config[]} */ import eslint from '@eslint/js';
export default [ import tseslint from 'typescript-eslint';
{ files: ['**/*.{js,mjs,cjs,ts}'] }, // @ts-expect-error No type-def
{ languageOptions: { globals: globals.browser } }, import eslintConfigPrettier from 'eslint-config-prettier';
pluginJs.configs.recommended,
...tseslint.configs.recommended, export default tseslint.config(
eslintConfigPrettier, { files: ['{app,src}/**/*.{js,mjs,ts}'] },
]; { ignores: ['build/*'] },
eslint.configs.recommended,
tseslint.configs.recommended,
eslintConfigPrettier
);

View file

@ -15,7 +15,6 @@
"@types/bun": "latest", "@types/bun": "latest",
"eslint": "^9.16.0", "eslint": "^9.16.0",
"eslint-config-prettier": "^9.1.0", "eslint-config-prettier": "^9.1.0",
"globals": "^15.13.0",
"prettier": "3.4.1", "prettier": "3.4.1",
"prisma": "^6.0.1", "prisma": "^6.0.1",
"typescript-eslint": "^8.17.0" "typescript-eslint": "^8.17.0"