Skip to content

Commit

Permalink
chore: migrate to biome
Browse files Browse the repository at this point in the history
  • Loading branch information
morlay committed Dec 13, 2023
1 parent 70c83fd commit 223f3e1
Show file tree
Hide file tree
Showing 38 changed files with 1,630 additions and 1,621 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ build.monobundle:
$(BUN) install

lint:
$(BUNX) turbo run lint --force
$(BUNX) @biomejs/biome check --max-diagnostics=1 --apply .

test:
$(BUN) test
Expand Down
24 changes: 24 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"clientKind": "git",
"enabled": true,
"useIgnoreFile": true
},
"files": {
"ignore": ["*.d.ts", "*.js", "*.mjs"]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noExplicitAny": "off"
},
"complexity": {
"useLiteralKeys": "off",
"noBannedTypes": "off"
}
}
}
}
Binary file modified bun.lockb
Binary file not shown.
10 changes: 5 additions & 5 deletions nodedevpkg/monobundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
"@innoai-tech/lodash": "workspace:^",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"browserslist": "^4.22.1",
"browserslist": "^4.22.2",
"chalk": "^5.3.0",
"esbuild": "^0.19.6",
"esbuild": "^0.19.9",
"globby": "^14.0.0",
"js-yaml": "^4.1.0",
"minimatch": "^9.0.3",
"rollup": "^4.5.0",
"rollup": "^4.8.0",
"rollup-plugin-dts": "^6.1.0",
"yargs": "^17.7.2"
},
Expand All @@ -29,7 +29,7 @@
},
"devDependencies": {
"@types/js-yaml": "^4.0.9",
"@types/yargs": "^17.0.31"
"@types/yargs": "^17.0.32"
},
"bin": {
"monobundle": "./monobundle.mjs"
Expand All @@ -56,7 +56,7 @@
"directory": "nodedevpkg/monobundle"
},
"scripts": {
"lint": "bunx --bun prettier --write .",
"lint": "bunx --bun @biomejs/biome check --apply .",
"build": "bun ./src/bin/index.ts",
"prepublishOnly": "bun run build"
},
Expand Down
Loading

0 comments on commit 223f3e1

Please sign in to comment.