36 lines
770 B
JavaScript
36 lines
770 B
JavaScript
import js from '@eslint/js';
|
|
import tseslint from 'typescript-eslint';
|
|
import svelte from 'eslint-plugin-svelte';
|
|
import astro from 'eslint-plugin-astro';
|
|
import globals from 'globals';
|
|
|
|
export default tseslint.config(
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
...svelte.configs['flat/recommended'],
|
|
...astro.configs.recommended,
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node
|
|
}
|
|
}
|
|
},
|
|
{
|
|
files: ['**/*.svelte'],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
parser: tseslint.parser
|
|
}
|
|
},
|
|
rules: {
|
|
// Disabled because we sanitize HTML with DOMPurify before rendering
|
|
'svelte/no-at-html-tags': 'off'
|
|
}
|
|
},
|
|
{
|
|
ignores: ['node_modules/', 'dist/', '.astro/', 'src/lib/graphql/__generated__/']
|
|
}
|
|
);
|