Skip to content

Commit

Permalink
fix: ๐Ÿ› biome ๊ด€๋ จ ์ฝ”๋ฉ˜ํŠธ ์ˆ˜์ •
Browse files Browse the repository at this point in the history
ref: #2
  • Loading branch information
gracefullight committed Oct 14, 2024
1 parent 267c235 commit f3e3625
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
9 changes: 2 additions & 7 deletions lint-staged.config.mjs
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
export default {
"*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}": [
"biome check --files-ignore-unknown=true", // Check formatting and lint
"biome check --write --no-errors-on-unmatched", // Format, sort imports, lint, and apply safe fixes
"biome check --write --organize-imports-enabled=false --no-errors-on-unmatched", // format and apply safe fixes
"biome check --write --unsafe --no-errors-on-unmatched", // Format, sort imports, lints, apply safe/unsafe fixes
"biome format --write --no-errors-on-unmatched", // Format
"biome lint --write --no-errors-on-unmatched", // Lint and apply safe fixes
"biome check --fix --unsafe --no-errors-on-unmatched", // Format, sort imports, lints, apply safe/unsafe fixes
],
// Alternatively you can pass every files and ignore unknown extensions
"*": [
"biome check --no-errors-on-unmatched --files-ignore-unknown=true", // Check formatting and lint
"biome check --fix --no-errors-on-unmatched --files-ignore-unknown=true", // Check formatting and lint
],
"package.json": "sort-package-json",
};
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"name": "@infinite-loop-factory/app-factory",
"private": true,
"scripts": {
"biome": "npx biome check --fix",
"clean": "git clean -xdf node_modules",
"gen": "pnpm turbo gen",
"gen": "turbo gen",
"lint": "turbo run lint",
"prepare": "husky",
"sort-package-json": "sort-package-json \"package.json\" \"apps/*/package.json\" \"packages/*/package.json\"",
Expand Down
2 changes: 1 addition & 1 deletion turbo/generators/templates/native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"android": "expo start --android",
"ios": "expo start --ios",
"lint": "biome lint --write --no-errors-on-unmatched",
"lint": "biome lint --fix --no-errors-on-unmatched",
"start": "expo start",
"test": "jest",
"test:watch": "jest --watchAll",
Expand Down
2 changes: 1 addition & 1 deletion turbo/generators/templates/package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build": "tsc",
"clean": "git clean -xdf .cache .turbo dist node_modules",
"dev": "tsc",
"lint": "biome lint --write --no-errors-on-unmatched",
"lint": "biome lint --fix --no-errors-on-unmatched",
"type-check": "tsc --noEmit --emitDeclarationOnly false"
},
"devDependencies": {
Expand Down

0 comments on commit f3e3625

Please sign in to comment.