Commit graph

360 commits

Author SHA1 Message Date
Alexander a7f41621fb Merge branch 'master' of https://github.com/Microsoft/TypeScript into feature/eslint 2019-08-17 16:37:39 +03:00
Wesley Wigham 786e36ecaf
Right. Environment variable on windows should be uppercase. 2019-08-16 14:17:03 -07:00
Wesley Wigham e145f322d8
Add produceLKG flag to cherry-pick PR script 2019-08-16 13:01:18 -07:00
Nathan Shively-Sanders 5380075a84
Always run Public API tests, allow lowercase skippercent (#32892) 2019-08-16 10:41:11 -07:00
Alexander T d532bf6dcb remove 'project' option from default .eslintrc configs 2019-08-16 11:56:51 +03:00
Alexander T 2b11a18d6a remove typescript dependency from boolean-trivia, no-double-space rules 2019-08-16 11:54:12 +03:00
Alexander T 3424f843f5 lint all ts files in scripts. remove tslint: directive. add extended eslint config for CI environment 2019-08-14 14:10:40 +03:00
Alexander T 466ee10011 add .eslintrc for src and scripts. update typescript-eslint 2019-08-14 12:34:16 +03:00
Alexander T c050e551b4 add additional tests to no-keywords 2019-08-09 12:11:25 +03:00
Alexander d3bbad38ab remove useless semicolons 2019-08-09 07:30:40 +03:00
Alexander 023e4c6249 disable no-redeclare 2019-08-09 07:30:40 +03:00
Alexander ceccfd8867 array-type: [ default: array, generic: array ] 2019-08-08 21:30:18 +03:00
Alexander T 828ebd54ed add eslint setting for .vscode 2019-08-08 10:57:04 +03:00
Alexander T 034ba9fd25 Merge branch 'master' of https://github.com/Microsoft/TypeScript into feature/eslint 2019-08-06 09:07:48 +03:00
Ron Buckton e3f4979736
Fix emit for object rest on a module export (#32699)
* Fix emit for object rest on a module export

* Add tests for exports of empty object/array binding patterns

* Add delay for exec to ensure diff tool has enough time to start
2019-08-05 16:53:21 -07:00
Ron Buckton 4df2fc663c
Do not include built/local/enu when producing LKG (#32723) 2019-08-05 16:19:38 -07:00
Alexander 97329306c7 simple-indent: remove useless types definition 2019-08-04 16:42:20 +03:00
Alexander a292ae1789 Merge branch 'master' of https://github.com/Microsoft/TypeScript into feature/eslint 2019-08-04 15:35:41 +03:00
Alexander a37d34a5b6 lint src/, scripts/ folders separately 2019-08-04 15:33:01 +03:00
Alexander ee90fdb90b change eslint tests formatting 2019-08-04 08:45:34 +03:00
Alexander T afafd3fcb3 simple-indent 2019-08-04 08:45:14 +03:00
Wesley Wigham acdbd10626
Amend scanner to support astral characters in identifiers when parsing es6+ (#32096)
* Amend scanner to support astral characters in identifiers when parsing es6+

* Use charSize helper rather than one-off maybe advance helper

* Update script to emit informative comment, run in unicode 12.1 environment

* Add suggested change
2019-08-02 13:15:51 -07:00
Alexander T 11ec6118fb @typescript-eslint/array-type 2019-07-29 18:39:11 +03:00
Alexander 0059763d8f move eslint rules from eslint-plugin-microsoft-typescript to scripts/eslint 2019-07-24 13:31:17 +03:00
Alexander T 8bf5ebc417 remove tslint, tslint:disable-next-line, update @typescript-eslint/* 2019-07-18 16:00:44 +03:00
Alexander T 2c32308f35 no-null/no-null 2019-07-18 10:50:38 +03:00
Alexander T 9f474150c6 Merge branch 'master' of https://github.com/Microsoft/TypeScript into feature/eslint 2019-07-02 17:57:44 +03:00
Wesley Wigham 3e6856137a
Add support for sharding tests across multiple workers (#32173)
* Add support for sharding tests across multiple workers

* Disable unittests when runners are expressly provided (unless they contain the unittest runner)
2019-07-01 14:56:57 -07:00
Wesley Wigham 4382d7e7b2
Fix strict bugs in user pr script 2019-07-01 11:10:43 -07:00
Wesley Wigham c25088c6bf
make prnums for experiments get pulled from GH tags 2019-06-28 13:34:46 -07:00
Alexander T 136f4cfc0f no-redeclare 2019-06-27 12:29:32 +03:00
Alexander T 810303542d Merge branch 'master' of https://github.com/Microsoft/TypeScript into feature/eslint 2019-06-27 11:51:20 +03:00
Alexander T f6a50067d3 @typescript-eslint/indent 2019-06-27 11:30:03 +03:00
Wesley Wigham b3d55d0cd8
Add throw on not rebaseable to unmatched PRs, too 2019-06-26 16:01:51 -07:00
Wesley Wigham 1479bb6bc8
Check if triggering PR is in triggered set only if triggered pr exists (otherwise is master sync) 2019-06-26 15:38:45 -07:00
Nathan Shively-Sanders 261952247a
Merge pull request #31945 from microsoft/skip-costly-tests
Skip costly tests
2019-06-25 15:47:49 -07:00
Alexander 7389200ce2 Merge branch 'master' of https://github.com/Microsoft/TypeScript into feature/eslint 2019-06-23 18:49:35 +03:00
Wesley Wigham 5498f583f9
Update cherry-pick pr script to use mergebase (#32031) 2019-06-21 14:34:26 -07:00
Alexander T 0e14b4e030 microsoft-typescript/only-arrow-functions 2019-06-20 12:46:02 +03:00
Alexander T 67e20fc87a microsoft-typescript/no-keywords 2019-06-20 12:38:00 +03:00
Alexander T 38652d4cd7 no-var 2019-06-20 10:51:29 +03:00
Nathan Shively-Sanders a56b65bc91 Add skip-percent alias for skipPercent 2019-06-19 14:12:17 -07:00
Alexander T 62119ec9cc @typescript-eslint/no-unnecessary-type-assertion 2019-06-19 18:45:02 +03:00
Nathan Shively-Sanders fce7f9f87b Move .test-cost.json
Also include parameter name in test output so that people will know what
to do to change the percent chance of failure.
2019-06-19 08:40:06 -07:00
Alexander T 5ce8c831b4 prefer-const 2019-06-19 17:58:49 +03:00
Alexander T 504b932f7b @typescript-eslint/camelcase 2019-06-19 17:30:28 +03:00
Nathan Shively-Sanders 6f28283e44 Run all tests on CI 2019-06-17 09:20:58 -07:00
Nathan Shively-Sanders 3ef953a819 Allow passing skipPercent
Currently, the default is 5%.

0 gives you 0% time savings
2.5 gives you 29%
5 gives you 38%
10 gives you 50%
20 gives you 65%
2019-06-14 15:59:39 -07:00
Nathan Shively-Sanders a852f2feea Skip costly tests
1. Add a script to generate a sorted list of most costly tests. A tests'
cost is roughly `runtime% / number of edits`. A slow test that's only
been updated once is much less valuable than a slow test that has
been updated 20 times: the latter test is catching more changes in the
type system.

2. Check in the results of running this script. I want to make the
skipping behaviour deterministic and the same for everybody, even though
you may get slightly better performance by examining only *your* test
changes.

3. Add code to skip tests until it reaches a 5% chance of missing an
edit. Right now this provides a 38% speedup.

Still not done:
4. Make this value configurable.
5. Make the CI configuration specify a 0% chance of missing an edit.
2019-06-14 13:35:41 -07:00
Alexander T 6b05b26452 @typescript-eslint/prefer-namespace-keyword 2019-06-14 14:52:36 +03:00