12345678910111213141516171819202122232425262728293031 |
- import js from '@eslint/js';
- import ts from 'typescript-eslint';
- import svelte from 'eslint-plugin-svelte';
- import globals from 'globals';
- /** @type {import('eslint').Linter.Config[]} */
- export default [
- js.configs.recommended,
- ...ts.configs.recommended,
- ...svelte.configs['flat/recommended'],
- {
- languageOptions: {
- globals: {
- ...globals.browser,
- ...globals.node
- }
- }
- },
- {
- files: ['**/*.svelte'],
- languageOptions: {
- parserOptions: {
- parser: ts.parser
- }
- }
- },
- {
- ignores: ['build/', '.svelte-kit/', 'dist/']
- }
- ];
|