@bryanchu10/create-template-ts 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@bryanchu10/create-template-ts",
3
+ "type": "module",
4
+ "version": "1.0.0",
5
+ "description": "Scaffold a modular TypeScript project for scripts and tooling",
6
+ "bin": "./dist/index.js",
7
+ "files": [
8
+ "dist",
9
+ "template"
10
+ ],
11
+ "scripts": {
12
+ "dev": "tsx watch src/index.ts",
13
+ "check": "tsc --noEmit",
14
+ "build": "rolldown -c",
15
+ "lint": "eslint",
16
+ "lint:fix": "eslint --fix"
17
+ },
18
+ "dependencies": {
19
+ "@clack/prompts": "^1.4.0",
20
+ "ts-pattern": "^5.9.0"
21
+ },
22
+ "devDependencies": {
23
+ "@antfu/eslint-config": "^9.0.0",
24
+ "@types/node": "^24.12.4",
25
+ "eslint": "^10.4.0",
26
+ "rolldown": "^1.0.3",
27
+ "tsx": "^4.22.3",
28
+ "typescript": "^6.0.3"
29
+ }
30
+ }
@@ -0,0 +1,2 @@
1
+ node_modules
2
+ dist
@@ -0,0 +1,36 @@
1
+ {
2
+ // Disable the default formatter, use eslint instead
3
+ "prettier.enable": false,
4
+ "editor.formatOnSave": false,
5
+
6
+ // Auto fix
7
+ "editor.codeActionsOnSave": {
8
+ "source.fixAll.eslint": "explicit",
9
+ "source.organizeImports": "never"
10
+ },
11
+
12
+ // Enable eslint for all supported languages
13
+ "eslint.validate": [
14
+ "javascript",
15
+ "javascriptreact",
16
+ "typescript",
17
+ "typescriptreact",
18
+ "vue",
19
+ "html",
20
+ "markdown",
21
+ "json",
22
+ "jsonc",
23
+ "yaml",
24
+ "toml",
25
+ "xml",
26
+ "gql",
27
+ "graphql",
28
+ "astro",
29
+ "svelte",
30
+ "css",
31
+ "less",
32
+ "scss",
33
+ "pcss",
34
+ "postcss"
35
+ ]
36
+ }
@@ -0,0 +1,32 @@
1
+ import antfu from "@antfu/eslint-config";
2
+
3
+ export default antfu(
4
+ {
5
+ typescript: true,
6
+ stylistic: {
7
+ indent: 4,
8
+ quotes: "double",
9
+ braceStyle: "stroustrup",
10
+ semi: true,
11
+ overrides: {
12
+ "style/jsx-one-expression-per-line": ["error", { allow: "non-jsx" }],
13
+ "style/jsx-first-prop-new-line": ["error", "never"],
14
+ "style/jsx-max-props-per-line": "off",
15
+ "style/jsx-closing-bracket-location": ["error", "after-props"],
16
+ "style/operator-linebreak": ["error", "before"],
17
+ },
18
+ },
19
+ },
20
+ {
21
+ files: ["pnpm-workspace.yaml"],
22
+ rules: {
23
+ "pnpm/yaml-enforce-settings": ["error", { settings: { shellEmulator: true } }],
24
+ },
25
+ },
26
+ {
27
+ files: ["**/*.yml", "**/*.yaml"],
28
+ rules: {
29
+ "yaml/indent": ["error", 2],
30
+ },
31
+ },
32
+ );
@@ -0,0 +1,10 @@
1
+ {
2
+ "type": "module",
3
+ "scripts": {
4
+ "dev": "tsx watch src/index.ts",
5
+ "check": "tsc --noEmit",
6
+ "build": "rolldown -c",
7
+ "lint": "eslint",
8
+ "lint:fix": "eslint --fix"
9
+ }
10
+ }
@@ -0,0 +1,4 @@
1
+ shellEmulator: true
2
+
3
+ allowBuilds:
4
+ esbuild: true
@@ -0,0 +1,9 @@
1
+ export default {
2
+ input: ["src/index.ts"],
3
+ platform: "node",
4
+ resolve: {
5
+ alias: {
6
+ "@": "./src",
7
+ },
8
+ },
9
+ };
@@ -0,0 +1,2 @@
1
+ // eslint-disable-next-line no-console
2
+ console.log("Hello, world!");
@@ -0,0 +1,8 @@
1
+ {
2
+ "compilerOptions": {
3
+ "paths": {
4
+ "@/*": ["./src/*"]
5
+ },
6
+ "types": ["node"]
7
+ }
8
+ }