Fix some linter issues, update ESLint (#2318)
* Fix linter issues, run `npm audit fix` * Update ESLint to not be so ancient.
This commit is contained in:
parent
021ef90455
commit
7c5024f921
4 changed files with 554 additions and 608 deletions
|
|
@ -1,7 +1,6 @@
|
|||
"use strict"
|
||||
|
||||
var fs = require("fs")
|
||||
var path = require("path")
|
||||
var zlib = require("zlib")
|
||||
var chokidar = require("chokidar")
|
||||
var Terser = require("terser")
|
||||
|
|
|
|||
|
|
@ -6,9 +6,6 @@ var bundle = require("../bundle")
|
|||
var fs = require("fs")
|
||||
|
||||
var ns = "./"
|
||||
function read(filepath) {
|
||||
try {return fs.readFileSync(ns + filepath, "utf8")} catch (e) {/* ignore */}
|
||||
}
|
||||
function write(filepath, data) {
|
||||
try {var exists = fs.statSync(ns + filepath).isFile()} catch (e) {/* ignore */}
|
||||
if (exists) throw new Error("Don't call `write('" + filepath + "')`. Cannot overwrite file")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue