mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-01-22 18:28:26 +00:00
address eslint errors
This commit is contained in:
parent
e7c2aa4d60
commit
42b89a9300
2 changed files with 4 additions and 6 deletions
|
|
@ -18,8 +18,8 @@ module.exports = [globalIgnores(["./*.js", "!./privatebin.js"]), {
|
|||
WebCrypto: "writable",
|
||||
},
|
||||
|
||||
// async & await are ECMAScript 2017 features
|
||||
ecmaVersion: 2017,
|
||||
// async & await are ECMAScript 2017 features, unicode character class escape are ECMAScript 2018 features
|
||||
ecmaVersion: 2018,
|
||||
sourceType: "commonjs",
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -517,12 +517,10 @@ describe('TopNav', function () {
|
|||
cleanup();
|
||||
});
|
||||
|
||||
// eslint-disable global-require
|
||||
var File = window.File,
|
||||
FileList = window.FileList,
|
||||
path = require('path'),
|
||||
mime = require('mime-types');
|
||||
// eslint-enable global-require
|
||||
path = require('path'), // eslint-disable-line global-require
|
||||
mime = require('mime-types'); // eslint-disable-line global-require
|
||||
|
||||
// mocking file input as per https://github.com/jsdom/jsdom/issues/1272
|
||||
function createFile(file_path) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue