diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f15441a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space +indent_size = 2 + +[*.md] +trim_trailing_whitespace = false diff --git a/package.json b/package.json index 9de6c49..5c2b6cf 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,6 @@ { "name": "rand", "version": "1.0.0", - "module": "index.ts", - "type": "module", "bin": { "rand": "./index.ts" }, @@ -11,9 +9,7 @@ }, "private": true, "devDependencies": { - "@types/bun": "latest" - }, - "peerDependencies": { + "@types/bun": "^1", "typescript": "^5" } } diff --git a/tsconfig.json b/tsconfig.json index b2e7497..7dfc3fd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,8 +5,6 @@ "target": "ESNext", "module": "Preserve", "moduleDetection": "force", - "jsx": "react-jsx", - "allowJs": true, "types": ["bun"], // Bundler mode @@ -23,8 +21,8 @@ "noImplicitOverride": true, // Some stricter flags (disabled by default) - "noUnusedLocals": false, - "noUnusedParameters": false, - "noPropertyAccessFromIndexSignature": false + "noUnusedLocals": true, + "noUnusedParameters": true, + "noPropertyAccessFromIndexSignature": true } }