Pratyush Desai
f195a0999f
Simply ran create with the options for sv5, ts checking, linting and prettifying enabled Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>
33 lines
642 B
JavaScript
33 lines
642 B
JavaScript
import eslint from '@eslint/js';
|
|
import prettier from 'eslint-config-prettier';
|
|
import svelte from 'eslint-plugin-svelte';
|
|
import globals from 'globals';
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
export default tseslint.config(
|
|
eslint.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
...svelte.configs['flat/recommended'],
|
|
prettier,
|
|
...svelte.configs['flat/prettier'],
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node
|
|
}
|
|
}
|
|
},
|
|
{
|
|
files: ['**/*.svelte'],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
parser: tseslint.parser
|
|
}
|
|
}
|
|
},
|
|
{
|
|
ignores: ['build/', '.svelte-kit/', 'dist/']
|
|
}
|
|
);
|