refactor(core): move google3 migration rules into single directory (#30956)

Moves all google3 migration tslint rules into a single directory.
This makes it easier to wire up multiple migration rules in
google3 without having to update the rule directories each time
a new migration is available.

PR Close #30956
This commit is contained in:
Paul Gschwendtner
2019-06-18 11:28:23 +02:00
committed by Kara Erickson
parent 9f2ae5d6ff
commit f69e4e6f77
18 changed files with 33 additions and 56 deletions

View File

@ -18,7 +18,7 @@ describe('Google3 explicitQueryTiming TSLint rule', () => {
* the Bazel runfiles, because on Windows runfiles are not symlinked into the working directory.
*/
const rulesDirectory =
dirname(require.resolve('../../migrations/static-queries/google3/explicitQueryTimingRule'));
dirname(require.resolve('../../migrations/google3/explicitQueryTimingRule'));
let tmpDir: string;

View File

@ -12,8 +12,7 @@ import * as shx from 'shelljs';
import {Configuration, Linter} from 'tslint';
describe('Google3 injectable pipe TSLint rule', () => {
const rulesDirectory =
dirname(require.resolve('../../migrations/injectable-pipe/google3/injectablePipeRule'));
const rulesDirectory = dirname(require.resolve('../../migrations/google3/injectablePipeRule'));
let tmpDir: string;

View File

@ -12,8 +12,8 @@ import * as shx from 'shelljs';
import {Configuration, Linter} from 'tslint';
describe('Google3 missing injectable tslint rule', () => {
const rulesDirectory = dirname(
require.resolve('../../migrations/missing-injectable/google3/noMissingInjectableRule'));
const rulesDirectory =
dirname(require.resolve('../../migrations/google3/noMissingInjectableRule'));
let tmpDir: string;

View File

@ -12,8 +12,8 @@ import * as shx from 'shelljs';
import {Configuration, Linter} from 'tslint';
describe('Google3 noTemplateVariableAssignment TSLint rule', () => {
const rulesDirectory = dirname(require.resolve(
'../../migrations/template-var-assignment/google3/noTemplateVariableAssignmentRule'));
const rulesDirectory =
dirname(require.resolve('../../migrations/google3/noTemplateVariableAssignmentRule'));
let tmpDir: string;