js: Normalize strings to double quotes.

Prettier would do this anyway, but it’s separated out for a more
reviewable diff.  Generated by ESLint.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-07-14 16:29:15 -07:00
committed by Tim Abbott
parent 06691e1e45
commit f3726db89a
344 changed files with 14425 additions and 14420 deletions

View File

@@ -1,9 +1,9 @@
#!/usr/bin/env node
const fs = require('fs');
const jsyaml = require('js-yaml');
const SwaggerParser = require('swagger-parser');
const ExampleValidator = require('openapi-examples-validator');
const fs = require("fs");
const jsyaml = require("js-yaml");
const SwaggerParser = require("swagger-parser");
const ExampleValidator = require("openapi-examples-validator");
(async () => {
// Iterate through the changed files, passed in the arguments.
@@ -12,7 +12,7 @@ const ExampleValidator = require('openapi-examples-validator');
for (const file of process.argv.slice(2)) {
try {
if (
jsyaml.safeLoad(await fs.promises.readFile(file, 'utf8'), {
jsyaml.safeLoad(await fs.promises.readFile(file, "utf8"), {
filename: file,
}).openapi !== undefined
) {