fix eslint #4
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';
|
||||
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
|
||||
);
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue