fix: update eslint ignores

This commit is contained in:
ndom91 2024-06-28 12:15:11 +02:00
parent 7e8ebdab76
commit 7bfadc5adb
No known key found for this signature in database

View File

@ -44,12 +44,12 @@ export default tsEslint.config(
'.*', // dotfiles aren't ignored by default in FlatConfig '.*', // dotfiles aren't ignored by default in FlatConfig
'**/.DS_Store', '**/.DS_Store',
'**/node_modules', '**/node_modules',
'butler/target', '**/butler/target',
'build', '**/build',
'dist', '**/dist',
'.svelte-kit', '.svelte-kit',
'package', '**/package',
'e2e', '**/e2e',
'**/.env', '**/.env',
'**/.env.*', '**/.env.*',
'!**/.env.example', '!**/.env.example',
@ -59,19 +59,22 @@ export default tsEslint.config(
'.github', '.github',
'.vscode', '.vscode',
'src-tauri', 'src-tauri',
'eslint.config.js', '**/eslint.config.js',
'svelte.config.js', '**/eslint.config.mjs',
'postcss.config.cjs', '**/svelte.config.js',
'playwright.config.ts', '**/postcss.config.cjs',
'**/playwright.config.ts',
'**/.pnpm-store', '**/.pnpm-store',
'!.storybook' '!.storybook',
'target/',
'crates/'
] ]
}, },
{ {
languageOptions: { languageOptions: {
parserOptions: { parserOptions: {
parser: tsEslint.parser, parser: tsEslint.parser,
project: true, project: ['./packages/**/tsconfig.json', './app/tsconfig.json'],
extraFileExtensions: ['.svelte'] extraFileExtensions: ['.svelte']
} }
}, },
@ -137,7 +140,12 @@ export default tsEslint.config(
}, },
'import-x/resolver': { 'import-x/resolver': {
typescript: { typescript: {
project: ['./tsconfig.json', './.svelte-kit/tsconfig.json'] project: [
'./app/tsconfig.json',
'./app/.svelte-kit/tsconfig.json',
'./packages/**/tsconfig.json',
'./packages/**/.svelte-kit/tsconfig.json'
]
} }
} }
}, },