From db131a90efadc38aeff989e34dbf182623336cfe Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Mon, 10 Oct 2016 00:09:17 +0100 Subject: [PATCH] chore(build): remove tslint options We've removed tslint from build cycles a while ago, but these options remained. Close #2616 --- .../models/webpack-build-development.ts | 23 ------------------- .../models/webpack-build-production.ts | 15 ++++++++---- 2 files changed, 10 insertions(+), 28 deletions(-) diff --git a/packages/angular-cli/models/webpack-build-development.ts b/packages/angular-cli/models/webpack-build-development.ts index 04ee06c22e3b..4dbaf65e116b 100644 --- a/packages/angular-cli/models/webpack-build-development.ts +++ b/packages/angular-cli/models/webpack-build-development.ts @@ -1,17 +1,5 @@ const path = require('path'); -import * as webpack from 'webpack'; - -declare module 'webpack' { - export interface LoaderOptionsPlugin {} - export interface LoaderOptionsPluginStatic { - new (optionsObject: any): LoaderOptionsPlugin; - } - interface Webpack { - LoaderOptionsPlugin: LoaderOptionsPluginStatic; - } -}; - export const getWebpackDevConfigPartial = function(projectRoot: string, appConfig: any) { return { devtool: 'cheap-module-source-map', @@ -21,17 +9,6 @@ export const getWebpackDevConfigPartial = function(projectRoot: string, appConfi sourceMapFilename: '[name].map', chunkFilename: '[id].chunk.js' }, - plugins: [ - new webpack.LoaderOptionsPlugin({ - options: { - tslint: { - emitErrors: false, - failOnHint: false, - resourcePath: path.resolve(projectRoot, appConfig.root) - }, - } - }) - ], node: { fs: 'empty', global: true, diff --git a/packages/angular-cli/models/webpack-build-production.ts b/packages/angular-cli/models/webpack-build-production.ts index 09caf19c223a..cce93ab7868a 100644 --- a/packages/angular-cli/models/webpack-build-production.ts +++ b/packages/angular-cli/models/webpack-build-production.ts @@ -3,6 +3,16 @@ const WebpackMd5Hash = require('webpack-md5-hash'); const CompressionPlugin = require('compression-webpack-plugin'); import * as webpack from 'webpack'; +declare module 'webpack' { + export interface LoaderOptionsPlugin {} + export interface LoaderOptionsPluginStatic { + new (optionsObject: any): LoaderOptionsPlugin; + } + interface Webpack { + LoaderOptionsPlugin: LoaderOptionsPluginStatic; + } +} + export const getWebpackProdConfigPartial = function(projectRoot: string, appConfig: any) { return { devtool: 'source-map', @@ -28,11 +38,6 @@ export const getWebpackProdConfigPartial = function(projectRoot: string, appConf }), new webpack.LoaderOptionsPlugin({ options: { - tslint: { - emitErrors: true, - failOnHint: true, - resourcePath: path.resolve(projectRoot, appConfig.root) - }, htmlLoader: { minimize: true, removeAttributeQuotes: false,