Skip to content

Commit ed03cbf

Browse files
remcohaszinggorkem
authored andcommitted
Remove 'use strict'
TypeScript adds this for us.
1 parent 2f2683b commit ed03cbf

File tree

12 files changed

+1
-13
lines changed

12 files changed

+1
-13
lines changed

src/languageservice/parser/yamlParser07.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright (c) Adam Voss. All rights reserved.
44
* Licensed under the MIT License. See License.txt in the project root for license information.
55
*--------------------------------------------------------------------------------------------*/
6-
'use strict';
76

87
import { Parser, Composer, Document, LineCounter, ParseOptions, DocumentOptions, SchemaOptions } from 'yaml';
98
import { YAMLDocument, SingleYAMLDocument } from './yaml-documents';

src/languageservice/services/documentSymbols.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright (c) Microsoft Corporation. All rights reserved.
44
* Licensed under the MIT License. See License.txt in the project root for license information.
55
*--------------------------------------------------------------------------------------------*/
6-
'use strict';
76

87
import { SymbolInformation, DocumentSymbol } from 'vscode-languageserver-types';
98
import { YAMLSchemaService } from './yamlSchemaService';

src/languageservice/services/modelineUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright (c) Red Hat, Inc. All rights reserved.
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
5-
'use strict';
5+
66
import { SingleYAMLDocument } from '../parser/yamlParser07';
77
import { JSONDocument } from '../parser/jsonParser07';
88

src/languageservice/services/yamlFormatter.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright (c) Adam Voss. All rights reserved.
44
* Licensed under the MIT License. See License.txt in the project root for license information.
55
*--------------------------------------------------------------------------------------------*/
6-
'use strict';
76

87
import { Range, Position, TextEdit, FormattingOptions } from 'vscode-languageserver-types';
98
import { CustomFormatterOptions, LanguageSettings } from '../yamlLanguageService';

src/languageservice/services/yamlHover.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright (c) Microsoft Corporation. All rights reserved.
44
* Licensed under the MIT License. See License.txt in the project root for license information.
55
*--------------------------------------------------------------------------------------------*/
6-
'use strict';
76

87
import { Hover, MarkupContent, MarkupKind, Position, Range } from 'vscode-languageserver-types';
98
import { matchOffsetToDocument } from '../utils/arrUtils';

src/languageservice/services/yamlSchemaService.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright (c) Microsoft Corporation. All rights reserved.
44
* Licensed under the MIT License. See License.txt in the project root for license information.
55
*--------------------------------------------------------------------------------------------*/
6-
'use strict';
76

87
import { JSONSchema, JSONSchemaMap, JSONSchemaRef } from '../jsonSchema';
98
import { SchemaPriority, SchemaRequestService, WorkspaceContextService } from '../yamlLanguageService';

src/languageservice/services/yamlValidation.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright (c) Microsoft Corporation. All rights reserved.
44
* Licensed under the MIT License. See License.txt in the project root for license information.
55
*--------------------------------------------------------------------------------------------*/
6-
'use strict';
76

87
import { Diagnostic, Position } from 'vscode-languageserver-types';
98
import { LanguageSettings } from '../yamlLanguageService';

src/languageservice/utils/documentPositionCalculator.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright (c) Microsoft Corporation. All rights reserved.
44
* Licensed under the MIT License. See License.txt in the project root for license information.
55
*--------------------------------------------------------------------------------------------*/
6-
'use strict';
76

87
import { Position } from 'vscode-languageserver-types';
98

src/languageservice/utils/objects.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* Copyright (c) Microsoft Corporation. All rights reserved.
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
5-
'use strict';
65

76
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
87
export function equals(one: any, other: any): boolean {

src/languageservice/utils/strings.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* Copyright (c) Microsoft Corporation. All rights reserved.
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
5-
'use strict';
65

76
import { CharCode } from './charCode';
87

0 commit comments

Comments
 (0)