Skip to content

Commit 19618bf

Browse files
committed
Modernize tooling
1 parent d62dc3b commit 19618bf

File tree

9 files changed

+140
-1687
lines changed

9 files changed

+140
-1687
lines changed

.eslintrc.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
open-pull-requests-limit: 10
8+
groups:
9+
all-npm:
10+
patterns:
11+
- "*"
12+
- package-ecosystem: github-actions
13+
directory: "/"
14+
schedule:
15+
interval: daily
16+
open-pull-requests-limit: 10

.github/workflows/check-project-std.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ jobs:
99
uses: prx/.github/.github/workflows/check-project-std-cloudformation.yml@main
1010
check-javascript:
1111
uses: prx/.github/.github/workflows/check-project-std-javascript.yml@main
12+
check-json:
13+
uses: prx/.github/.github/workflows/check-project-std-json.yml@main
14+
check-yaml:
15+
uses: prx/.github/.github/workflows/check-project-std-yaml.yml@main
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Enable auto-merge on Dependabot PRs
2+
on: pull_request
3+
4+
permissions:
5+
pull-requests: write
6+
contents: write
7+
8+
jobs:
9+
enable-auto-merge:
10+
runs-on: ubuntu-latest
11+
if: github.event.pull_request.user.login == 'dependabot[bot]'
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v5
15+
- name: Enable Pull Request Automerge
16+
run: gh pr merge --squash --auto ${{ github.event.pull_request.number }}
17+
env:
18+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.vscode/settings.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
2-
"[javascript]": {
3-
"editor.defaultFormatter": "esbenp.prettier-vscode",
2+
"[javascript][json]": {
3+
"editor.defaultFormatter": "biomejs.biome",
44
"editor.formatOnSave": true,
55
"editor.formatOnSaveMode": "file"
66
},
77
"[yaml]": {
88
"editor.defaultFormatter": "esbenp.prettier-vscode",
9-
"editor.formatOnSave": true
9+
"editor.formatOnSave": true,
10+
"editor.formatOnSaveMode": "file"
1011
}
1112
}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
# GitHub Toolkit
2+
3+
A [GitHub App](https://docs.github.com/en/apps/creating-github-apps/about-creating-github-apps/about-creating-github-apps) that could do a variety of things, but currently adds all new issues created in the GitHub organization to some specific project.

biome.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
3+
"vcs": {
4+
"enabled": false,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false
10+
},
11+
"formatter": {
12+
"enabled": true,
13+
"useEditorconfig": true
14+
},
15+
"linter": {
16+
"enabled": true,
17+
"rules": {
18+
"recommended": true
19+
}
20+
},
21+
"javascript": {
22+
"formatter": {
23+
"quoteStyle": "double"
24+
}
25+
},
26+
"assist": {
27+
"enabled": true,
28+
"actions": {
29+
"source": {
30+
"organizeImports": "on"
31+
}
32+
}
33+
}
34+
}

package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,10 @@
2222
"octokit": "*"
2323
},
2424
"devDependencies": {
25+
"@biomejs/biome": "*",
26+
"@types/aws-lambda": "*",
2527
"@types/node": "*",
26-
"eslint": "*",
27-
"eslint-config-airbnb-base": "*",
28-
"eslint-config-prettier": "*",
29-
"eslint-plugin-import": "*",
30-
"eslint-plugin-jest": "*",
31-
"eslint-plugin-prettier": "*",
3228
"jsdoc": "*",
33-
"prettier": "*",
3429
"typescript": "*",
3530
"yarn": "*"
3631
}

0 commit comments

Comments
 (0)