Files
personal-website/eslint.config.js
Stan Runge c757d0882a
All checks were successful
Test and deploy staging / staging (push) Successful in 2m30s
add icons to lists and solve money tracker bugs
2026-09-24 19:24:09 +00:00

40 lines
746 B
JavaScript
Executable File

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', '**/*.svelte.ts'],
languageOptions: {
parserOptions: {
parser: ts.parser
}
}
},
{
files: ['**/*.ts'],
languageOptions: {
globals: globals.node
}
},
{
ignores: ['build/', '.svelte-kit/', 'dist/']
}
];