GeezerVison is showing github.com — Add eslint for `pr-checks` by mbg · Pull Request #3572 · github/codeql-action
Add eslint for pr-checks
#3572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement . We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Uh oh!
There was an error while loading. Please reload this page.
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b5e1fb0
Add `workspaces` to root `package.json`
mbg Mar 12, 2026
7df3db2
Add minimal `Step` type
mbg Mar 12, 2026
e608db4
Add eslint configuration for `pr-checks`
mbg Mar 12, 2026
7950e47
Fix linter errors in `sync.ts`
mbg Mar 12, 2026
967ca85
Rename `sync_back` to `sync-back`
mbg Mar 12, 2026
b171c1c
Fix linter errors in `sync-back.ts`
mbg Mar 12, 2026
b4cb104
Fix linter errors in `sync-back.test.ts`
mbg Mar 12, 2026
3bc3228
Add explicit cache dependency paths in `pr-checks.yml`
mbg Mar 12, 2026
fc8d303
Add step (in root directory) to install dependencies
mbg Mar 12, 2026
a5aba59
Remove `package-lock.json` that's no longer needed
mbg Mar 13, 2026
136b8ab
Remove `cache-dependency-path` options as well
mbg Mar 13, 2026
File filter
Filter by extension
.json
(3)
.mjs
(1)
.ts
(3)
.yml
(2)
All 4 file types selected
Only manifest files
Deleted files
Viewed files
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Hide whitespace
Diff view
Hide whitespace
There are no files selected for viewing
Original file line number
Diff line number
Diff line change
Expand Up
@@ -92,14 +92,17 @@ jobs:
node-version: 24
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Verify PR checks up to date
if: always()
run: .github/workflows/script/verify-pr-checks.sh
- name: Run pr-checks tests
if: always()
working-directory: pr-checks
run: npm ci && npx tsx --test
run: npx tsx --test
check-node-version:
if: github.triggering_actor != 'dependabot[bot]'
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -34,9 +34,6 @@ jobs:
with:
node-version: 24
cache: 'npm'
cache-dependency-path: |
package-lock.json
pr-checks/package-lock.json
- name: Remove label
if: github.event_name == 'pull_request'
Expand Down
Expand Up
@@ -97,7 +94,7 @@ jobs:
working-directory: pr-checks
run: |
npm ci
npx tsx sync_back .ts --verbose
npx tsx sync-back .ts --verbose
- name: Generate workflows
working-directory: pr-checks
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -23,7 +23,6 @@ export default [
"ava.setup.mjs",
"eslint.config.mjs",
".github/**/*",
"pr-checks/**/*",
],
},
// eslint recommended config
Expand Down
Expand Up
@@ -170,4 +169,29 @@ export default [
"func-style": "off",
},
},
{
files: ["pr-checks/**/*.ts"],
languageOptions: {
parserOptions: {
// Use the correct `tsconfig.json` for `pr-checks`.
project: "./pr-checks/tsconfig.json",
},
},
rules: {
// The scripts in `pr-checks` are expected to output to the console.
"no-console": "off",
"@typescript-eslint/no-floating-promises": [
"error",
{
allowForKnownSafeCalls: [
// Avoid needing explicit `void` in front of `describe` calls in test files.
{ from: "package", name: ["describe"], package: "node:test" },
Comment thread
mbg marked this conversation as resolved.
Resolved
Uh oh!
There was an error while loading. Please reload this page.
],
},
],
},
},
];
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Original file line number
Diff line number
Diff line change
Expand Up
@@ -15,6 +15,9 @@
"transpile": "tsc --build --verbose"
},
"license": "MIT",
"workspaces": [
"pr-checks"
],
"dependencies": {
"@actions/artifact": "^5.0.3",
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
Expand Down
Loading
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Loading
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.