From 2a96440753e19cfbe2901f880345402d42584a0d 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. --- .../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 5fb423d6edb2..bc8e6f9fa6b6 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: '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 d1c7b24b1a45..a812e57d5f41 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', @@ -27,11 +37,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,