fix newly found eslint problems
This commit is contained in:
parent
e1a405e3c2
commit
35363408c6
|
@ -96,7 +96,8 @@ module.exports = {
|
|||
"jest/globals": true
|
||||
},
|
||||
globals: {
|
||||
nsObj: false
|
||||
nsObj: false,
|
||||
jasmine: false
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
@ -206,7 +206,10 @@ class FlagDependencyUsagePlugin {
|
|||
referencedExports === EXPORTS_OBJECT_REFERENCED
|
||||
) {
|
||||
map.set(module, referencedExports);
|
||||
} else if (oldReferencedExports === NO_EXPORTS_REFERENCED) {
|
||||
} else if (
|
||||
oldReferencedExports !== undefined &&
|
||||
referencedExports === NO_EXPORTS_REFERENCED
|
||||
) {
|
||||
continue;
|
||||
} else {
|
||||
let exportsMap;
|
||||
|
|
|
@ -606,8 +606,6 @@ class RuntimeTemplate {
|
|||
* @param {string} options.importVar name of the import variable
|
||||
* @param {Module} options.originModule module in which the statement is emitted
|
||||
* @param {boolean=} options.weak true, if this is a weak dependency
|
||||
* @param {RuntimeSpec=} options.runtime runtime for which this code will be generated
|
||||
* @param {RuntimeSpec | boolean=} options.runtimeCondition only execute the statement in some runtimes
|
||||
* @param {Set<string>} options.runtimeRequirements if set, will be filled with runtime requirements
|
||||
* @returns {[string, string]} the import statement and the compat statement
|
||||
*/
|
||||
|
|
|
@ -33,6 +33,7 @@ module.exports = function () {
|
|||
var currentUpdateApplyHandlers;
|
||||
var queuedInvalidatedModules;
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
$hmrModuleData$ = currentModuleData;
|
||||
|
||||
$interceptModuleExecution$.push(function (options) {
|
||||
|
|
|
@ -233,7 +233,8 @@ class FileMiddleware extends SerializerMiddleware {
|
|||
* @param {Object} context context object
|
||||
* @returns {SerializedType|Promise<SerializedType>} serialized data
|
||||
*/
|
||||
serialize(data, { filename, extension = "" }) {
|
||||
serialize(data, context) {
|
||||
const { filename, extension = "" } = context;
|
||||
return new Promise((resolve, reject) => {
|
||||
mkdirp(this.fs, dirname(this.fs, filename), err => {
|
||||
if (err) return reject(err);
|
||||
|
@ -301,7 +302,8 @@ class FileMiddleware extends SerializerMiddleware {
|
|||
* @param {Object} context context object
|
||||
* @returns {DeserializedType|Promise<DeserializedType>} deserialized data
|
||||
*/
|
||||
deserialize(data, { filename, extension = "" }) {
|
||||
deserialize(data, context) {
|
||||
const { filename, extension = "" } = context;
|
||||
const readFile = name =>
|
||||
new Promise((resolve, reject) => {
|
||||
const file = name
|
||||
|
|
|
@ -8299,14 +8299,6 @@ declare abstract class RuntimeTemplate {
|
|||
* true, if this is a weak dependency
|
||||
*/
|
||||
weak?: boolean;
|
||||
/**
|
||||
* runtime for which this code will be generated
|
||||
*/
|
||||
runtime?: string | SortableSet<string>;
|
||||
/**
|
||||
* only execute the statement in some runtimes
|
||||
*/
|
||||
runtimeCondition?: string | boolean | SortableSet<string>;
|
||||
/**
|
||||
* if set, will be filled with runtime requirements
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue