# HG changeset patch # User Laurens Holst # Date 1591727127 -7200 # Tue Jun 09 20:25:27 2020 +0200 # Node ID 3d92be5b38944587ab66402323d18b61265d724f # Parent 14be349d38153aa9204adba9c81b6f5f7b9cd026 tools: Use double quotes everywhere. diff --git a/tools/audio.js b/tools/audio.js --- a/tools/audio.js +++ b/tools/audio.js @@ -1,6 +1,6 @@ "use strict" -const fs = require('fs'); -const { checkTypes, toAsmHex } = require('./utils'); +const fs = require("fs"); +const { checkTypes, toAsmHex } = require("./utils"); class AudioTrack { constructor(name) { diff --git a/tools/findaddr.js b/tools/findaddr.js --- a/tools/findaddr.js +++ b/tools/findaddr.js @@ -3,7 +3,7 @@ process.exit(1); } -var fs = require('fs'); +var fs = require("fs"); var filename = process.argv[2]; fs.readFile(filename, "ascii", function(err, data) { diff --git a/tools/images.js b/tools/images.js --- a/tools/images.js +++ b/tools/images.js @@ -1,7 +1,7 @@ "use strict" -const fs = require('fs'); -const PNG = require('png-js'); -const { checkTypes } = require('./utils'); +const fs = require("fs"); +const PNG = require("png-js"); +const { checkTypes } = require("./utils"); class Image { constructor(width, height, palette) { diff --git a/tools/resources.js b/tools/resources.js --- a/tools/resources.js +++ b/tools/resources.js @@ -1,11 +1,11 @@ "use strict" -const fs = require('fs'); -const path = require('path'); -const { checkTypes } = require('./utils'); -const { TileMap, Tmx } = require('./tilemaps'); -const { Image, PNGLoader } = require('./images'); -const { Sprite, AsepriteSheet } = require('./sprites'); -const { AudioTrack, VGMLoader } = require('./audio'); +const fs = require("fs"); +const path = require("path"); +const { checkTypes } = require("./utils"); +const { TileMap, Tmx } = require("./tilemaps"); +const { Image, PNGLoader } = require("./images"); +const { Sprite, AsepriteSheet } = require("./sprites"); +const { AudioTrack, VGMLoader } = require("./audio"); async function main() { if (process.argv.length < 3) { diff --git a/tools/sprites.js b/tools/sprites.js --- a/tools/sprites.js +++ b/tools/sprites.js @@ -1,8 +1,8 @@ "use strict" -const fs = require('fs'); -const path = require('path'); -const { checkTypes } = require('./utils'); -const { Image, ImageSlice, PNGLoader } = require('./images'); +const fs = require("fs"); +const path = require("path"); +const { checkTypes } = require("./utils"); +const { Image, ImageSlice, PNGLoader } = require("./images"); class Sprite { constructor(name, sheet) { diff --git a/tools/tilemaps.js b/tools/tilemaps.js --- a/tools/tilemaps.js +++ b/tools/tilemaps.js @@ -1,9 +1,9 @@ "use strict" -const fs = require('fs'); -const path = require('path'); -const xml2js = require('xml2js'); -const { checkTypes } = require('./utils'); -const { Image, Palette, PNGLoader } = require('./images'); +const fs = require("fs"); +const path = require("path"); +const xml2js = require("xml2js"); +const { checkTypes } = require("./utils"); +const { Image, Palette, PNGLoader } = require("./images"); class TileMap { constructor(name, width, height, tileSet) {