@evanpurkhiser/oxc-config 0.17.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/actions.lock +25 -0
- package/.github/workflows/main.yml +12 -14
- package/README.md +5 -6
- package/package.json +1 -1
- package/prek.toml +6 -1
- package/rumdl.toml +7 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# This file is machine-generated by `gh actions-lock`.
|
|
2
|
+
# Do not edit by hand; run `gh actions-lock` to update.
|
|
3
|
+
# Docs: https://gh.io/actions-lockfile
|
|
4
|
+
version: 'v0.0.3'
|
|
5
|
+
workflows:
|
|
6
|
+
'.github/workflows/main.yml':
|
|
7
|
+
- 'actions/checkout@v6.0.3'
|
|
8
|
+
- 'evanpurkhiser/workflows@main'
|
|
9
|
+
- 'jdx/mise-action@v4.2.0'
|
|
10
|
+
dependencies:
|
|
11
|
+
'actions/checkout@v6.0.3':
|
|
12
|
+
ref: 'v6.0.3'
|
|
13
|
+
commit: 'sha1-df4cb1c069e1874edd31b4311f1884172cec0e10'
|
|
14
|
+
owner_id: 44036562
|
|
15
|
+
repo_id: 197814629
|
|
16
|
+
'evanpurkhiser/workflows@main':
|
|
17
|
+
ref: 'main'
|
|
18
|
+
commit: 'sha1-f019c5f6ad0107bc2accbeda0ff8fce510d807e3'
|
|
19
|
+
owner_id: 1421724
|
|
20
|
+
repo_id: 1057625462
|
|
21
|
+
'jdx/mise-action@v4.2.0':
|
|
22
|
+
ref: 'v4.2.0'
|
|
23
|
+
commit: 'sha1-e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d'
|
|
24
|
+
owner_id: 216188
|
|
25
|
+
repo_id: 738284564
|
|
@@ -9,10 +9,10 @@ jobs:
|
|
|
9
9
|
check:
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
11
|
steps:
|
|
12
|
-
- uses: actions/checkout@
|
|
12
|
+
- uses: actions/checkout@v6.0.3
|
|
13
13
|
with:
|
|
14
14
|
persist-credentials: false
|
|
15
|
-
- uses: jdx/mise-action@
|
|
15
|
+
- uses: jdx/mise-action@v4.2.0
|
|
16
16
|
- run: pnpm install --frozen-lockfile
|
|
17
17
|
- run: prek run --all-files
|
|
18
18
|
|
|
@@ -24,23 +24,21 @@ jobs:
|
|
|
24
24
|
contents: write
|
|
25
25
|
id-token: write
|
|
26
26
|
steps:
|
|
27
|
-
- uses: actions/checkout@
|
|
27
|
+
- uses: actions/checkout@v6.0.3
|
|
28
28
|
with:
|
|
29
29
|
persist-credentials: false
|
|
30
|
-
-
|
|
31
|
-
run: gh auth setup-git
|
|
32
|
-
env:
|
|
33
|
-
GH_TOKEN: ${{ github.token }}
|
|
34
|
-
- uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
|
|
30
|
+
- uses: jdx/mise-action@v4.2.0
|
|
35
31
|
- run: pnpm install --frozen-lockfile
|
|
36
32
|
- name: bump version
|
|
37
|
-
env:
|
|
38
|
-
GH_TOKEN: ${{ github.token }}
|
|
39
33
|
run: |
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
34
|
+
pnpm version minor --no-git-tag-version
|
|
35
|
+
echo "VERSION=$(node -p 'require("./package.json").version')" >> "$GITHUB_ENV"
|
|
36
|
+
- name: Commit and push version
|
|
37
|
+
uses: evanpurkhiser/workflows/actions/commit-and-push@main
|
|
38
|
+
with:
|
|
39
|
+
stage-script: git add package.json pnpm-lock.yaml
|
|
40
|
+
branch: main
|
|
41
|
+
commit-message: ${{ env.VERSION }}
|
|
44
42
|
- run: pnpm publish --no-git-checks --provenance --access=public
|
|
45
43
|
env:
|
|
46
44
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
package/README.md
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
# Evan Purkhiser's Personal Oxc config
|
|
2
2
|
|
|
3
3
|
[](https://github.com/evanpurkhiser/oxc-config/actions?query=workflow%3Apublish)
|
|
4
4
|
[](https://www.npmjs.com/package/@evanpurkhiser/oxc-config)
|
|
5
5
|
|
|
6
|
-
These are my Oxc linting and formatting configurations
|
|
7
|
-
various personal
|
|
8
|
-
projects.
|
|
6
|
+
These are my Oxc linting and formatting configurations
|
|
7
|
+
that I use across my various personal projects.
|
|
9
8
|
|
|
10
9
|
```bash
|
|
11
10
|
npm install -D oxlint oxfmt @evanpurkhiser/oxc-config
|
|
@@ -22,8 +21,8 @@ export default defineConfig({
|
|
|
22
21
|
});
|
|
23
22
|
```
|
|
24
23
|
|
|
25
|
-
The default configuration is for React apps,
|
|
26
|
-
following configurations:
|
|
24
|
+
The default configuration is for React apps,
|
|
25
|
+
but you can select from the following configurations:
|
|
27
26
|
|
|
28
27
|
- `common` - ES6 and Typescript rules
|
|
29
28
|
- `react` - React specific rules
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@evanpurkhiser/oxc-config",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.19.0",
|
|
5
5
|
"description": "Evan Purkhiser's personal Oxc configuration",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Evan Purkhiser <oxc-config.js@evanpurkhiser.com>",
|
package/prek.toml
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
[[repos]]
|
|
2
|
+
repo = "https://github.com/rvben/rumdl-pre-commit"
|
|
3
|
+
rev = "v0.3.3"
|
|
4
|
+
hooks = [{ id = "rumdl", args = ["--fix"], priority = 10 }]
|
|
5
|
+
|
|
1
6
|
[[repos]]
|
|
2
7
|
repo = "https://github.com/pre-commit/pre-commit-hooks"
|
|
3
8
|
rev = "v6.0.0"
|
|
@@ -29,7 +34,7 @@ hooks = [{ id = "actionlint-system", priority = 11 }]
|
|
|
29
34
|
|
|
30
35
|
[[repos]]
|
|
31
36
|
repo = "https://github.com/zizmorcore/zizmor-pre-commit"
|
|
32
|
-
rev = "v1.
|
|
37
|
+
rev = "v1.32.0"
|
|
33
38
|
hooks = [{ id = "zizmor", args = ["--min-severity", "high"], priority = 11 }]
|
|
34
39
|
|
|
35
40
|
[[repos]]
|