Skip to content

Commit c9d8e5c

Browse files
authored
Merge pull request #1 from microsoft/master
2019-10-24
2 parents ac0d5da + 5e4cd05 commit c9d8e5c

File tree

10,051 files changed

+933646
-418025
lines changed

Some content is hidden

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

10,051 files changed

+933646
-418025
lines changed

.dockerignore

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
node_modules
2+
.node_modules
3+
built/*
4+
test-args.txt
5+
~*.docx
6+
\#*\#
7+
.\#*
8+
src/harness/*.js
9+
src/compiler/diagnosticInformationMap.generated.ts
10+
src/compiler/diagnosticMessages.generated.json
11+
src/parser/diagnosticInformationMap.generated.ts
12+
src/parser/diagnosticMessages.generated.json
13+
rwc-report.html
14+
*.swp
15+
build.json
16+
*.actual
17+
*.config
18+
scripts/debug.bat
19+
scripts/run.bat
20+
scripts/word2md.js
21+
scripts/buildProtocol.js
22+
scripts/ior.js
23+
scripts/authors.js
24+
scripts/configurePrerelease.js
25+
scripts/configureTSCBuild.js
26+
scripts/open-user-pr.js
27+
scripts/open-cherry-pick-pr.js
28+
scripts/processDiagnosticMessages.d.ts
29+
scripts/processDiagnosticMessages.js
30+
scripts/produceLKG.js
31+
scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.js
32+
scripts/generateLocalizedDiagnosticMessages.js
33+
scripts/*.js.map
34+
scripts/typings/
35+
coverage/
36+
internal/
37+
**/.DS_Store
38+
.settings
39+
**/.vs
40+
.idea
41+
yarn.lock
42+
yarn-error.log
43+
.parallelperf.*
44+
.failed-tests
45+
TEST-results.xml
46+
package-lock.json
47+
tests
48+
.vscode
49+
.git

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/built/local/**
2+
/tests/**
3+
/lib/**
4+
/src/lib/*.generated.d.ts

.eslintrc.json

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"parserOptions": {
4+
"warnOnUnsupportedTypeScriptVersion": false,
5+
"ecmaVersion": 6,
6+
"sourceType": "module"
7+
},
8+
"env": {
9+
"browser": false,
10+
"node": true,
11+
"es6": true
12+
},
13+
"plugins": [
14+
"@typescript-eslint", "jsdoc", "no-null", "import"
15+
],
16+
"rules": {
17+
"@typescript-eslint/adjacent-overload-signatures": "error",
18+
"@typescript-eslint/array-type": "error",
19+
20+
"camelcase": "off",
21+
"@typescript-eslint/camelcase": ["error", { "properties": "never", "allow": ["^[A-Za-z][a-zA-Za-z]+_[A-Za-z]+$"] }],
22+
23+
"@typescript-eslint/class-name-casing": "error",
24+
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
25+
"@typescript-eslint/interface-name-prefix": "error",
26+
"@typescript-eslint/no-inferrable-types": "error",
27+
"@typescript-eslint/no-misused-new": "error",
28+
"@typescript-eslint/no-this-alias": "error",
29+
"@typescript-eslint/prefer-for-of": "error",
30+
"@typescript-eslint/prefer-function-type": "error",
31+
"@typescript-eslint/prefer-namespace-keyword": "error",
32+
33+
"quotes": "off",
34+
"@typescript-eslint/quotes": ["error", "double", { "avoidEscape": true, "allowTemplateLiterals": true }],
35+
36+
"semi": "off",
37+
"@typescript-eslint/semi": "error",
38+
39+
"@typescript-eslint/triple-slash-reference": "error",
40+
"@typescript-eslint/type-annotation-spacing": "error",
41+
"@typescript-eslint/unified-signatures": "error",
42+
43+
// scripts/eslint/rules
44+
"object-literal-surrounding-space": "error",
45+
"no-type-assertion-whitespace": "error",
46+
"type-operator-spacing": "error",
47+
"only-arrow-functions": ["error", {
48+
"allowNamedFunctions": true ,
49+
"allowDeclarations": true
50+
}],
51+
"no-double-space": "error",
52+
"boolean-trivia": "error",
53+
"no-in-operator": "error",
54+
"simple-indent": "error",
55+
"debug-assert": "error",
56+
"no-keywords": "error",
57+
58+
// eslint-plugin-import
59+
"import/no-extraneous-dependencies": ["error", { "optionalDependencies": false }],
60+
61+
// eslint-plugin-no-null
62+
"no-null/no-null": "error",
63+
64+
// eslint-plugin-jsdoc
65+
"jsdoc/check-alignment": "error",
66+
67+
// eslint
68+
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
69+
"constructor-super": "error",
70+
"curly": ["error", "multi-line"],
71+
"dot-notation": "error",
72+
"eqeqeq": "error",
73+
"linebreak-style": ["error", "windows"],
74+
"new-parens": "error",
75+
"no-caller": "error",
76+
"no-duplicate-case": "error",
77+
"no-duplicate-imports": "error",
78+
"no-empty": "error",
79+
"no-eval": "error",
80+
"no-extra-bind": "error",
81+
"no-fallthrough": "error",
82+
"no-new-func": "error",
83+
"no-new-wrappers": "error",
84+
"no-return-await": "error",
85+
"no-restricted-globals": ["error",
86+
{ "name": "setTimeout" },
87+
{ "name": "clearTimeout" },
88+
{ "name": "setInterval" },
89+
{ "name": "clearInterval" },
90+
{ "name": "setImmediate" },
91+
{ "name": "clearImmediate" }
92+
],
93+
"no-sparse-arrays": "error",
94+
"no-template-curly-in-string": "error",
95+
"no-throw-literal": "error",
96+
"no-trailing-spaces": "error",
97+
"no-undef-init": "error",
98+
"no-unsafe-finally": "error",
99+
"no-unused-expressions": ["error", { "allowTernary": true }],
100+
"no-unused-labels": "error",
101+
"no-var": "error",
102+
"object-shorthand": "error",
103+
"prefer-const": "error",
104+
"prefer-object-spread": "error",
105+
"quote-props": ["error", "consistent-as-needed"],
106+
"space-in-parens": "error",
107+
"unicode-bom": ["error", "never"],
108+
"use-isnan": "error"
109+
}
110+
}

.github/ISSUE_TEMPLATE/Bug_report.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@ Please help us by doing the following steps before logging an issue:
1515
Please fill in the *entire* template below.
1616
-->
1717

18-
<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
19-
**TypeScript Version:** 3.1.0-dev.201xxxxx
18+
<!--
19+
Please try to reproduce the issue with the latest published version. It may have already been fixed.
20+
For npm: `typescript@next`
21+
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly
22+
-->
23+
**TypeScript Version:** 3.7.x-dev.201xxxxx
2024

2125
<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
2226
**Search Terms:**

.github/ISSUE_TEMPLATE/Feature_request.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ about: Suggest an idea for this project
66

77
<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨
88
9-
Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Please read the FAQ first, especially the "Common Feature Requests" section.
9+
Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.
10+
11+
Please help us by doing the following steps before logging an issue:
12+
* Search: https://github.com/Microsoft/TypeScript/search?type=Issues
13+
* Read the FAQ, especially the "Common Feature Requests" section: https://github.com/Microsoft/TypeScript/wiki/FAQ
1014
1115
-->
1216

@@ -32,8 +36,10 @@ What shortcomings exist with current approaches?
3236
## Checklist
3337

3438
My suggestion meets these guidelines:
35-
* [ ] This wouldn't be a breaking change in existing TypeScript / JavaScript code
39+
40+
* [ ] This wouldn't be a breaking change in existing TypeScript/JavaScript code
3641
* [ ] This wouldn't change the runtime behavior of existing JavaScript code
3742
* [ ] This could be implemented without emitting different JS based on the types of the expressions
38-
* [ ] This isn't a runtime feature (e.g. new expression-level syntax)
43+
* [ ] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
44+
* [ ] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
3945

.github/pull_request_template.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
<!--
22
Thank you for submitting a pull request!
33
4-
Here's a checklist you might find useful.
5-
* [ ] There is an associated issue that is labeled
6-
'Bug' or 'help wanted' or is in the Community milestone
4+
Please verify that:
5+
* [ ] There is an associated issue in the `Backlog` milestone (**required**)
76
* [ ] Code is up-to-date with the `master` branch
8-
* [ ] You've successfully run `jake runtests` locally
9-
* [ ] You've signed the CLA
7+
* [ ] You've successfully run `gulp runtests` locally
108
* [ ] There are new or updated unit tests validating the change
119
1210
Refer to CONTRIBUTING.MD for more details.
1311
https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md
1412
-->
1513

1614
Fixes #
17-

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- release-*
8+
pull_request:
9+
branches:
10+
- master
11+
- release-*
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
node-version: [8.x, 10.x, 12.x]
20+
21+
steps:
22+
- uses: actions/checkout@v1
23+
with:
24+
fetch-depth: 5
25+
- name: Use node version ${{ matrix.node-version }}
26+
uses: actions/setup-node@v1
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
- name: Remove existing TypeScript
30+
run: |
31+
npm uninstall typescript --no-save
32+
npm uninstall tslint --no-save
33+
- name: npm install and test
34+
run: |
35+
npm install
36+
npm update
37+
npm test

.gitignore

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,21 @@ tests/webTestServer.js.map
3434
tests/webhost/*.d.ts
3535
tests/webhost/webtsc.js
3636
tests/cases/**/*.js
37+
!tests/cases/docker/*.js/
3738
tests/cases/**/*.js.map
3839
*.config
40+
scripts/eslint/built/
3941
scripts/debug.bat
4042
scripts/run.bat
4143
scripts/word2md.js
4244
scripts/buildProtocol.js
4345
scripts/ior.js
4446
scripts/authors.js
4547
scripts/configurePrerelease.js
48+
scripts/configureLanguageServiceBuild.js
49+
scripts/createLanguageServiceBuild.js
4650
scripts/open-user-pr.js
51+
scripts/open-cherry-pick-pr.js
4752
scripts/processDiagnosticMessages.d.ts
4853
scripts/processDiagnosticMessages.js
4954
scripts/produceLKG.js
@@ -56,8 +61,11 @@ internal/
5661
**/.DS_Store
5762
.settings
5863
**/.vs
59-
**/.vscode
64+
**/.vscode/*
6065
!**/.vscode/tasks.json
66+
!**/.vscode/settings.template.json
67+
!**/.vscode/launch.template.json
68+
!**/.vscode/extensions.json
6169
!tests/cases/projects/projectOption/**/node_modules
6270
!tests/cases/projects/NodeModulesSearch/**/*
6371
!tests/baselines/reference/project/nodeModules*/**/*
@@ -76,4 +84,15 @@ tests/cases/user/*/**/*.d.ts
7684
tests/baselines/reference/dt
7785
.failed-tests
7886
TEST-results.xml
79-
package-lock.json
87+
package-lock.json
88+
tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter
89+
tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter
90+
tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter
91+
tests/cases/user/TypeScript-Vue-Starter/TypeScript-Vue-Starter
92+
tests/cases/user/TypeScript-WeChat-Starter/TypeScript-WeChat-Starter
93+
tests/cases/user/create-react-app/create-react-app
94+
tests/cases/user/webpack/webpack
95+
tests/cases/user/puppeteer/puppeteer
96+
tests/cases/user/axios-src/axios-src
97+
tests/cases/user/prettier/prettier
98+
.eslintcache

