refactor(docs-infra): remove unnecessary `use strict` from docs examples TS files (#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 #38143
This commit is contained in:
George Kalpakas 2020-07-30 13:03:08 +03:00 committed by Alex Rickabaugh
parent 00b7186cb2
commit d89200ad24
65 changed files with 0 additions and 129 deletions

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
describe('Accessibility example e2e tests', () => { describe('Accessibility example e2e tests', () => {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
describe('AngularJS to Angular Quick Reference Tests', function () { describe('AngularJS to Angular Quick Reference Tests', function () {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, ExpectedConditions as EC } from 'protractor'; import { browser, ExpectedConditions as EC } from 'protractor';
import { logging } from 'selenium-webdriver'; import { logging } from 'selenium-webdriver';
import * as openClose from './open-close.po'; import * as openClose from './open-close.po';

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { protractor, browser, element, by, ElementFinder } from 'protractor'; import { protractor, browser, element, by, ElementFinder } from 'protractor';
const nameSuffix = 'X'; const nameSuffix = 'X';

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
describe('Attribute binding example', function () { describe('Attribute binding example', function () {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
describe('Attribute directives', () => { describe('Attribute directives', () => {

View File

@ -1,5 +1,3 @@
'use strict';
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
describe('Built-in Directives', function () { describe('Built-in Directives', function () {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
describe('Built Template Functions Example', function () { describe('Built Template Functions Example', function () {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
describe('Component Communication Cookbook Tests', function () { describe('Component Communication Cookbook Tests', function () {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
describe('Component Style Tests', function () { describe('Component Style Tests', function () {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
describe('Dependency Injection Cookbook', function () { describe('Dependency Injection Cookbook', function () {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by, ElementFinder } from 'protractor'; import { browser, element, by, ElementFinder } from 'protractor';
describe('Dependency Injection Tests', function () { describe('Dependency Injection Tests', function () {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
describe('Displaying Data Tests', function () { describe('Displaying Data Tests', function () {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
describe('Docs Style Guide', function () { describe('Docs Style Guide', function () {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
/* tslint:disable:quotemark */ /* tslint:disable:quotemark */

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
/* tslint:disable:quotemark */ /* tslint:disable:quotemark */

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, by, element, ElementFinder, ExpectedConditions as EC } from 'protractor'; import { browser, by, element, ElementFinder, ExpectedConditions as EC } from 'protractor';
/* tslint:disable:quotemark */ /* tslint:disable:quotemark */

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by, protractor } from 'protractor'; import { browser, element, by, protractor } from 'protractor';
describe('Event binding example', function () { describe('Event binding example', function () {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for node!
import { browser, element, by, protractor, ElementFinder, ElementArrayFinder } from 'protractor'; import { browser, element, by, protractor, ElementFinder, ElementArrayFinder } from 'protractor';
// THESE TESTS ARE INCOMPLETE // THESE TESTS ARE INCOMPLETE

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
describe('Getting Started V0', () => { describe('Getting Started V0', () => {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by, ExpectedConditions as EC, logging, ElementFinder, ElementArrayFinder } from 'protractor'; import { browser, element, by, ExpectedConditions as EC, logging, ElementFinder, ElementArrayFinder } from 'protractor';
describe('Getting Started', () => { describe('Getting Started', () => {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, by, element } from 'protractor'; import { browser, by, element } from 'protractor';
describe('Hierarchical dependency injection', () => { describe('Hierarchical dependency injection', () => {

View File

@ -1,5 +1,3 @@
'use strict';
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
import { logging } from 'selenium-webdriver'; import { logging } from 'selenium-webdriver';

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, ElementFinder, by } from 'protractor'; import { browser, element, ElementFinder, by } from 'protractor';
describe('Lifecycle hooks', () => { describe('Lifecycle hooks', () => {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
describe('NgModule-example', function () { describe('NgModule-example', function () {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
const { version: angularVersion } = require('@angular/core/package.json'); const { version: angularVersion } = require('@angular/core/package.json');

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
describe('Reactive forms', function () { describe('Reactive forms', function () {

View File

@ -1,4 +1,3 @@
;
import { OptionalComponent } from './optional/optional.component'; import { OptionalComponent } from './optional/optional.component';
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser'; import { BrowserModule } from '@angular/platform-browser';

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by, ExpectedConditions } from 'protractor'; import { browser, element, by, ExpectedConditions } from 'protractor';
const numDashboardTabs = 5; const numDashboardTabs = 5;

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, By } from 'protractor'; import { browser, element, By } from 'protractor';
describe('Security E2E Tests', () => { describe('Security E2E Tests', () => {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by, ElementFinder } from 'protractor'; import { browser, element, by, ElementFinder } from 'protractor';
describe('Set Document Title', function () { describe('Set Document Title', function () {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
describe('QuickStart E2E Tests', function () { describe('QuickStart E2E Tests', function () {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
describe('Structural Directives', function () { describe('Structural Directives', function () {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
describe('Style Guide', function () { describe('Style Guide', function () {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
import { logging } from 'selenium-webdriver'; import { logging } from 'selenium-webdriver';

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
// TODO Not yet complete // TODO Not yet complete

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by, ElementFinder } from 'protractor'; import { browser, element, by, ElementFinder } from 'protractor';
describe('Testing Example', () => { describe('Testing Example', () => {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
describe('Tour of Heroes', () => { describe('Tour of Heroes', () => {

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by, ElementFinder } from 'protractor'; import { browser, element, by, ElementFinder } from 'protractor';
import { promise } from 'selenium-webdriver'; import { promise } from 'selenium-webdriver';

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by, ElementFinder } from 'protractor'; import { browser, element, by, ElementFinder } from 'protractor';
import { promise } from 'selenium-webdriver'; import { promise } from 'selenium-webdriver';

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by, ElementFinder } from 'protractor'; import { browser, element, by, ElementFinder } from 'protractor';
import { promise } from 'selenium-webdriver'; import { promise } from 'selenium-webdriver';

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by, ElementFinder } from 'protractor'; import { browser, element, by, ElementFinder } from 'protractor';
import { promise } from 'selenium-webdriver'; import { promise } from 'selenium-webdriver';

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by, ElementFinder } from 'protractor'; import { browser, element, by, ElementFinder } from 'protractor';
import { promise } from 'selenium-webdriver'; import { promise } from 'selenium-webdriver';

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by, ElementFinder, ElementArrayFinder } from 'protractor'; import { browser, element, by, ElementFinder, ElementArrayFinder } from 'protractor';
import { promise } from 'selenium-webdriver'; import { promise } from 'selenium-webdriver';

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
describe('Upgrade Tests', function () { describe('Upgrade Tests', function () {

View File

@ -1,5 +1,3 @@
'use strict';
angular. angular.
module('phonecatApp'). module('phonecatApp').
animation('.phone', function phoneAnimationFactory() { animation('.phone', function phoneAnimationFactory() {

View File

@ -1,5 +1,3 @@
'use strict';
// Define the `phonecatApp` module // Define the `phonecatApp` module
angular.module('phonecatApp', [ angular.module('phonecatApp', [
'ngAnimate', 'ngAnimate',

View File

@ -1,5 +1,3 @@
'use strict';
describe('checkmark', () => { describe('checkmark', () => {
beforeEach(angular.mock.module('core')); beforeEach(angular.mock.module('core'));

View File

@ -1,4 +1,2 @@
'use strict';
// Define the `core` module // Define the `core` module
angular.module('core', ['core.phone']); angular.module('core', ['core.phone']);

View File

@ -1,4 +1,2 @@
'use strict';
// Define the `core.phone` module // Define the `core.phone` module
angular.module('core.phone', ['ngResource']); angular.module('core.phone', ['ngResource']);

View File

@ -1,5 +1,3 @@
'use strict';
describe('Phone', () => { describe('Phone', () => {
let $httpBackend: angular.IHttpBackendService; let $httpBackend: angular.IHttpBackendService;
let Phone: any; let Phone: any;

View File

@ -1,5 +1,3 @@
'use strict';
// Define the `phoneDetail` module // Define the `phoneDetail` module
angular.module('phoneDetail', [ angular.module('phoneDetail', [
'ngRoute', 'ngRoute',

View File

@ -1,5 +1,3 @@
'use strict';
describe('phoneList', () => { describe('phoneList', () => {
// Load the module that contains the `phoneList` component before each test // Load the module that contains the `phoneList` component before each test

View File

@ -1,4 +1,2 @@
'use strict';
// Define the `phoneList` module // Define the `phoneList` module
angular.module('phoneList', ['core.phone']); angular.module('phoneList', ['core.phone']);

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by, ElementArrayFinder, ElementFinder } from 'protractor'; import { browser, element, by, ElementArrayFinder, ElementFinder } from 'protractor';
// Angular E2E Testing Guide: // Angular E2E Testing Guide:

View File

@ -1,5 +1,3 @@
'use strict';
angular. angular.
module('phonecatApp'). module('phonecatApp').
animation('.phone', function phoneAnimationFactory() { animation('.phone', function phoneAnimationFactory() {

View File

@ -1,5 +1,3 @@
'use strict';
angular. angular.
module('phonecatApp'). module('phonecatApp').
config(['$locationProvider', '$routeProvider', config(['$locationProvider', '$routeProvider',

View File

@ -1,6 +1,4 @@
// #docregion // #docregion
'use strict';
// Define the `phonecatApp` AngularJS module // Define the `phonecatApp` AngularJS module
angular.module('phonecatApp', [ angular.module('phonecatApp', [
'ngAnimate', 'ngAnimate',

View File

@ -1,4 +1,2 @@
'use strict';
// Define the `core` module // Define the `core` module
angular.module('core', ['core.phone']); angular.module('core', ['core.phone']);

View File

@ -1,4 +1,2 @@
'use strict';
// Define the `core.phone` module // Define the `core.phone` module
angular.module('core.phone', ['ngResource']); angular.module('core.phone', ['ngResource']);

View File

@ -1,5 +1,3 @@
'use strict';
// Define the `phoneDetail` module // Define the `phoneDetail` module
angular.module('phoneDetail', [ angular.module('phoneDetail', [
'ngRoute', 'ngRoute',

View File

@ -1,4 +1,2 @@
'use strict';
// Define the `phoneList` module // Define the `phoneList` module
angular.module('phoneList', ['core.phone']); angular.module('phoneList', ['core.phone']);

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
// Angular E2E Testing Guide: // Angular E2E Testing Guide:

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
// Angular E2E Testing Guide: // Angular E2E Testing Guide:

View File

@ -1,5 +1,3 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by, protractor } from 'protractor'; import { browser, element, by, protractor } from 'protractor';
describe('User Input Tests', function () { describe('User Input Tests', function () {