diff --git a/lib/ConcurrentCompilationError.js b/lib/ConcurrentCompilationError.js index 9e1fa0c79cf..ccb28516d2e 100644 --- a/lib/ConcurrentCompilationError.js +++ b/lib/ConcurrentCompilationError.js @@ -7,9 +7,7 @@ const WebpackError = require("./WebpackError"); -module.exports = class ConcurrentCompilationError extends ( - WebpackError -) { +module.exports = class ConcurrentCompilationError extends WebpackError { constructor() { super(); diff --git a/lib/ContextModuleFactory.js b/lib/ContextModuleFactory.js index e7e913ee4f9..95fd91dff05 100644 --- a/lib/ContextModuleFactory.js +++ b/lib/ContextModuleFactory.js @@ -26,9 +26,7 @@ const { join } = require("./util/fs"); const EMPTY_RESOLVE_OPTIONS = {}; -module.exports = class ContextModuleFactory extends ( - ModuleFactory -) { +module.exports = class ContextModuleFactory extends ModuleFactory { /** * @param {ResolverFactory} resolverFactory resolverFactory */ diff --git a/lib/HarmonyLinkingError.js b/lib/HarmonyLinkingError.js index 00539170d35..0d6d08310b2 100644 --- a/lib/HarmonyLinkingError.js +++ b/lib/HarmonyLinkingError.js @@ -6,9 +6,7 @@ const WebpackError = require("./WebpackError"); -module.exports = class HarmonyLinkingError extends ( - WebpackError -) { +module.exports = class HarmonyLinkingError extends WebpackError { /** @param {string} message Error message */ constructor(message) { super(message); diff --git a/lib/ModuleDependencyWarning.js b/lib/ModuleDependencyWarning.js index 46dfd13b246..a1144fdebab 100644 --- a/lib/ModuleDependencyWarning.js +++ b/lib/ModuleDependencyWarning.js @@ -10,9 +10,7 @@ const WebpackError = require("./WebpackError"); /** @typedef {import("./Dependency").DependencyLocation} DependencyLocation */ /** @typedef {import("./Module")} Module */ -module.exports = class ModuleDependencyWarning extends ( - WebpackError -) { +module.exports = class ModuleDependencyWarning extends WebpackError { /** * @param {Module} module module tied to dependency * @param {Error} err error thrown diff --git a/lib/NoModeWarning.js b/lib/NoModeWarning.js index 1648d64026a..9f13e61596c 100644 --- a/lib/NoModeWarning.js +++ b/lib/NoModeWarning.js @@ -7,9 +7,7 @@ const WebpackError = require("./WebpackError"); -module.exports = class NoModeWarning extends ( - WebpackError -) { +module.exports = class NoModeWarning extends WebpackError { constructor(modules) { super(); diff --git a/lib/container/ContainerEntryModuleFactory.js b/lib/container/ContainerEntryModuleFactory.js index b78b05a1c6f..1a1a7af894e 100644 --- a/lib/container/ContainerEntryModuleFactory.js +++ b/lib/container/ContainerEntryModuleFactory.js @@ -12,9 +12,7 @@ const ContainerEntryModule = require("./ContainerEntryModule"); /** @typedef {import("../ModuleFactory").ModuleFactoryResult} ModuleFactoryResult */ /** @typedef {import("./ContainerEntryDependency")} ContainerEntryDependency */ -module.exports = class ContainerEntryModuleFactory extends ( - ModuleFactory -) { +module.exports = class ContainerEntryModuleFactory extends ModuleFactory { /** * @param {ModuleFactoryCreateData} data data object * @param {function(Error=, ModuleFactoryResult=): void} callback callback diff --git a/lib/container/FallbackModuleFactory.js b/lib/container/FallbackModuleFactory.js index c59b708e162..350e910b9fe 100644 --- a/lib/container/FallbackModuleFactory.js +++ b/lib/container/FallbackModuleFactory.js @@ -12,9 +12,7 @@ const FallbackModule = require("./FallbackModule"); /** @typedef {import("../ModuleFactory").ModuleFactoryResult} ModuleFactoryResult */ /** @typedef {import("./FallbackDependency")} FallbackDependency */ -module.exports = class FallbackModuleFactory extends ( - ModuleFactory -) { +module.exports = class FallbackModuleFactory extends ModuleFactory { /** * @param {ModuleFactoryCreateData} data data object * @param {function(Error=, ModuleFactoryResult=): void} callback callback diff --git a/lib/performance/AssetsOverSizeLimitWarning.js b/lib/performance/AssetsOverSizeLimitWarning.js index 1d4fb2e9444..bdce0692d04 100644 --- a/lib/performance/AssetsOverSizeLimitWarning.js +++ b/lib/performance/AssetsOverSizeLimitWarning.js @@ -10,9 +10,7 @@ const WebpackError = require("../WebpackError"); /** @typedef {import("./SizeLimitsPlugin").AssetDetails} AssetDetails */ -module.exports = class AssetsOverSizeLimitWarning extends ( - WebpackError -) { +module.exports = class AssetsOverSizeLimitWarning extends WebpackError { /** * @param {AssetDetails[]} assetsOverSizeLimit the assets * @param {number} assetLimit the size limit diff --git a/lib/performance/EntrypointsOverSizeLimitWarning.js b/lib/performance/EntrypointsOverSizeLimitWarning.js index 6deee7a5cd5..93dd72e8edc 100644 --- a/lib/performance/EntrypointsOverSizeLimitWarning.js +++ b/lib/performance/EntrypointsOverSizeLimitWarning.js @@ -10,9 +10,7 @@ const WebpackError = require("../WebpackError"); /** @typedef {import("./SizeLimitsPlugin").EntrypointDetails} EntrypointDetails */ -module.exports = class EntrypointsOverSizeLimitWarning extends ( - WebpackError -) { +module.exports = class EntrypointsOverSizeLimitWarning extends WebpackError { /** * @param {EntrypointDetails[]} entrypoints the entrypoints * @param {number} entrypointLimit the size limit diff --git a/lib/performance/NoAsyncChunksWarning.js b/lib/performance/NoAsyncChunksWarning.js index 55a360c9ac9..15ebc68006a 100644 --- a/lib/performance/NoAsyncChunksWarning.js +++ b/lib/performance/NoAsyncChunksWarning.js @@ -7,9 +7,7 @@ const WebpackError = require("../WebpackError"); -module.exports = class NoAsyncChunksWarning extends ( - WebpackError -) { +module.exports = class NoAsyncChunksWarning extends WebpackError { constructor() { super( "webpack performance recommendations: \n" + diff --git a/lib/wasm-sync/UnsupportedWebAssemblyFeatureError.js b/lib/wasm-sync/UnsupportedWebAssemblyFeatureError.js index 06e93b5a5b3..9a4076aa70d 100644 --- a/lib/wasm-sync/UnsupportedWebAssemblyFeatureError.js +++ b/lib/wasm-sync/UnsupportedWebAssemblyFeatureError.js @@ -6,9 +6,7 @@ const WebpackError = require("../WebpackError"); -module.exports = class UnsupportedWebAssemblyFeatureError extends ( - WebpackError -) { +module.exports = class UnsupportedWebAssemblyFeatureError extends WebpackError { /** @param {string} message Error message */ constructor(message) { super(message); diff --git a/lib/wasm-sync/WebAssemblyInInitialChunkError.js b/lib/wasm-sync/WebAssemblyInInitialChunkError.js index fbdefad072b..106b5dfb16c 100644 --- a/lib/wasm-sync/WebAssemblyInInitialChunkError.js +++ b/lib/wasm-sync/WebAssemblyInInitialChunkError.js @@ -79,9 +79,7 @@ const getInitialModuleChains = ( return Array.from(results); }; -module.exports = class WebAssemblyInInitialChunkError extends ( - WebpackError -) { +module.exports = class WebAssemblyInInitialChunkError extends WebpackError { /** * @param {Module} module WASM module * @param {ModuleGraph} moduleGraph the module graph diff --git a/yarn.lock b/yarn.lock index a5cb6a307d2..446b5d09807 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5180,9 +5180,9 @@ prettier-linter-helpers@^1.0.0: fast-diff "^1.1.2" prettier@^2.0.5, prettier@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.0.tgz#8a03c7777883b29b37fb2c4348c66a78e980418b" - integrity sha512-yYerpkvseM4iKD/BXLYUkQV5aKt4tQPqaGW6EsZjzyu0r7sVZZNPJW4Y8MyKmicp6t42XUPcBVA+H6sB3gqndw== + version "2.2.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5" + integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q== pretty-format@^26.0.0, pretty-format@^26.3.0, pretty-format@^26.6.2: version "26.6.2"