Skip to content

Commit 93c7550

Browse files
committed
feat: move away from biome & add a .editorconfig
1 parent bcd764d commit 93c7550

18 files changed

+313
-303
lines changed

.editorconfig

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
tab_width = 3
8+
charset = utf-8
9+
end_of_line = lf
10+
indent_style = tab
11+
max_line_length = 112
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
15+
[*.md]
16+
max_line_length = 0
17+
trim_trailing_whitespace = false
18+
19+
[COMMIT_EDITMSG]
20+
max_line_length = 0

.github/workflows/build.yml

+34-29
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,41 @@
11
name: "Build"
22

33
on:
4-
push:
5-
tags:
6-
- "v*.*.*"
4+
push:
5+
tags:
6+
- "v*.*.*"
77

88
permissions:
9-
contents: write
9+
contents: write
1010

1111
jobs:
12-
build:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Checkout
16-
uses: actions/checkout@v4
17-
- name: Install Node v20
18-
uses: actions/setup-node@v1
19-
with:
20-
node-version: 20
21-
- name: Install TypeScript
22-
run: npm install typescript --save-dev
23-
- name: Run tsc
24-
run: npx tsc --outDir out/
25-
- name: Package hooks into tar
26-
run: pushd out; cp ../repo.json .; 7z a -bb0 hooks.tar *; mv hooks.tar ../; popd
27-
- name: Compress hooks.tar
28-
run: 7z a -bb0 -sdel hooks.tar.gz hooks.tar
29-
- name: Package hooks types
30-
run: 7z a hooks.types.zip types/*
31-
- name: Release
32-
uses: softprops/action-gh-release@v2
33-
with:
34-
files: |
35-
COPYING
36-
hooks.tar.gz
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Install Node v20
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: 20
21+
- name: Install TypeScript
22+
run: npm install typescript --save-dev
23+
- name: Run tsc
24+
run: npx tsc --outDir out/
25+
- name: Package hooks into tar
26+
run: |
27+
pushd out
28+
cp ../repo.json .
29+
7z a -bb0 hooks.tar *
30+
mv hooks.tar ../
31+
popd
32+
- name: Compress hooks.tar
33+
run: 7z a -bb0 -sdel hooks.tar.gz hooks.tar
34+
- name: Package hooks types
35+
run: 7z a hooks.types.zip types/*
36+
- name: Release
37+
uses: softprops/action-gh-release@v2
38+
with:
39+
files: |
40+
COPYING
41+
hooks.tar.gz

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
out/
2-
types/
31
*.js

.vscode/extensions.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"editorconfig.editorconfig"
4+
]
5+
}

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"editor.formatOnSave": true,
3+
}

0 commit comments

Comments
 (0)