Skip to content

Commit 5515623

Browse files
committed
Merge branch 'master' of https://github.com/microsoft/TypeScript into semantic_2
2 parents 87bbcdc + 3853bf5 commit 5515623

692 files changed

Lines changed: 375775 additions & 332278 deletions

File tree

Some content is hidden

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

.eslintrc.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,20 @@
1818
"@typescript-eslint/array-type": "error",
1919

2020
"camelcase": "off",
21-
"@typescript-eslint/camelcase": ["error", { "properties": "never", "allow": ["^[A-Za-z][a-zA-Za-z]+_[A-Za-z]+$"] }],
21+
"@typescript-eslint/naming-convention": [
22+
"error",
23+
{ "selector": "typeLike", "format": ["PascalCase"], "filter": { "regex": "^(__String|[A-Za-z]+_[A-Za-z]+)$", "match": false } },
24+
{ "selector": "interface", "format": ["PascalCase"], "custom": { "regex": "^I[A-Z]", "match": false }, "filter": { "regex": "^I(Arguments|TextWriter|O([A-Z][a-z]+[A-Za-z]*)?)$", "match": false } },
25+
{ "selector": "variable", "format": ["camelCase", "PascalCase", "UPPER_CASE"], "leadingUnderscore": "allow", "filter": { "regex": "^(_{1,2}filename|_{1,2}dirname|_+|[A-Za-z]+_[A-Za-z]+)$", "match": false } },
26+
{ "selector": "function", "format": ["camelCase", "PascalCase"], "leadingUnderscore": "allow", "filter": { "regex": "^[A-Za-z]+_[A-Za-z]+$", "match": false } },
27+
{ "selector": "parameter", "format": ["camelCase"], "leadingUnderscore": "allow", "filter": { "regex": "^(_+|[A-Za-z]+_[A-Z][a-z]+)$", "match": false } },
28+
{ "selector": "method", "format": ["camelCase", "PascalCase"], "leadingUnderscore": "allow", "filter": { "regex": "^[A-Za-z]+_[A-Za-z]+$", "match": false } },
29+
{ "selector": "memberLike", "format": ["camelCase"], "leadingUnderscore": "allow", "filter": { "regex": "^[A-Za-z]+_[A-Za-z]+$", "match": false } },
30+
{ "selector": "enumMember", "format": ["camelCase", "PascalCase"], "leadingUnderscore": "allow", "filter": { "regex": "^[A-Za-z]+_[A-Za-z]+$", "match": false } },
31+
{ "selector": "property", "format": null }
32+
],
2233

23-
"@typescript-eslint/class-name-casing": "error",
2434
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
25-
"@typescript-eslint/interface-name-prefix": "error",
2635
"@typescript-eslint/no-inferrable-types": "error",
2736
"@typescript-eslint/no-misused-new": "error",
2837
"@typescript-eslint/no-this-alias": "error",

lib/cs/diagnosticMessages.generated.json

Lines changed: 26 additions & 8 deletions
Large diffs are not rendered by default.

lib/de/diagnosticMessages.generated.json

Lines changed: 26 additions & 5 deletions
Large diffs are not rendered by default.

lib/es/diagnosticMessages.generated.json

Lines changed: 28 additions & 7 deletions
Large diffs are not rendered by default.

lib/fr/diagnosticMessages.generated.json

Lines changed: 28 additions & 7 deletions
Large diffs are not rendered by default.

lib/it/diagnosticMessages.generated.json

Lines changed: 27 additions & 6 deletions
Large diffs are not rendered by default.

lib/ja/diagnosticMessages.generated.json

Lines changed: 29 additions & 8 deletions
Large diffs are not rendered by default.

lib/ko/diagnosticMessages.generated.json

Lines changed: 29 additions & 8 deletions
Large diffs are not rendered by default.

lib/lib.dom.d.ts

Lines changed: 78 additions & 38 deletions
Large diffs are not rendered by default.

lib/lib.es2015.core.d.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -454,48 +454,48 @@ interface String {
454454
startsWith(searchString: string, position?: number): boolean;
455455

456456
/**
457-
* Returns an <a> HTML anchor element and sets the name attribute to the text value
457+
* Returns an `<a>` HTML anchor element and sets the name attribute to the text value
458458
* @param name
459459
*/
460460
anchor(name: string): string;
461461

462-
/** Returns a <big> HTML element */
462+
/** Returns a `<big>` HTML element */
463463
big(): string;
464464

465-
/** Returns a <blink> HTML element */
465+
/** Returns a `<blink>` HTML element */
466466
blink(): string;
467467

468-
/** Returns a <b> HTML element */
468+
/** Returns a `<b>` HTML element */
469469
bold(): string;
470470

471-
/** Returns a <tt> HTML element */
471+
/** Returns a `<tt>` HTML element */
472472
fixed(): string;
473473

474-
/** Returns a <font> HTML element and sets the color attribute value */
474+
/** Returns a `<font>` HTML element and sets the color attribute value */
475475
fontcolor(color: string): string;
476476

477-
/** Returns a <font> HTML element and sets the size attribute value */
477+
/** Returns a `<font>` HTML element and sets the size attribute value */
478478
fontsize(size: number): string;
479479

480-
/** Returns a <font> HTML element and sets the size attribute value */
480+
/** Returns a `<font>` HTML element and sets the size attribute value */
481481
fontsize(size: string): string;
482482

483-
/** Returns an <i> HTML element */
483+
/** Returns an `<i>` HTML element */
484484
italics(): string;
485485

486-
/** Returns an <a> HTML element and sets the href attribute value */
486+
/** Returns an `<a>` HTML element and sets the href attribute value */
487487
link(url: string): string;
488488

489-
/** Returns a <small> HTML element */
489+
/** Returns a `<small>` HTML element */
490490
small(): string;
491491

492-
/** Returns a <strike> HTML element */
492+
/** Returns a `<strike>` HTML element */
493493
strike(): string;
494494

495-
/** Returns a <sub> HTML element */
495+
/** Returns a `<sub>` HTML element */
496496
sub(): string;
497497

498-
/** Returns a <sup> HTML element */
498+
/** Returns a `<sup>` HTML element */
499499
sup(): string;
500500
}
501501

0 commit comments

Comments
 (0)