Skip to content

Commit fee88ff

Browse files
committed
config
1 parent e7c2805 commit fee88ff

File tree

20 files changed

+3257
-1428
lines changed

20 files changed

+3257
-1428
lines changed

.eslintrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:@typescript-eslint/recommended",
5+
"prettier"
6+
],
7+
"parser": "@typescript-eslint/parser",
8+
"plugins": ["@typescript-eslint"],
9+
"rules": {
10+
"prettier/prettier": "error"
11+
}
12+
}

.github/workflows/ci.yml

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
1-
name: CI
2-
3-
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
10-
11-
jobs:
12-
test:
13-
name: Tests
14-
strategy:
15-
matrix:
16-
os: [ubuntu-latest, macos-latest, windows-latest]
17-
runs-on: ${{ matrix.os }}
18-
19-
steps:
20-
- name: Checkout
21-
uses: actions/checkout@v4
22-
23-
- name: Install pnpm
24-
uses: pnpm/[email protected]
25-
26-
- name: Set node version to 20
27-
uses: actions/setup-node@v4
28-
with:
29-
node-version: 20
30-
registry-url: https://registry.npmjs.org/
31-
cache: "pnpm"
32-
33-
- name: Install deps
34-
run: pnpm install
35-
36-
- name: Run tests
37-
run: pnpm test
38-
39-
typecheck:
40-
name: Type Check
41-
runs-on: ubuntu-latest
42-
43-
steps:
44-
- name: Checkout
45-
uses: actions/checkout@v4
46-
47-
- name: Install pnpm
48-
uses: pnpm/[email protected]
49-
50-
- name: Set node version to 20
51-
uses: actions/setup-node@v4
52-
with:
53-
node-version: 20
54-
registry-url: https://registry.npmjs.org/
55-
cache: pnpm
56-
57-
- name: Install deps
58-
run: pnpm install
59-
60-
- name: Type-check
61-
run: pnpm type-check
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
name: Tests
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, macos-latest, windows-latest]
17+
runs-on: ${{ matrix.os }}
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Install pnpm
24+
uses: pnpm/[email protected]
25+
26+
- name: Set node version to 20
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
registry-url: https://registry.npmjs.org/
31+
cache: 'pnpm'
32+
33+
- name: Install deps
34+
run: pnpm install
35+
36+
- name: Run tests
37+
run: pnpm test
38+
39+
typecheck:
40+
name: Type Check
41+
runs-on: ubuntu-latest
42+
43+
steps:
44+
- name: Checkout
45+
uses: actions/checkout@v4
46+
47+
- name: Install pnpm
48+
uses: pnpm/[email protected]
49+
50+
- name: Set node version to 20
51+
uses: actions/setup-node@v4
52+
with:
53+
node-version: 20
54+
registry-url: https://registry.npmjs.org/
55+
cache: pnpm
56+
57+
- name: Install deps
58+
run: pnpm install
59+
60+
- name: Type-check
61+
run: pnpm type-check

.github/workflows/format.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Prettier Check
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
prettier:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v3
12+
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: 18
17+
18+
- name: Install dependencies
19+
run: npm install
20+
21+
- name: Run Prettier Check
22+
run: npm run format:check

.github/workflows/pkg.pr.new.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
name: pkg.pr.new
2-
on: [push, pull_request]
3-
4-
jobs:
5-
build:
6-
runs-on: ubuntu-latest
7-
8-
steps:
9-
- name: Checkout
10-
uses: actions/checkout@v4
11-
12-
- name: Install pnpm
13-
uses: pnpm/[email protected]
14-
15-
- name: Set node version to 20
16-
uses: actions/setup-node@v4
17-
with:
18-
node-version: 20
19-
registry-url: https://registry.npmjs.org/
20-
cache: "pnpm"
21-
22-
- name: Install deps
23-
run: pnpm install
24-
25-
- run: pnpx pkg-pr-new publish
1+
name: pkg.pr.new
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v4
11+
12+
- name: Install pnpm
13+
uses: pnpm/[email protected]
14+
15+
- name: Set node version to 20
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
registry-url: https://registry.npmjs.org/
20+
cache: 'pnpm'
21+
22+
- name: Install deps
23+
run: pnpm install
24+
25+
- run: pnpx pkg-pr-new publish

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
dist
3+
build

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "es5",
4+
"singleQuote": true,
5+
"printWidth": 80,
6+
"tabWidth": 2
7+
}

0 commit comments

Comments
 (0)