Update eslint.config.js

This commit is contained in:
Amiralsallakh 2024-10-21 22:08:15 +00:00
parent d1339ba3c5
commit 45f09af6f4

View File

@ -1,23 +1,14 @@
import js from '@eslint/js';
import svelte from 'eslint-plugin-svelte';
import prettier from 'eslint-config-prettier';
import globals from 'globals';
/** @type {import('eslint').Linter.Config[]} */
export default [
js.configs.recommended,
...svelte.configs['flat/recommended'],
prettier,
...svelte.configs['flat/prettier'],
{ {
languageOptions: { "compilerOptions": {
globals: { "target": "esnext",
...globals.browser, "module": "esnext",
...globals.node "lib": ["esnext", "dom"],
} "strict": true,
} "moduleResolution": "node",
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
}, },
{ "include": ["src/**/*"],
ignores: ['build/', '.svelte-kit/', 'dist/'] "extends": "./.svelte-kit/tsconfig.json"
} }
];