Skip to content

Commit 1c7be6f

Browse files
committed
ci: set codeql ignore pnp files
1 parent 0563425 commit 1c7be6f

File tree

7 files changed

+10
-5
lines changed

7 files changed

+10
-5
lines changed

Diff for: .github/workflows/codeql.yml

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
with:
4141
languages: ${{ matrix.language }}
4242
queries: +security-and-quality
43+
config: |
44+
paths-ignore:
45+
- tests/pnp/.pnp.*
4346
4447
- name: Autobuild
4548
uses: github/codeql-action/autobuild@v3

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"eslint": "ESLINT_USE_FLAT_CONFIG=false eslint",
4444
"lint": "run-p 'lint:*'",
4545
"lint:es": "eslint . --cache",
46-
"lint:tsc": "tsc --noEmit",
46+
"lint:tsc": "tsc -b --noEmit",
4747
"prepare": "simple-git-hooks && yarn-berry-deduplicate || exit 0",
4848
"release": "clean-pkg-json && changeset publish",
4949
"test": "run-p 'test:*'",

Diff for: tests/pnp/.pnp.cjs

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

Diff for: tests/pnp/.yarnrc.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
enableGlobalCache: false
2+
13
nodeLinker: pnp

Diff for: tests/pnp/pnp.spec.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { describe, expect, it } from 'vitest'
22
import { exec } from 'tinyexec'
33

44
import { createTypeScriptImportResolver } from 'eslint-import-resolver-typescript'
5-
import path from 'node:path'
65

76
describe('createTypeScriptImportResolver', () => {
87
it('should work with pnp', async () => {
@@ -26,7 +25,7 @@ describe('createTypeScriptImportResolver', () => {
2625
.toMatchInlineSnapshot(`
2726
{
2827
"found": true,
29-
"path": "<HOME>/.yarn/berry/cache/lodash.zip-npm-4.2.0-5299417ec8-10.zip/node_modules/lodash.zip/index.js",
28+
"path": "<ROOT>/tests/pnp/.yarn/cache/lodash.zip-npm-4.2.0-5299417ec8-cb06530d81.zip/node_modules/lodash.zip/index.js",
3029
}
3130
`)
3231
})

Diff for: tsconfig.base.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
"outDir": "./lib",
66
"allowSyntheticDefaultImports": true,
77
"esModuleInterop": true
8-
}
8+
},
9+
"exclude": ["tests"]
910
}

0 commit comments

Comments
 (0)