Skip to content

Commit

Permalink
lint and format
Browse files Browse the repository at this point in the history
  • Loading branch information
zirkelc committed Jul 23, 2024
1 parent cf71ce2 commit 9391f00
Show file tree
Hide file tree
Showing 22 changed files with 2,410 additions and 2,199 deletions.
56 changes: 46 additions & 10 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,48 @@
{
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
}
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
"vcs": {
"clientKind": "git",
"enabled": true,
"useIgnoreFile": true
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 120,
"attributePosition": "auto"
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "all",
"semicolons": "always",
"arrowParentheses": "always",
"bracketSpacing": true,
"bracketSameLine": false,
"quoteStyle": "single",
"attributePosition": "auto"
}
},
"json": {
"formatter": {
"trailingCommas": "none"
},
"parser": {
"allowComments": true,
"allowTrailingCommas": true
}
}
}
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "biome lint src --apply",
"format": "biome format src --write",
"lint": "pnpm biome check --write",
"preview": "vite preview"
},
"dependencies": {
Expand All @@ -18,7 +17,7 @@
"tesseract.js": "^5.0.4"
},
"devDependencies": {
"@biomejs/biome": "1.5.3",
"@biomejs/biome": "1.8.3",
"@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17",
"@vitejs/plugin-react": "^4.2.1",
Expand All @@ -29,4 +28,4 @@
"vite": "^5.0.8",
"vite-plugin-svgr": "^4.2.0"
}
}
}
Loading

0 comments on commit 9391f00

Please sign in to comment.