diff options
| author | Fuwn <[email protected]> | 2024-07-26 10:10:25 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-07-26 10:15:02 +0000 |
| commit | 2199fe9a0c318db29a61ddcd50289d9b0036c7f7 (patch) | |
| tree | 54025c5b14c4dbd6dff676e4675a6c468bd549b1 /eslint.config.js | |
| download | iptv-jp-browser-2199fe9a0c318db29a61ddcd50289d9b0036c7f7.tar.xz iptv-jp-browser-2199fe9a0c318db29a61ddcd50289d9b0036c7f7.zip | |
feat: initial release
Diffstat (limited to 'eslint.config.js')
| -rw-r--r-- | eslint.config.js | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..62dbd03 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,33 @@ +import js from '@eslint/js'; +import ts from 'typescript-eslint'; +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, + ...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/'] + } +]; |