fix eslint (#4)
This commit is contained in:
parent
7a40ff6d03
commit
3182233bb2
3 changed files with 13 additions and 13 deletions
BIN
bun.lockb
BIN
bun.lockb
Binary file not shown.
|
|
@ -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
|
||||||
|
);
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue