Skip to content

Commit

Permalink
Merge pull request #11 from kbuika/kibuika
Browse files Browse the repository at this point in the history
add biome for linting and formatting
  • Loading branch information
kbuika authored Jan 18, 2024
2 parents 1bf2626 + a3d4079 commit 53bfa47
Show file tree
Hide file tree
Showing 6 changed files with 140 additions and 14 deletions.
22 changes: 22 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "https://biomejs.dev/schemas/1.5.0/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
},
"ignore": ["**/*.mdx", "**/*.md", "**/.turbo/*", "**/*.yaml"]
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "tab",
"indentWidth": 2,
"lineWidth": 80,
"lineEnding": "lf",
"ignore": ["**/*.mdx", "**/*.md", "**/.turbo/*", "**/*.yaml"]
}
}
3 changes: 3 additions & 0 deletions docs/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["../biome.json"]
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
"version": "1.0.0",
"scripts": {
"dev": "turbo run dev",
"build": "turbo run build"
"build": "turbo run build",
"lint": "npx @biomejs/biome check --apply ."
},
"dependencies": {
"@changesets/cli": "^2.27.1",
"typescript": "^5.3.3"
},
"devDependencies": {
"@biomejs/biome": "1.5.0",
"turbo": "^1.11.2",
"vite-plugin-dts": "^3.6.4"
}
Expand Down
3 changes: 3 additions & 0 deletions packages/urban-core/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["../../biome.json"]
}
91 changes: 91 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 18 additions & 13 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
{
"pipeline": {
"dev": {
"cache": false
},
"build": {
"dependsOn": [
"^build"
],
"outputs": [
"dist/**"
]
}
}
"pipeline": {
"dev": {
"cache": false
},
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
},
"lint": {
"dependsOn": ["^lint"]
}
},
"tasks": {
"lint": {
"command": "npx @biomejs/biome check --apply .",
"config": {}
}
}
}

0 comments on commit 53bfa47

Please sign in to comment.