This repository has been archived on 2024-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
fotochallenge/eslint.config.js

34 lines
661 B
JavaScript
Raw Normal View History

2024-07-17 00:26:05 +02:00
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.FlatConfig[]} */
export default [
js.configs.recommended,
...ts.configs.recommended,
...svelte.configs['flat/recommended'],
prettier,
...svelte.configs['flat/prettier'],
{
languageOptions: {
globals: {
...globals.browser,
2024-08-17 15:45:52 +02:00
...globals.node,
},
},
2024-07-17 00:26:05 +02:00
},
{
files: ['**/*.svelte'],
languageOptions: {
parserOptions: {
2024-08-17 15:45:52 +02:00
parser: ts.parser,
},
},
2024-07-17 00:26:05 +02:00
},
{
2024-08-17 15:45:52 +02:00
ignores: ['build/', '.svelte-kit/', 'dist/'],
},
2024-07-17 00:26:05 +02:00
];