diff options
Diffstat (limited to 'ui/eslint.config.js')
| -rw-r--r-- | ui/eslint.config.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ui/eslint.config.js b/ui/eslint.config.js new file mode 100644 index 0000000..2eeebcc --- /dev/null +++ b/ui/eslint.config.js @@ -0,0 +1,23 @@ +import js from '@eslint/js'; +import svelte from 'eslint-plugin-svelte'; +import prettier from 'eslint-config-prettier'; +import globals from 'globals'; + +/** @type {import('eslint').Linter.Config[]} */ +export default [ + js.configs.recommended, + ...svelte.configs['flat/recommended'], + prettier, + ...svelte.configs['flat/prettier'], + { + languageOptions: { + globals: { + ...globals.browser, + ...globals.node + } + } + }, + { + ignores: ['build/', '.svelte-kit/', 'dist/'] + } +]; |
