From 14e845a42cabd4b21c57493f49576cbbb2a22274 Mon Sep 17 00:00:00 2001 From: Kazuki Yamada Date: Mon, 30 Sep 2024 14:17:42 +0900 Subject: [PATCH] refactor(ignore): Expand default ignore patterns to include subdirectories --- src/config/defaultIgnore.ts | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/config/defaultIgnore.ts b/src/config/defaultIgnore.ts index 0b64cb1..6aaca42 100644 --- a/src/config/defaultIgnore.ts +++ b/src/config/defaultIgnore.ts @@ -20,9 +20,9 @@ export const defaultIgnoreList = [ // Logs 'logs/**', '**/*.log', - 'npm-debug.log*', - 'yarn-debug.log*', - 'yarn-error.log*', + '**/npm-debug.log*', + '**/yarn-debug.log*', + '**/yarn-error.log*', // Runtime data 'pids/**', @@ -52,7 +52,7 @@ export const defaultIgnoreList = [ 'typings/**', // Optional npm cache directory - '.npm/**', + '**/.npm/**', // Optional eslint cache '.eslintcache', @@ -64,10 +64,10 @@ export const defaultIgnoreList = [ '*.tgz', // Yarn files - '.yarn/**', + '**/.yarn/**', // Yarn Integrity file - '.yarn-integrity', + '**/.yarn-integrity', // dotenv environment variables file '.env', @@ -106,9 +106,9 @@ export const defaultIgnoreList = [ '**/*.bak', // Package manager locks - 'package-lock.json', - 'yarn.lock', - 'pnpm-lock.yaml', + '**/package-lock.json', + '**/yarn.lock', + '**/pnpm-lock.yaml', // Build outputs 'build/**', @@ -124,11 +124,11 @@ export const defaultIgnoreList = [ // Essential Python-related entries '**/__pycache__/**', '**/*.py[cod]', - 'venv/**', - '.venv/**', - '.pytest_cache/**', - '.mypy_cache/**', - '.ipynb_checkpoints/**', - 'Pipfile.lock', - 'poetry.lock', + '**/venv/**', + '**/.venv/**', + '**/.pytest_cache/**', + '**/.mypy_cache/**', + '**/.ipynb_checkpoints/**', + '**/Pipfile.lock', + '**/poetry.lock', ];