Skip to content

Commit

Permalink
chore: willboosterify this repo
Browse files Browse the repository at this point in the history
  • Loading branch information
WillBooster-bot committed May 23, 2024
1 parent 670446a commit 3e07559
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions .lintstagedrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const path = require('path');
const micromatch = require('micromatch');

module.exports = {
Expand All @@ -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'))) {
Expand Down
6 changes: 3 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e07559

Please sign in to comment.