eslint.config.js 554 B

12345678910111213141516171819202122232425262728293031
  1. import js from '@eslint/js';
  2. import ts from 'typescript-eslint';
  3. import svelte from 'eslint-plugin-svelte';
  4. import globals from 'globals';
  5. /** @type {import('eslint').Linter.Config[]} */
  6. export default [
  7. js.configs.recommended,
  8. ...ts.configs.recommended,
  9. ...svelte.configs['flat/recommended'],
  10. {
  11. languageOptions: {
  12. globals: {
  13. ...globals.browser,
  14. ...globals.node
  15. }
  16. }
  17. },
  18. {
  19. files: ['**/*.svelte'],
  20. languageOptions: {
  21. parserOptions: {
  22. parser: ts.parser
  23. }
  24. }
  25. },
  26. {
  27. ignores: ['build/', '.svelte-kit/', 'dist/']
  28. }
  29. ];