Skip to content

Commit ee70bc9

Browse files
committed
Add eslint configuration for pr-checks
1 parent 6fdda13 commit ee70bc9

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

pr-checks/eslint.config.mjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import baseConfig from "../eslint.config.mjs";
2+
3+
// We use the same ESLint configuration as for the main codebase, and only override what we need.
4+
export default [
5+
...baseConfig,
6+
{
7+
languageOptions: {
8+
parserOptions: {
9+
// Use the correct `tsconfig.json` for `pr-checks`.
10+
project: "./pr-checks/tsconfig.json",
11+
},
12+
},
13+
},
14+
{
15+
rules: {
16+
// The scripts in `pr-checks` are expected to output to the console.
17+
"no-console": "off"
18+
}
19+
}
20+
];

pr-checks/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"private": true,
33
"description": "Dependencies for the sync.ts",
4+
"scripts": {
5+
"lint": "eslint --report-unused-disable-directives --max-warnings=0 ."
6+
},
47
"dependencies": {
58
"yaml": "^2.8.2"
69
},

0 commit comments

Comments
 (0)