34 lines
749 B
JavaScript
34 lines
749 B
JavaScript
import js from '@eslint/js';
|
|
import tseslint from 'typescript-eslint';
|
|
import svelte from 'eslint-plugin-svelte';
|
|
import prettier from 'eslint-config-prettier';
|
|
|
|
export default [
|
|
{
|
|
ignores: [
|
|
'.svelte-kit/**',
|
|
'dist/**',
|
|
'build/**',
|
|
'node_modules/**',
|
|
'site/**',
|
|
'static/**',
|
|
'build.mjs'
|
|
]
|
|
},
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
...svelte.configs['flat/recommended'],
|
|
prettier,
|
|
{
|
|
files: ['**/*.mjs', 'build.mjs'],
|
|
languageOptions: { globals: { console: 'readonly', process: 'readonly' } }
|
|
},
|
|
{
|
|
rules: {
|
|
'svelte/no-at-html-tags': 'warn',
|
|
'svelte/require-each-key': 'off',
|
|
'svelte/no-navigation-without-resolve': 'off'
|
|
}
|
|
}
|
|
];
|