Skip to content

Commit 56e15c7

Browse files
committed
refactor: added a tslint rule to enforce package.json dependencies
And added disable of the rule to spec and scripts files.
1 parent 984b332 commit 56e15c7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+94
-59
lines changed

lib/packages.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8-
'use strict';
9-
8+
// tslint:disable-next-line:no-implicit-dependencies
109
import { JsonObject } from '@angular-devkit/core';
1110
import { execSync } from 'child_process';
1211
import * as crypto from 'crypto';

packages/angular_devkit/build_optimizer/src/build-optimizer/build-optimizer_spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8+
// tslint:disable-next-line:no-implicit-dependencies
89
import { tags } from '@angular-devkit/core';
910
import { RawSourceMap } from 'source-map';
1011
import { buildOptimizer } from './build-optimizer';

packages/angular_devkit/build_optimizer/src/build-optimizer/webpack-loader.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88
import { RawSourceMap, SourceMapConsumer, SourceMapGenerator } from 'source-map';
9-
import * as webpack from 'webpack';
9+
import * as webpack from 'webpack'; // tslint:disable-line:no-implicit-dependencies
10+
1011
const loaderUtils = require('loader-utils');
1112

1213
import { buildOptimizer } from './build-optimizer';

packages/angular_devkit/build_optimizer/src/purify/purify_spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8+
// tslint:disable-next-line:no-implicit-dependencies
89
import { tags } from '@angular-devkit/core';
910
import { purify } from './purify';
1011

packages/angular_devkit/build_optimizer/src/purify/webpack-plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8+
// tslint:disable-next-line:no-implicit-dependencies
89
import * as webpack from 'webpack';
910
import { ReplaceSource } from 'webpack-sources';
1011
import { purifyReplacements } from './purify';

packages/angular_devkit/build_optimizer/src/transforms/class-fold_spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8+
// tslint:disable-next-line:no-implicit-dependencies
89
import { tags } from '@angular-devkit/core';
910
import { transformJavascript } from '../helpers/transform-javascript';
1011
import { getFoldFileTransformer } from './class-fold';

packages/angular_devkit/build_optimizer/src/transforms/import-tslib_spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8+
// tslint:disable-next-line:no-implicit-dependencies
89
import { tags } from '@angular-devkit/core';
910
import { transformJavascript } from '../helpers/transform-javascript';
1011
import { getImportTslibTransformer, testImportTslib } from './import-tslib';

packages/angular_devkit/build_optimizer/src/transforms/prefix-classes_spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8+
// tslint:disable-next-line:no-implicit-dependencies
89
import { tags } from '@angular-devkit/core';
910
import { transformJavascript } from '../helpers/transform-javascript';
1011
import { getPrefixClassesTransformer, testPrefixClasses } from './prefix-classes';

packages/angular_devkit/build_optimizer/src/transforms/prefix-functions_spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8+
// tslint:disable-next-line:no-implicit-dependencies
89
import { tags } from '@angular-devkit/core';
910
import { transformJavascript } from '../helpers/transform-javascript';
1011
import { getPrefixFunctionsTransformer } from './prefix-functions';

packages/angular_devkit/build_optimizer/src/transforms/scrub-file_spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8+
// tslint:disable-next-line:no-implicit-dependencies
89
import { tags } from '@angular-devkit/core';
910
import { transformJavascript } from '../helpers/transform-javascript';
1011
import { getScrubFileTransformer, testScrubFile } from './scrub-file';

0 commit comments

Comments
 (0)