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: {
globals: {
...globals.browser,
...globals.node
}
}
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"lib": ["esnext", "dom"],
"strict": true,
"moduleResolution": "node",
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
},
{
ignores: ['build/', '.svelte-kit/', 'dist/']
"include": ["src/**/*"],
"extends": "./.svelte-kit/tsconfig.json"
}
];