Initialize bun project

This commit is contained in:
Alexander Navarro 2024-09-15 17:56:09 -03:00
parent f55f7c5542
commit f6cab31474
4 changed files with 61 additions and 0 deletions

BIN
bun.lockb Executable file

Binary file not shown.

13
eslint.config.js Normal file
View file

@ -0,0 +1,13 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import eslintConfigPrettier from "eslint-config-prettier";
export default [
{ files: ["**/*.{js,mjs,cjs,ts}"] },
{ languageOptions: { globals: globals.browser } },
eslintConfigPrettier,
pluginJs.configs.recommended,
...tseslint.configs.recommended,
];

21
package.json Normal file
View file

@ -0,0 +1,21 @@
{
"name": "mini-strap",
"module": "index.ts",
"devDependencies": {
"@eslint/js": "^9.10.0",
"@types/bun": "latest",
"eslint": "^9.10.0",
"eslint-config-prettier": "^9.1.0",
"globals": "^15.9.0",
"prettier": "3.3.3",
"typescript-eslint": "^8.5.0"
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"scripts": {
"dev": "bun --filter '*' dev"
},
"type": "module",
"workspaces": ["packages/*"]
}

27
tsconfig.json Normal file
View file

@ -0,0 +1,27 @@
{
"compilerOptions": {
// Enable latest features
"lib": ["ESNext", "DOM"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,
// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
}
}