Skip to content

Commit 9afdd74

Browse files
authored
Enable typed linting for scripts dir (microsoft#59073)
1 parent 533acb5 commit 9afdd74

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

eslint.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,15 @@ export default tseslint.config(
187187
},
188188
},
189189
},
190+
{
191+
files: ["scripts/**"],
192+
languageOptions: {
193+
parserOptions: {
194+
tsconfigRootDir: __dirname,
195+
project: "./scripts/tsconfig.json",
196+
},
197+
},
198+
},
190199
{
191200
files: ["src/**"],
192201
rules: {

scripts/configurePrerelease.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function main() {
5757
// Finally write the changes to disk.
5858
// Modify the package.json structure
5959
packageJsonValue.version = `${majorMinor}.${prereleasePatch}`;
60-
writeFileSync(packageJsonFilePath, JSON.stringify(packageJsonValue, /*replacer:*/ undefined, /*space:*/ 4));
60+
writeFileSync(packageJsonFilePath, JSON.stringify(packageJsonValue, undefined, 4));
6161
writeFileSync(tsFilePath, modifiedTsFileContents);
6262
}
6363

0 commit comments

Comments
 (0)