1
Fork 0

Add Bun and TypeScript configuration.

This commit is contained in:
Bauke 2024-03-02 13:31:31 +01:00
parent 8e1adc3631
commit 264dcac6f2
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
3 changed files with 41 additions and 0 deletions

BIN
bun.lockb Executable file

Binary file not shown.

21
package.json Normal file
View File

@ -0,0 +1,21 @@
{
"type": "module",
"devDependencies": {
"@bauke/eslint-config": "^0.1.5",
"@bauke/prettier-config": "^0.1.5",
"@types/bun": "^1.0.8",
"astro": "^4.4.9",
"sass": "^1.71.1",
"typescript": "^5.3.3",
"xo": "^0.57.0"
},
"prettier": "@bauke/prettier-config",
"xo": {
"extends": "@bauke/eslint-config",
"prettier": true,
"rules": {
"unicorn/prevent-abbreviations": "off"
},
"space": true
}
}

20
tsconfig.json Normal file
View File

@ -0,0 +1,20 @@
{
"compilerOptions": {
"allowImportingTsExtensions": true,
"allowJs": true,
"jsx": "react-jsx",
"lib": ["ES2022"],
"module": "ES2022",
"moduleDetection": "force",
"moduleResolution": "bundler",
"noEmit": true,
"noFallthroughCasesInSwitch": true,
"noPropertyAccessFromIndexSignature": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"skipLibCheck": true,
"strict": true,
"target": "ES2022",
"verbatimModuleSyntax": true
}
}