update prettier and eslint ignore patterns

This commit is contained in:
maxid
2025-12-10 20:12:57 +01:00
parent eda1f9c13d
commit 4dfb0bbadb
2 changed files with 4 additions and 0 deletions

View File

@@ -2,3 +2,5 @@
package-lock.json
pnpm-lock.yaml
yarn.lock
node_modules
src/lib/components/ui/*

View File

@@ -7,10 +7,12 @@ import ts from 'typescript-eslint';
import svelteConfig from './svelte.config.js';
import { fileURLToPath } from 'node:url';
import { includeIgnoreFile } from '@eslint/compat';
import { globalIgnores } from 'eslint/config';
const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url));
export default ts.config(
globalIgnores(['src/lib/components/ui/*']),
includeIgnoreFile(gitignorePath, 'Imported .gitignore patterns'),
js.configs.recommended,
...ts.configs.recommended,