Skip to content

Commit

Permalink
list-staged良い感じに
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-20 committed Nov 30, 2023
1 parent 01100af commit fac4c59
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 4 deletions.
4 changes: 4 additions & 0 deletions apps/server/.lintstagedrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
"*.{js,jsx,ts,tsx,json}": "biome format --write",
"*.{js,jsx,ts,tsx}": "pnpm lint",
};
2 changes: 1 addition & 1 deletion apps/web/.lintstagedrc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ const buildCommand = (command) => async (filenames) => {
export default {
"*.{js,jsx,ts,tsx}": buildEslintCommand,
"*.{js,jsx,ts,tsx,css,scss}": buildCommand("pnpm stylelint"),
"*.{css,scss,js,jsx,ts,tsx,json,md}": buildCommand("biome format --write"),
"*.{js,jsx,ts,tsx,json}": buildCommand("biome format --write"),
};
4 changes: 4 additions & 0 deletions packages/database/.lintstagedrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
"*.{js,jsx,ts,tsx,json}": "biome format --write",
"*.{js,jsx,ts,tsx}": "pnpm lint",
};
3 changes: 2 additions & 1 deletion packages/database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"migration": "pnpm run migration:generate && pnpm run migration:run",
"build": "tsup src/index.ts --format cjs,esm --dts",
"dev": "pnpm run build --watch",
"lint": "eslint --ext .ts src"
"lint": "eslint --ext .ts src",
"format": "biome format --write ."
},
"dependencies": {
"@read-stack/lib": "workspace:*",
Expand Down
4 changes: 4 additions & 0 deletions packages/lib/.lintstagedrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
"*.{js,jsx,ts,tsx,json}": "biome format --write",
"*.{js,jsx,ts,tsx}": "pnpm lint",
};
3 changes: 2 additions & 1 deletion packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts",
"dev": "pnpm run build --watch",
"lint": "eslint --ext .ts src"
"lint": "eslint --ext .ts src",
"format": "biome format --write ."
},
"dependencies": {
"@mozilla/readability": "^0.4.4",
Expand Down
4 changes: 4 additions & 0 deletions packages/openapi/.lintstagedrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
"*.{js,jsx,ts,tsx,json}": "biome format --write",
"*.{js,jsx,ts,tsx}": "pnpm lint",
};
3 changes: 2 additions & 1 deletion packages/openapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts",
"dev": "pnpm run build --watch",
"lint": "eslint --ext .ts src"
"lint": "eslint --ext .ts src",
"format": "biome format --write ."
},
"dependencies": {
"@asteasolutions/zod-to-openapi": "^6.2.0",
Expand Down

0 comments on commit fac4c59

Please sign in to comment.