Skip to content

Commit 1b9676f

Browse files
alan-agius4clydin
authored andcommitted
refactor(@angular-devkit/build-angular): remove redundant any casting
(cherry picked from commit 50078ac)
1 parent 8215888 commit 1b9676f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/angular_devkit/build_angular/src/dev-server/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@ export function serveWebpackBrowser(
189189
// This is needed because we cannot use the inline option directly in the config
190190
// because of the SuppressExtractedTextChunksWebpackPlugin
191191
// Consider not using SuppressExtractedTextChunksWebpackPlugin when liveReload is enable.
192-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
193-
webpackDevServer.addDevServerEntrypoints(config as any, {
192+
webpackDevServer.addDevServerEntrypoints(config, {
194193
...config.devServer,
195194
inline: true,
196195
});

packages/angular_devkit/build_angular/src/webpack/configs/styles.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,7 @@ export function getStylesConfig(wco: WebpackConfigOptions): webpack.Configuratio
194194
}),
195195
...extraPostcssPlugins,
196196
postcssPresetEnv({
197-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
198-
browsers: supportedBrowsers as any, // Typings only allow a string
197+
browsers: supportedBrowsers,
199198
autoprefixer: true,
200199
stage: 3,
201200
}),

0 commit comments

Comments
 (0)