diff --git a/packages/examples/testing/ts/testing.ts b/packages/examples/testing/ts/testing.ts index 16db49e745..6687375e89 100644 --- a/packages/examples/testing/ts/testing.ts +++ b/packages/examples/testing/ts/testing.ts @@ -18,7 +18,7 @@ describe('some component', () => { }); }); -/* tslint:disable-next-line:no-jasmine-focus */ +// tslint:disable-next-line:ban fdescribe('some component', () => { it('has a test', () => { @@ -44,7 +44,7 @@ describe('another component', () => { }); describe('some component', () => { - /* tslint:disable-next-line:no-jasmine-focus */ + // tslint:disable-next-line:ban fit('has a test', () => { // This test will run. diff --git a/tslint.json b/tslint.json index c4a8ac52b5..8a7f55bd89 100644 --- a/tslint.json +++ b/tslint.json @@ -20,7 +20,6 @@ "no-construct": true, "no-duplicate-imports": true, "no-duplicate-variable": true, - "no-jasmine-focus": true, "no-var-keyword": true, "prefer-literal": [ true, @@ -49,7 +48,12 @@ true, "function" ], - "no-debugger": true + "no-debugger": true, + "ban": [ + true, + {"name": "fdescribe", "message": "Don't keep jasmine focus methods."}, + {"name": "fit", "message": "Don't keep jasmine focus methods."} + ] }, "jsRules": { "file-header": [ @@ -65,7 +69,6 @@ ], "no-duplicate-imports": true, "no-duplicate-variable": true, - "no-jasmine-focus": true, "require-internal-with-underscore": true, "semicolon": [ true @@ -77,6 +80,11 @@ "no-inner-declarations": [ true, "function" + ], + "ban": [ + true, + {"name": "fdescribe", "message": "Don't keep jasmine focus methods."}, + {"name": "fit", "message": "Don't keep jasmine focus methods."} ] }, "linterOptions": {