Applied consistent code formatting across the project using Prettier, now configured to use 4-space indentation instead of tabs.
39 lines
858 B
JavaScript
39 lines
858 B
JavaScript
// @ts-check
|
|
|
|
import eslint from '@eslint/js';
|
|
import tseslint from 'typescript-eslint';
|
|
import svelte from 'eslint-plugin-svelte';
|
|
import prettier from 'eslint-config-prettier';
|
|
import globals from 'globals';
|
|
|
|
export default tseslint.config(
|
|
eslint.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
svelte.configs['flat/recommended'],
|
|
prettier,
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node
|
|
}
|
|
}
|
|
},
|
|
{
|
|
files: ['**/*.svelte'],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
parser: tseslint.parser
|
|
}
|
|
}
|
|
},
|
|
{
|
|
ignores: ['build/', '.svelte-kit/', 'node_modules/']
|
|
},
|
|
{
|
|
rules: {
|
|
'@typescript-eslint/no-unused-vars': 'warn'
|
|
}
|
|
}
|
|
);
|