wxbox/wxbox-web/eslint.config.js

34 lines
611 B
JavaScript
Raw Permalink Normal View History

2024-10-19 01:34:08 +00:00
import prettier from 'eslint-config-prettier';
2024-10-24 21:18:26 +00:00
import js from '@eslint/js';
2024-10-19 01:34:08 +00:00
import svelte from 'eslint-plugin-svelte';
import globals from 'globals';
2024-10-24 21:18:26 +00:00
import ts from 'typescript-eslint';
2024-10-19 01:34:08 +00:00
2024-10-24 21:18:26 +00:00
export default ts.config(
js.configs.recommended,
...ts.configs.recommended,
2024-10-19 01:34:08 +00:00
...svelte.configs['flat/recommended'],
prettier,
...svelte.configs['flat/prettier'],
{
languageOptions: {
globals: {
...globals.browser,
...globals.node
}
}
},
{
files: ['**/*.svelte'],
2024-10-24 21:18:26 +00:00
2024-10-19 01:34:08 +00:00
languageOptions: {
parserOptions: {
2024-10-24 21:18:26 +00:00
parser: ts.parser
2024-10-19 01:34:08 +00:00
}
}
},
{
ignores: ['build/', '.svelte-kit/', 'dist/']
}
);