From 3e075593852f39a0a07256b04b105cc9246f8ccd Mon Sep 17 00:00:00 2001 From: "WillBooster Inc." Date: Thu, 23 May 2024 18:37:55 +0000 Subject: [PATCH] chore: willboosterify this repo --- .eslintignore | 6 +++--- .gitignore | 6 +++--- .lintstagedrc.cjs | 6 ++++-- .prettierignore | 6 +++--- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.eslintignore b/.eslintignore index 5b23ea70..d4204194 100644 --- a/.eslintignore +++ b/.eslintignore @@ -15,13 +15,13 @@ test-fixtures/ *.min.*js .yarn/ .pnp.js +!.keep +.env.production +*/mount/*.hash .idea/copilot/chatSessions/ .devcontainer/ dist/ temp/ -Icon[ ] -!.keep -*/mount/*.hash # Created by https://www.toptal.com/developers/gitignore/api/windows # Edit at https://www.toptal.com/developers/gitignore?templates=windows diff --git a/.gitignore b/.gitignore index 170c94a9..ed226019 100644 --- a/.gitignore +++ b/.gitignore @@ -3,13 +3,13 @@ # Generated by @willbooster/willboosterify +!.keep +.env.production +*/mount/*.hash .idea/copilot/chatSessions/ .devcontainer/ dist/ temp/ -Icon[ ] -!.keep -*/mount/*.hash # Created by https://www.toptal.com/developers/gitignore/api/windows # Edit at https://www.toptal.com/developers/gitignore?templates=windows diff --git a/.lintstagedrc.cjs b/.lintstagedrc.cjs index e6aa32d5..3ef98a83 100644 --- a/.lintstagedrc.cjs +++ b/.lintstagedrc.cjs @@ -1,3 +1,4 @@ +const path = require('path'); const micromatch = require('micromatch'); module.exports = { @@ -6,8 +7,9 @@ module.exports = { 'node node_modules/.bin/prettier --cache --write', ], './**/*.{cjs,css,cts,htm,html,js,json,json5,jsonc,jsx,md,mjs,mts,scss,ts,tsx,vue,yaml,yml}': (files) => { - files = micromatch.not(files, './{scripts,src,tests}/**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx}'); - const filteredFiles = files.filter((file) => !file.includes('/test-fixtures/') && !file.includes('/packages/')); + let filteredFiles = files.filter((file) => !file.includes('/test-fixtures/') && !file.includes('/packages/')); + filteredFiles = filteredFiles.map((file) => path.relative('', file)); + filteredFiles = micromatch.not(filteredFiles, './{scripts,src,tests}/**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx}'); if (filteredFiles.length === 0) return []; const commands = [`node node_modules/.bin/prettier --cache --write ${filteredFiles.join(' ')}`]; if (filteredFiles.some((file) => file.endsWith('package.json'))) { diff --git a/.prettierignore b/.prettierignore index 84db4c1e..29643114 100644 --- a/.prettierignore +++ b/.prettierignore @@ -12,13 +12,13 @@ test-fixtures/ *.min.js .yarn/ .pnp.js +!.keep +.env.production +*/mount/*.hash .idea/copilot/chatSessions/ .devcontainer/ dist/ temp/ -Icon[ ] -!.keep -*/mount/*.hash # Created by https://www.toptal.com/developers/gitignore/api/windows # Edit at https://www.toptal.com/developers/gitignore?templates=windows