From c544dffb148f08518600ea6b7096450e978304ff Mon Sep 17 00:00:00 2001 From: Matthew Strapp Date: Wed, 30 Oct 2024 16:53:20 -0500 Subject: feat: Svelte (#34) * feat: Svelte Signed-off-by: Matt Strapp * oopsie Signed-off-by: Matt Strapp * add docs Signed-off-by: Matt Strapp * dev dependency Signed-off-by: Matt Strapp * Lint Signed-off-by: Matt Strapp * CI: Check formatting Signed-off-by: Matt Strapp * Add line ending thingy Signed-off-by: Matt Strapp * Update prettier and typescript versions in package.json Signed-off-by: Matt Strapp --------- Signed-off-by: Matt Strapp --- src/packages/svelte/eslint.config.js | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/packages/svelte/eslint.config.js (limited to 'src/packages/svelte/eslint.config.js') diff --git a/src/packages/svelte/eslint.config.js b/src/packages/svelte/eslint.config.js new file mode 100644 index 0000000..a526565 --- /dev/null +++ b/src/packages/svelte/eslint.config.js @@ -0,0 +1,33 @@ +import prettier from 'eslint-config-prettier'; +import js from '@eslint/js'; +import svelte from 'eslint-plugin-svelte'; +import globals from 'globals'; +import ts from 'typescript-eslint'; + +export default ts.config( + js.configs.recommended, + ...ts.configs.recommended, + ...svelte.configs['flat/recommended'], + prettier, + ...svelte.configs['flat/prettier'], + { + languageOptions: { + globals: { + ...globals.browser, + ...globals.node + } + } + }, + { + files: ['**/*.svelte'], + + languageOptions: { + parserOptions: { + parser: ts.parser + } + } + }, + { + ignores: ['build/', '.svelte-kit/', 'dist/'] + } +); -- cgit v1.2.3