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:
Isiah Meadows 2018-11-30 03:11:07 -05:00 committed by GitHub
parent 021ef90455
commit 7c5024f921
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 554 additions and 608 deletions

View file

@ -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")

View file

@ -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")

1153
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -32,7 +32,7 @@
"benchmark": "^2.1.4",
"chokidar": "^2.0.4",
"dedent": "^0.7.0",
"eslint": "^3.19.0",
"eslint": "^5.9.0",
"gh-pages": "^0.12.0",
"glob": "^7.1.2",
"istanbul": "^0.4.5",
@ -50,6 +50,5 @@
"eslint . --fix",
"git add"
]
},
"dependencies": {}
}
}