Skip to content

Commit b800b64

Browse files
committed
feat: 🎸 init
0 parents  commit b800b64

File tree

14 files changed

+53374
-0
lines changed

14 files changed

+53374
-0
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release
2+
on:
3+
push:
4+
branches: [main]
5+
6+
permissions:
7+
contents: write
8+
issues: write
9+
pull-requests: write
10+
11+
env:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
14+
15+
jobs:
16+
prepare:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: "lts/*"
25+
- run: npm i
26+
- run: npm run release

.gitignore

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore
2+
3+
# Logs
4+
5+
logs
6+
_.log
7+
npm-debug.log_
8+
yarn-debug.log*
9+
yarn-error.log*
10+
lerna-debug.log*
11+
.pnpm-debug.log*
12+
13+
# Caches
14+
15+
.cache
16+
17+
# Diagnostic reports (https://nodejs.org/api/report.html)
18+
19+
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
20+
21+
# Runtime data
22+
23+
pids
24+
_.pid
25+
_.seed
26+
*.pid.lock
27+
28+
# Directory for instrumented libs generated by jscoverage/JSCover
29+
30+
lib-cov
31+
32+
# Coverage directory used by tools like istanbul
33+
34+
coverage
35+
*.lcov
36+
37+
# nyc test coverage
38+
39+
.nyc_output
40+
41+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
42+
43+
.grunt
44+
45+
# Bower dependency directory (https://bower.io/)
46+
47+
bower_components
48+
49+
# node-waf configuration
50+
51+
.lock-wscript
52+
53+
# Compiled binary addons (https://nodejs.org/api/addons.html)
54+
55+
build/Release
56+
57+
# Dependency directories
58+
59+
node_modules/
60+
jspm_packages/
61+
62+
# Snowpack dependency directory (https://snowpack.dev/)
63+
64+
web_modules/
65+
66+
# TypeScript cache
67+
68+
*.tsbuildinfo
69+
70+
# Optional npm cache directory
71+
72+
.npm
73+
74+
# Optional eslint cache
75+
76+
.eslintcache
77+
78+
# Optional stylelint cache
79+
80+
.stylelintcache
81+
82+
# Microbundle cache
83+
84+
.rpt2_cache/
85+
.rts2_cache_cjs/
86+
.rts2_cache_es/
87+
.rts2_cache_umd/
88+
89+
# Optional REPL history
90+
91+
.node_repl_history
92+
93+
# Output of 'npm pack'
94+
95+
*.tgz
96+
97+
# Yarn Integrity file
98+
99+
.yarn-integrity
100+
101+
# dotenv environment variable files
102+
103+
.env
104+
.env.development.local
105+
.env.test.local
106+
.env.production.local
107+
.env.local
108+
109+
# parcel-bundler cache (https://parceljs.org/)
110+
111+
.parcel-cache
112+
113+
# Next.js build output
114+
115+
.next
116+
out
117+
118+
# Nuxt.js build / generate output
119+
120+
.nuxt
121+
dist
122+
123+
# Gatsby files
124+
125+
# Comment in the public line in if your project uses Gatsby and not Next.js
126+
127+
# https://nextjs.org/blog/next-9-1#public-directory-support
128+
129+
# public
130+
131+
# vuepress build output
132+
133+
.vuepress/dist
134+
135+
# vuepress v2.x temp and cache directory
136+
137+
.temp
138+
139+
# Docusaurus cache and generated files
140+
141+
.docusaurus
142+
143+
# Serverless directories
144+
145+
.serverless/
146+
147+
# FuseBox cache
148+
149+
.fusebox/
150+
151+
# DynamoDB Local files
152+
153+
.dynamodb/
154+
155+
# TernJS port file
156+
157+
.tern-port
158+
159+
# Stores VSCode versions used for testing VSCode extensions
160+
161+
.vscode-test
162+
163+
# yarn v2
164+
165+
.yarn/cache
166+
.yarn/unplugged
167+
.yarn/build-state.yml
168+
.yarn/install-state.gz
169+
.pnp.*
170+
171+
# IntelliJ based IDEs
172+
.idea
173+
174+
# Finder (MacOS) folder config
175+
.DS_Store

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## Config files for your JS/TS projects.
2+
3+
```bash
4+
bun install -D es-proj
5+
```
6+
7+
### tsconfig.json
8+
Available extends:
9+
10+
- `es-proj/tsconfig/dom`
11+
- `es-proj/tsconfig/node`
12+
- `es-proj/tsconfig/react`
13+
- `es-proj/tsconfig/rn`
14+
15+
```json
16+
{
17+
"extends": "es-proj/tsconfig/react",
18+
"compilerOptions": {}
19+
}
20+
```
21+
22+
### biome.json
23+
```json
24+
{
25+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
26+
"extends": ["es-proj/biome"]
27+
}
28+
```

