Skip to content

Commit

Permalink
Use external Biome configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrus01337 committed Jul 26, 2024
1 parent 674d1c3 commit e69f2ea
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ jobs:
with:
version: latest

- run: biome ci --no-errors-on-unmatched --changed --since=main --linter-enabled=false
- run: biome ci --no-errors-on-unmatched --changed --since=main
--linter-enabled=false --config-path
external/configurations/biome/biome.jsonc

build:
needs: check
Expand Down
1 change: 0 additions & 1 deletion .husky/pre-commit

This file was deleted.

1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bunx lint-staged --debug --config $PWD/external/configurations/lint-staged/biome/.lintstagedrc
1 change: 0 additions & 1 deletion .lintstagedrc

This file was deleted.

16 changes: 16 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"*.{ts,astro}": [
"biome format --write --skip-errors --no-errors-on-unmatched --changed --since=main --log-level=none",
"biome lint --write --unsafe --skip-errors --no-errors-on-unmatched --changed --since=main --log-level=none",
"eslint",
"tsc-files"
],
"*.{js,mjs,cjs}": [
"biome format --write --skip-errors --no-errors-on-unmatched --changed --since=main --log-level=none",
"biome lint --write --unsafe --skip-errors --no-errors-on-unmatched --changed --since=main --log-level=none",
"eslint"
],
"*.{json,md}": [
"biome format --write --skip-errors --no-errors-on-unmatched --changed --since=main --log-level=none"
]
}
1 change: 0 additions & 1 deletion biome.jsonc

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro",
"format": "biome format --write --skip-errors --no-errors-on-unmatched --changed --since=main --log-level=none && biome lint --write --unsafe --skip-errors --no-errors-on-unmatched --changed --since=main --log-level=none",
"format": "biome format --write --skip-errors --no-errors-on-unmatched --changed --since=main --log-level=none --config-path external/configurations/biome/biome.jsonc && biome lint --write --unsafe --skip-errors --no-errors-on-unmatched --changed --since=main --log-level=none --config-path external/configurations/biome/biome.jsonc",
"lint": "eslint . && tsc --noEmit",
"lint:formatting": "biome check --changed --since=main --linter-enabled=false",
"lint:formatting": "biome check --changed --since=main --linter-enabled=false --config-path external/configurations/biome/biome.jsonc",
"prepare": "bun .husky/install.js"
},
"dependencies": {
Expand Down

0 comments on commit e69f2ea

Please sign in to comment.