* Bump deps

* Linting cleanups
This commit is contained in:
Jaco Greeff
2020-05-15 13:35:15 +02:00
committed by GitHub
parent f348e34de7
commit 45786b31da
19 changed files with 270 additions and 266 deletions
+2 -4
View File
@@ -196,8 +196,7 @@ function addStorage (metadata: MetadataLatest): string {
};
});
const options = { encoding: 'utf8', flags: 'r' };
const knownSection = JSON.parse(fs.readFileSync('docs/substrate/storage-known-section.json', options));
const knownSection = JSON.parse(fs.readFileSync('docs/substrate/storage-known-section.json', 'utf8'));
return renderPage({
description: DESC_STORAGE,
@@ -283,8 +282,7 @@ function addErrors (metadata: MetadataLatest): string {
/** @internal */
function writeFile (name: string, ...chunks: any[]): void {
const options = { encoding: 'utf8', flags: 'w' };
const writeStream = fs.createWriteStream(name, options);
const writeStream = fs.createWriteStream(name, { encoding: 'utf8', flags: 'w' });
writeStream.on('finish', (): void => {
console.log(`Completed writing ${name}`);