biome.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"files": {
4+
"ignoreUnknown": true
5+
},
6+
"vcs": {
7+
"enabled": true,
8+
"clientKind": "git",
9+
"useIgnoreFile": true
10+
},
11+
"linter": {
12+
"rules": {
13+
"style": {
14+
"noNonNullAssertion": "off"
15+
},
16+
"correctness": {
17+
"useHookAtTopLevel": "error"
18+
},
19+
"suspicious": {
20+
"noExplicitAny": "off"
21+
}
22+
}
23+
},
24+
"formatter": {
25+
"formatWithErrors": true,
26+
"lineWidth": 100,
27+
"indentStyle": "space"
28+
},
29+
"javascript": {
30+
"parser": {
31+
"unsafeParameterDecoratorsEnabled": true
32+
},
33+
"formatter": {
34+
"quoteStyle": "single",
35+
"jsxQuoteStyle": "single"
36+
}
37+
},
38+
"css": {
39+
"parser": {
40+
"cssModules": true
41+
},
42+
"formatter": {
43+
"enabled": true
44+
},
45+
"linter": {
46+
"enabled": true
47+
}
48+
}
49+
}

bun.lock

Lines changed: 52995 additions & 0 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "es-proj",
3+
"type": "module",
4+
"license": "ISC",
5+
"keywords": ["biome", "tsconfig"],
6+
"author": "Zhang Yiheng (a.k.a Ian) <[email protected]> (https://github.com/ianzone)",
7+
"files": ["biome.json", "tsconfig/tsconfig*.json"],
8+
"exports": {
9+
"biome": "./biome.json",
10+
"tsconfig/dom": "./tsconfig/tsconfig.dom.json",
11+
"tsconfig/node": "./tsconfig/tsconfig.node.json",
12+
"tsconfig/react": "./tsconfig/tsconfig.react.json",
13+
"tsconfig/rn": "./tsconfig/tsconfig.rn.json"
14+
},
15+
"scripts": {
16+
"commit": "git add -A && git-cz",
17+
"release": "semantic-release"
18+
},
19+
"devDependencies": {
20+
"@types/node": "^22.13.1",
21+
"git-cz": "^4.9.0",
22+
"semantic-release": "^24.2.2"
23+
},
24+
"peerDependencies": {
25+
"@biomejs/biome": "^1.9.4",
26+
"typescript": "^5.7.3"
27+
},
28+
"trustedDependencies": ["@biomejs/biome"]
29+
}

release.config.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import type { GlobalConfig } from 'semantic-release';
2+
3+
// https://semantic-release.gitbook.io/semantic-release/usage/configuration
4+
const config: GlobalConfig = {
5+
repositoryUrl: 'https://github.com/ianzone/antd-enhanced',
6+
tagFormat: 'v${version}',
7+
branches: ['main'],
8+
plugins: [
9+
'@semantic-release/commit-analyzer',
10+
'@semantic-release/release-notes-generator',
11+
'@semantic-release/npm',
12+
'@semantic-release/github',
13+
],
14+
};
15+
16+
export default config;

tsconfig/check.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
set -Eeuo pipefail
3+
4+
find . -name 'tsconfig*.json' -exec tsc -p {} \;

tsconfig/index.ts

Whitespace-only changes.

tsconfig/tsconfig.dom.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"lib": ["ESNext", "DOM"]
5+
}
6+
}

0 commit comments

Comments
 (0)