@evanpurkhiser/oxc-config 0.10.0 → 0.11.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.
@@ -3,6 +3,7 @@ name: publish
3
3
  on:
4
4
  push:
5
5
  branches: [main]
6
+ pull_request:
6
7
 
7
8
  jobs:
8
9
  check:
@@ -11,11 +12,12 @@ jobs:
11
12
  - uses: actions/checkout@v4
12
13
  - uses: jdx/mise-action@v4
13
14
  - run: pnpm install --frozen-lockfile
14
- - run: pnpm run check
15
+ - run: prek run --all-files
15
16
 
16
17
  publish:
17
18
  runs-on: ubuntu-latest
18
19
  needs: check
20
+ if: github.event_name == 'push'
19
21
  permissions:
20
22
  contents: write
21
23
  id-token: write
package/mise.toml CHANGED
@@ -1,2 +1,7 @@
1
1
  [settings]
2
2
  idiomatic_version_file_enable_tools = ["node", "pnpm"]
3
+
4
+ [tools]
5
+ prek = "0.4.9"
6
+ shellcheck = "0.11.0"
7
+ actionlint = "1.7.12"
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.10.0",
4
+ "version": "0.11.0",
5
5
  "description": "Evan Purkhiser's personal Oxc configuration",
6
6
  "license": "MIT",
7
7
  "author": "Evan Purkhiser",
package/prek.toml ADDED
@@ -0,0 +1,33 @@
1
+ [[repos]]
2
+ repo = "https://github.com/pre-commit/pre-commit-hooks"
3
+ rev = "v6.0.0"
4
+ hooks = [
5
+ { id = "trailing-whitespace", priority = 0 },
6
+ { id = "end-of-file-fixer", priority = 1 },
7
+ { id = "mixed-line-ending", priority = 2 },
8
+ { id = "check-merge-conflict", priority = 100 },
9
+ { id = "check-added-large-files", priority = 100 },
10
+ { id = "check-executables-have-shebangs", priority = 100 },
11
+ { id = "check-shebang-scripts-are-executable", priority = 100 },
12
+ { id = "check-case-conflict", priority = 100 },
13
+ { id = "check-symlinks", priority = 100 },
14
+ { id = "detect-private-key", priority = 100 },
15
+ { id = "check-json", priority = 100 },
16
+ { id = "check-toml", priority = 100 },
17
+ { id = "check-yaml", priority = 100 },
18
+ ]
19
+
20
+ [[repos]]
21
+ repo = "https://github.com/crate-ci/typos"
22
+ rev = "v1.48.0"
23
+ hooks = [{ id = "typos", args = ["--force-exclude"], priority = 100 }]
24
+
25
+ [[repos]]
26
+ repo = "https://github.com/rhysd/actionlint"
27
+ rev = "v1.7.12"
28
+ hooks = [{ id = "actionlint-system", priority = 11 }]
29
+
30
+ [[repos]]
31
+ repo = "https://github.com/evanpurkhiser/prek-personal"
32
+ rev = "v1.0.2"
33
+ hooks = [{ id = "oxfmt-system", priority = 10 }, { id = "oxlint-system", priority = 11 }]
@@ -1,14 +0,0 @@
1
- name: ci
2
-
3
- on:
4
- pull_request:
5
- workflow_dispatch:
6
-
7
- jobs:
8
- check:
9
- runs-on: ubuntu-latest
10
- steps:
11
- - uses: actions/checkout@v4
12
- - uses: jdx/mise-action@v4
13
- - run: pnpm install --frozen-lockfile
14
- - run: pnpm run check