Skip to content

Commit e1cba3b

Browse files
committed
chore: housekeeping
1 parent c276b06 commit e1cba3b

File tree

7 files changed

+32
-24
lines changed

7 files changed

+32
-24
lines changed

.vscode/settings.json

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
11
{
22
"typescript.tsdk": "node_modules/typescript/lib",
3-
"prettier.enable": false,
4-
"editor.formatOnSave": false,
53
// Enable the ESlint flat config support
64
"eslint.experimental.useFlatConfig": true,
5+
// Disable the default formatter, use eslint instead
6+
"prettier.enable": false,
7+
"editor.formatOnSave": false,
8+
// Auto fix
79
"editor.codeActionsOnSave": {
810
"source.fixAll.eslint": "explicit",
911
"source.organizeImports": "never"
1012
},
1113
// Silent the stylistic rules in you IDE, but still auto fix them
12-
"eslint.validate": [
13-
"javascript",
14-
"javascriptreact",
15-
"typescript",
16-
"typescriptreact",
17-
"vue",
18-
"html",
19-
"markdown",
20-
"json",
21-
"jsonc",
22-
"yaml"
23-
],
2414
"eslint.rules.customizations": [
2515
{
2616
"rule": "style/*",
2717
"severity": "off"
2818
},
19+
{
20+
"rule": "format/*",
21+
"severity": "off"
22+
},
2923
{
3024
"rule": "*-indent",
3125
"severity": "off"
@@ -59,6 +53,21 @@
5953
"severity": "off"
6054
}
6155
],
56+
// Enable eslint for all supported languages
57+
"eslint.validate": [
58+
"javascript",
59+
"javascriptreact",
60+
"typescript",
61+
"typescriptreact",
62+
"vue",
63+
"stx",
64+
"html",
65+
"markdown",
66+
"json",
67+
"jsonc",
68+
"yaml",
69+
"toml"
70+
],
6271
"cSpell.words": [
6372
"antfu",
6473
"booleanish",

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<!-- [![npm downloads][npm-downloads-src]][npm-downloads-href] -->
77
<!-- [![Codecov][codecov-src]][codecov-href] -->
88

9-
# The Simple Way
9+
# bun-ts-starter
1010

1111
This is an opinionated TypeScript Starter kit to help kick-start development of your next Bun package.
1212

@@ -35,7 +35,7 @@ bun run release # automates git commits, versioning, and changelog generations
3535

3636
This Starter Kit comes pre-configured with the following:
3737

38-
- [Powerful Build Engine](https://github.com/oven-sh/bun) - via Bun
38+
- [Powerful Build Process](https://github.com/oven-sh/bun) - via Bun
3939
- [Fully Typed APIs](https://www.typescriptlang.org/) - via TypeScript 5.1
4040
- [Be a Good Commitizen](https://www.npmjs.com/package/git-cz) - pre-configured Commitizen & git-cz setup to simplify semantic git commits, versioning, and changelog generations
4141
- [Built With Testing In Mind](https://bun.sh/docs/cli/test) - pre-configured unit-testing powered by [Bun](https://bun.sh/docs/cli/test)

build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// +import dts from 'bun-plugin-dts-auto'
2-
31
await Bun.build({
42
entrypoints: [
53
'src/index.ts',
64
],
5+
76
outdir: './dist',
7+
88
// plugins: [
99
// dts(),
1010
// ],

bun.lockb

461 KB
Binary file not shown.

eslint.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import antfu from '@antfu/eslint-config'
1+
import stacks from '@stacksjs/eslint-config'
22

3-
export default antfu()
3+
export default stacks()

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"build": "bun --bun build.ts",
3636
"lint": "eslint .",
3737
"lint:fix": "eslint . --fix",
38-
"fresh": "rimraf node_modules/ bun.lock && bun i",
38+
"fresh": "bunx rimraf node_modules/ bun.lock && bun i",
3939
"commit": "git cz",
4040
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
4141
"prepublishOnly": "bun --bun run build",
@@ -45,7 +45,7 @@
4545
"typecheck": "tsc --noEmit"
4646
},
4747
"devDependencies": {
48-
"@antfu/eslint-config": "^2.6.4",
48+
"@stacksjs/eslint-config": "^0.58.73",
4949
"@types/node": "^20.11.19",
5050
"bun-types": "^1.0.28",
5151
"bumpp": "^9.3.0",
@@ -54,7 +54,6 @@
5454
"cz-git": "^1.8.0",
5555
"eslint": "^8.56.0",
5656
"lint-staged": "^15.2.2",
57-
"rimraf": "^5.0.5",
5857
"simple-git-hooks": "^2.9.0",
5958
"typescript": "^5.3.3"
6059
},

pkgx.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
dependencies:
2-
bun.sh: ^1.0.14
2+
bun.sh: ^1.0.28

0 commit comments

Comments
 (0)