From 014432546becf905b6fc9ad02cd72ecc9ebd8438 Mon Sep 17 00:00:00 2001 From: turbocrime Date: Wed, 17 Apr 2024 13:35:19 -0700 Subject: [PATCH] declutter vitest temp files --- .gitignore | 3 ++- .prettierignore | 1 + package.json | 1 + packages/eslint-config-custom/index.js | 4 ++-- turbo.json | 4 ++++ 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 7aa649b0d0..4c6504dfd6 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ node_modules # testing coverage +vite.config.ts.timestamp-*-*.mjs # build output .next/ @@ -53,4 +54,4 @@ lerna-debug.log* *.pem # large binary files -*_pk.bin \ No newline at end of file +*_pk.bin diff --git a/.prettierignore b/.prettierignore index 9caed14224..6f7813d6ca 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,3 +4,4 @@ pnpm-lock.yaml packages/wasm/crate packages/wasm/wasm *_pk.bin +vitest.config.ts.timestamp-*-*.mjs diff --git a/package.json b/package.json index a70728b2b7..4464bcfc7f 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "test": "turbo run test", "test:rust": "turbo run test:rust", "clean": "turbo clean", + "clean:vitest-mjs": "find . -type f -name 'vite.config.ts.timestamp-*-*.mjs' -ls -delete", "format": "prettier --write .", "format-check": "prettier --check .", "format-check:rust": "turbo run format-check:rust", diff --git a/packages/eslint-config-custom/index.js b/packages/eslint-config-custom/index.js index a2c4fda9b0..949da1f921 100644 --- a/packages/eslint-config-custom/index.js +++ b/packages/eslint-config-custom/index.js @@ -63,14 +63,14 @@ module.exports = { }, overrides: [ { - files: ['*.ts', '*.tsx', '*.js'], + files: ['*.ts', '*.tsx'], parser: '@typescript-eslint/parser', }, ], env: { webextensions: true, }, - ignorePatterns: ['dist/*'], + ignorePatterns: ['dist/*', 'vitest.config.ts.timestmap-*-*.mjs'], settings: { 'import/resolver': { typescript: true, diff --git a/turbo.json b/turbo.json index 8582eb5172..76202ccd38 100644 --- a/turbo.json +++ b/turbo.json @@ -44,10 +44,14 @@ "format-check:rust": { "dependsOn": ["compile"] }, + "//#clean:vitest-mjs": { + "cache": false + }, "//#playwright-install": { "cache": false }, "clean": { + "dependsOn": ["//#clean:vitest-mjs"], "cache": false } }