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")
|
||||
|
|
|
|||
1153
package-lock.json
generated
1153
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -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": {}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue