Update eslint.config.js
This commit is contained in:
parent
d1339ba3c5
commit
45f09af6f4
@ -1,23 +1,14 @@
|
|||||||
import js from '@eslint/js';
|
{
|
||||||
import svelte from 'eslint-plugin-svelte';
|
"compilerOptions": {
|
||||||
import prettier from 'eslint-config-prettier';
|
"target": "esnext",
|
||||||
import globals from 'globals';
|
"module": "esnext",
|
||||||
|
"lib": ["esnext", "dom"],
|
||||||
/** @type {import('eslint').Linter.Config[]} */
|
"strict": true,
|
||||||
export default [
|
"moduleResolution": "node",
|
||||||
js.configs.recommended,
|
"esModuleInterop": true,
|
||||||
...svelte.configs['flat/recommended'],
|
"skipLibCheck": true,
|
||||||
prettier,
|
"forceConsistentCasingInFileNames": true
|
||||||
...svelte.configs['flat/prettier'],
|
},
|
||||||
{
|
"include": ["src/**/*"],
|
||||||
languageOptions: {
|
"extends": "./.svelte-kit/tsconfig.json"
|
||||||
globals: {
|
}
|
||||||
...globals.browser,
|
|
||||||
...globals.node
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
ignores: ['build/', '.svelte-kit/', 'dist/']
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
Loading…
Reference in New Issue
Block a user