.gitmodules

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +0,0 @@
1-
[submodule "tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter"]
2-
path = tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter
3-
url = https://github.com/Microsoft/TypeScript-React-Starter
4-
ignore = all
5-
[submodule "tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter"]
6-
path = tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter
7-
url = https://github.com/Microsoft/TypeScript-Node-Starter.git
8-
ignore = all
9-
[submodule "tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter"]
10-
path = tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter
11-
url = https://github.com/Microsoft/TypeScript-React-Native-Starter.git
12-
ignore = all
13-
[submodule "tests/cases/user/TypeScript-Vue-Starter/TypeScript-Vue-Starter"]
14-
path = tests/cases/user/TypeScript-Vue-Starter/TypeScript-Vue-Starter
15-
url = https://github.com/Microsoft/TypeScript-Vue-Starter.git
16-
ignore = all
17-
[submodule "tests/cases/user/TypeScript-WeChat-Starter/TypeScript-WeChat-Starter"]
18-
path = tests/cases/user/TypeScript-WeChat-Starter/TypeScript-WeChat-Starter
19-
url = https://github.com/Microsoft/TypeScript-WeChat-Starter.git
20-
ignore = all
21-
[submodule "tests/cases/user/create-react-app/create-react-app"]
22-
path = tests/cases/user/create-react-app/create-react-app
23-
url = https://github.com/facebook/create-react-app.git
24-
ignore = all
25-
[submodule "tests/cases/user/webpack/webpack"]
26-
path = tests/cases/user/webpack/webpack
27-
url = https://github.com/webpack/webpack.git
28-
ignore = all
29-
[submodule "tests/cases/user/puppeteer/puppeteer"]
30-
path = tests/cases/user/puppeteer/puppeteer
31-
url = https://github.com/GoogleChrome/puppeteer.git
32-
ignore = all
33-
[submodule "tests/cases/user/axios-src/axios-src"]
34-
path = tests/cases/user/axios-src/axios-src
35-
url = https://github.com/axios/axios.git
36-
ignore = all
37-
[submodule "tests/cases/user/prettier/prettier"]
38-
path = tests/cases/user/prettier/prettier
39-
url = https://github.com/prettier/prettier.git
40-
ignore = all

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ Ken Howard <ken@simplicatedweb.com>
121121
Kevin Lang <klang2012@gmail.com>
122122
kimamula <kenji.imamula@gmail.com> # Kenji Imamula
123123
Kitson Kelly <me@kitsonkelly.com>
124+
Krishnadas Babu <krishnadas100033@gmail.com>
124125
Klaus Meinhardt <klaus.meinhardt1@gmail.com>
125126
Kyle Kelley <rgbkrk@gmail.com>
126127
Lorant Pinter <lorant.pinter@prezi.com>

.npmignore

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,15 @@ netci.groovy
99
scripts
1010
src
1111
tests
12-
tslint.json
1312
Jakefile.js
13+
.eslintrc
14+
.eslintignore
1415
.editorconfig
16+
.failed-tests
17+
.git
18+
.git/
1519
.gitattributes
20+
.github/
1621
.gitmodules
1722
.settings/
1823
.travis.yml
@@ -23,6 +28,11 @@ Jakefile.js
2328
test.config
2429
package-lock.json
2530
yarn.lock
26-
.github/
2731
CONTRIBUTING.md
2832
TEST-results.xml
33+
.dockerignore
34+
Dockerfile
35+
.DS_Store
36+
.eslintrc.json
37+
.yarnrc
38+
tmp

0 commit comments

Comments
 (0)