Skip to content

Commit efe4a43

Browse files
authored
Initial commit
0 parents  commit efe4a43

39 files changed

+9059
-0
lines changed

.czrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "cz-conventional-changelog"
3+
}

.ecrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"exclude": [
3+
"CHANGELOG.md",
4+
"pnpm-lock.yaml",
5+
"README.md"
6+
]
7+
}

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
max_line_length = 85
10+
trim_trailing_whitespace = true

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @nikkeyl

.github/dependabot.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: github-actions
5+
directory: /
6+
schedule:
7+
interval: weekly
8+
day: sunday
9+
10+
- package-ecosystem: npm
11+
directory: /
12+
schedule:
13+
interval: weekly
14+
day: sunday

.github/workflows/codeql.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CodeQL
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths:
8+
- index.ts
9+
push:
10+
branches:
11+
- main
12+
paths:
13+
- index.ts
14+
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
jobs:
21+
codeql:
22+
name: Analyze
23+
24+
runs-on: ubuntu-latest
25+
timeout-minutes: 10
26+
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
language:
31+
- javascript-typescript
32+
33+
steps:
34+
- name: Checkout Repository
35+
uses: actions/checkout@v4
36+
37+
- name: Initialize
38+
uses: github/codeql-action/init@v3
39+
with:
40+
languages: ${{ matrix.language }}
41+
42+
- name: Auto Build
43+
uses: github/codeql-action/autobuild@v3
44+
45+
- name: Perform Analysis
46+
uses: github/codeql-action/analyze@v3
47+
with:
48+
category: /language:${{ matrix.language }}

.github/workflows/commitlint.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Commit Lint
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
jobs:
8+
commit-lint:
9+
name: Lint
10+
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 10
13+
14+
if: ${{ github.actor != 'dependabot[bot]' }}
15+
16+
steps:
17+
- name: Checkout Repository
18+
uses: actions/checkout@v4
19+
20+
- name: Lint
21+
uses: wagoid/commitlint-github-action@v5
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Create Pull Request
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
create-pull-request:
8+
name: On Branch Push
9+
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 10
12+
13+
steps:
14+
- name: Create Pull Request
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
PULL_REQUEST_BRANCH: main
18+
PULL_REQUEST_TITLE: ${{ github.event.head_commit.message }}
19+
uses: vsoch/pull-request-action@master
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Dependabot Auto Merge Pull Request
2+
3+
on:
4+
pull_request_target:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
dependabot-auto-merge-pull-request:
14+
name: Merge
15+
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 10
18+
19+
if: ${{ github.actor == 'dependabot[bot]' }}
20+
21+
steps:
22+
- name: Dependabot Metadata
23+
id: metadata
24+
uses: dependabot/fetch-metadata@v1
25+
with:
26+
github-token: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Merge
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
PULL_REQUEST_URL: ${{ github.event.pull_request.html_url }}
32+
run: gh pr merge --auto --merge '$PULL_REQUEST_URL'

.github/workflows/editorconfig.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Editorconfig
2+
3+
on:
4+
workflow_run:
5+
workflows:
6+
- CodeQL
7+
types:
8+
- completed
9+
pull_request:
10+
branches:
11+
- main
12+
push:
13+
branches:
14+
- main
15+
16+
jobs:
17+
editorconfig:
18+
name: Lint
19+
20+
runs-on: ubuntu-latest
21+
timeout-minutes: 10
22+
23+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
24+
25+
steps:
26+
- name: Checkout Repository
27+
uses: actions/checkout@v4
28+
29+
- name: Set Up PNPM
30+
uses: pnpm/action-setup@v3
31+
with:
32+
version: 8
33+
34+
- name: Set Up NodeJS
35+
uses: actions/setup-node@v4
36+
with:
37+
cache: pnpm
38+
node-version: lts/*
39+
40+
- name: Install Dependencies
41+
run: pnpm i
42+
43+
- name: Lint
44+
run: pnpm lint:editorconfig

.github/workflows/eslint.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: ESLint
2+
3+
on:
4+
workflow_run:
5+
workflows:
6+
- CodeQL
7+
types:
8+
- completed
9+
pull_request:
10+
branches:
11+
- main
12+
push:
13+
branches:
14+
- main
15+
16+
jobs:
17+
eslint:
18+
name: Lint
19+
20+
runs-on: ubuntu-latest
21+
timeout-minutes: 10
22+
23+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
24+
25+
steps:
26+
- name: Checkout Repository
27+
uses: actions/checkout@v4
28+
29+
- name: Set Up PNPM
30+
uses: pnpm/action-setup@v3
31+
with:
32+
version: 8
33+
34+
- name: Set Up NodeJS
35+
uses: actions/setup-node@v4
36+
with:
37+
cache: pnpm
38+
node-version: lts/*
39+
40+
- name: Install Dependencies
41+
run: pnpm i
42+
43+
- name: Lint
44+
run: pnpm lint:ts

.github/workflows/markdown.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Markdown
2+
3+
on:
4+
workflow_run:
5+
workflows:
6+
- CodeQL
7+
types:
8+
- completed
9+
pull_request:
10+
branches:
11+
- main
12+
push:
13+
branches:
14+
- main
15+
16+
jobs:
17+
markdown:
18+
name: Lint
19+
20+
runs-on: ubuntu-latest
21+
timeout-minutes: 10
22+
23+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
24+
25+
steps:
26+
- name: Checkout Repository
27+
uses: actions/checkout@v4
28+
29+
- name: Set Up PNPM
30+
uses: pnpm/action-setup@v3
31+
with:
32+
version: 8
33+
34+
- name: Set Up NodeJS
35+
uses: actions/setup-node@v4
36+
with:
37+
cache: pnpm
38+
node-version: lts/*
39+
40+
- name: Install Dependencies
41+
run: pnpm i
42+
43+
- name: Lint
44+
run: pnpm lint:md

.github/workflows/pre-commit.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Pre Commit
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
pre-commit:
10+
name: Lint
11+
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 10
14+
15+
steps:
16+
- name: Checkout Repository
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: 3.12
23+
24+
- name: Lint
25+
uses: pre-commit/[email protected]

.github/workflows/prettier.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Prettier
2+
3+
on:
4+
workflow_run:
5+
workflows:
6+
- CodeQL
7+
types:
8+
- completed
9+
pull_request:
10+
branches:
11+
- main
12+
push:
13+
branches:
14+
- main
15+
16+
jobs:
17+
prettier:
18+
name: Lint
19+
20+
runs-on: ubuntu-latest
21+
timeout-minutes: 10
22+
23+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
24+
25+
steps:
26+
- name: Checkout Repository
27+
uses: actions/checkout@v4
28+
29+
- name: Set Up PNPM
30+
uses: pnpm/action-setup@v3
31+
with:
32+
version: 8
33+
34+
- name: Set Up NodeJS
35+
uses: actions/setup-node@v4
36+
with:
37+
cache: pnpm
38+
node-version: lts/*
39+
40+
- name: Install Dependencies
41+
run: pnpm i
42+
43+
- name: Lint
44+
run: pnpm lint:formatting

0 commit comments

Comments
 (0)