Skip to content

Commit d89200a

Browse files
gkalpakalxhub
authored andcommitted
refactor(docs-infra): remove unnecessary use strict from docs examples TS files (angular#38143)
By default, TypeScript will emit `"use strict"` directives, so it is not necessary to include `'use strict'` in `.ts` files: https://www.typescriptlang.org/docs/handbook/compiler-options.html#:~:text=--noImplicitUseStrict PR Close angular#38143
1 parent 00b7186 commit d89200a

File tree

65 files changed

+0
-129
lines changed

Some content is hidden

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

65 files changed

+0
-129
lines changed

aio/content/examples/accessibility/e2e/src/app.e2e-spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict'; // necessary for es6 output in node
2-
31
import { browser, element, by } from 'protractor';
42

53
describe('Accessibility example e2e tests', () => {

aio/content/examples/ajs-quick-reference/e2e/src/app.e2e-spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict'; // necessary for es6 output in node
2-
31
import { browser, element, by } from 'protractor';
42

53
describe('AngularJS to Angular Quick Reference Tests', function () {

aio/content/examples/animations/e2e/src/app.e2e-spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict'; // necessary for es6 output in node
2-
31
import { browser, ExpectedConditions as EC } from 'protractor';
42
import { logging } from 'selenium-webdriver';
53
import * as openClose from './open-close.po';

aio/content/examples/architecture/e2e/src/app.e2e-spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict'; // necessary for es6 output in node
2-
31
import { protractor, browser, element, by, ElementFinder } from 'protractor';
42

53
const nameSuffix = 'X';

aio/content/examples/attribute-binding/e2e/src/app.e2e-spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict'; // necessary for es6 output in node
2-
31
import { browser, element, by } from 'protractor';
42

53
describe('Attribute binding example', function () {

aio/content/examples/attribute-directives/e2e/src/app.e2e-spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict'; // necessary for es6 output in node
2-
31
import { browser, element, by } from 'protractor';
42

53
describe('Attribute directives', () => {

aio/content/examples/built-in-directives/e2e/src/app.e2e-spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
import { browser, element, by } from 'protractor';
42

53
describe('Built-in Directives', function () {

aio/content/examples/built-in-template-functions/e2e/src/app.e2e-spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict'; // necessary for es6 output in node
2-
31
import { browser, element, by } from 'protractor';
42

53
describe('Built Template Functions Example', function () {

aio/content/examples/component-interaction/e2e/src/app.e2e-spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict'; // necessary for es6 output in node
2-
31
import { browser, element, by } from 'protractor';
42

53
describe('Component Communication Cookbook Tests', function () {

aio/content/examples/component-styles/e2e/src/app.e2e-spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict'; // necessary for es6 output in node
2-
31
import { browser, element, by } from 'protractor';
42

53
describe('Component Style Tests', function () {

0 commit comments

Comments
 (0)