summaryrefslogtreecommitdiff
path: root/hi-ui/eslint.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'hi-ui/eslint.config.js')
-rw-r--r--hi-ui/eslint.config.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/hi-ui/eslint.config.js b/hi-ui/eslint.config.js
new file mode 100644
index 0000000..2eeebcc
--- /dev/null
+++ b/hi-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/']
+ }
+];