Enable typed linting for scripts dir (#59073)
This commit is contained in:
Родитель
533acb5ad9
Коммит
9afdd74b40
|
@ -187,6 +187,15 @@ export default tseslint.config(
|
|||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ["scripts/**"],
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
tsconfigRootDir: __dirname,
|
||||
project: "./scripts/tsconfig.json",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ["src/**"],
|
||||
rules: {
|
||||
|
|
|
@ -57,7 +57,7 @@ function main() {
|
|||
// Finally write the changes to disk.
|
||||
// Modify the package.json structure
|
||||
packageJsonValue.version = `${majorMinor}.${prereleasePatch}`;
|
||||
writeFileSync(packageJsonFilePath, JSON.stringify(packageJsonValue, /*replacer:*/ undefined, /*space:*/ 4));
|
||||
writeFileSync(packageJsonFilePath, JSON.stringify(packageJsonValue, undefined, 4));
|
||||
writeFileSync(tsFilePath, modifiedTsFileContents);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче