cosmos-explorer/strict-null-checks/write-tsconfig.js
Jordi Bunster dc5679ffd3
Switch to accessibility insights's version of these tools (#603)
* Switch to accessibility insights's version of these tools

* auto-add files meeting strict checks
2021-04-12 15:12:19 -05:00

13 lines
352 B
JavaScript

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
const fs = require("fs");
module.exports = {
writeTsconfigSync: (tsconfigPath, content) => {
let serializedContent = JSON.stringify(content, null, " ");
serializedContent += "\n";
fs.writeFileSync(tsconfigPath, serializedContent);
},
};