Commit Graph

53 Commits

Author SHA1 Message Date
Johannes
0f648cd7db add eslint rule to disallow look behind regex feature, ignore in git and markdown fyi @lszomoru, @mjbvz 2022-03-22 16:02:19 +01:00
Matt Bierner
433bf7cd88 Update build scripts to target es2020 2022-02-28 14:00:17 -08:00
Johannes Rieken
4a130c40ed enable @typescript-eslint/member-delimiter-style, https://github.com/microsoft/vscode/issues/140391 2022-02-02 14:35:33 +01:00
Matt Bierner
870bbbfea4 Update typescript-eslint/experimental-utils
Fixes #141653
2022-01-27 12:08:26 -08:00
Matt Bierner
f30dba5430 Bumping eslint versions (#141121)
* hBumping eslint versions

- Bump eslint and typescript/eslint versions to latest
- Fixing `code-no-unused-expression` for `x?.(b);` type statements
- Fixed a few new semicolon errors from upgrade

* Bump eslint parser in build

* Fix eslint errors in d.ts
2022-01-26 16:29:14 -08:00
Alex Dima
46e068c506 Move common imports to .eslintrc.json 2022-01-25 21:28:37 +01:00
Alexandru Dima
54b242dcd7 Fix problem with code-import-patterns on Windows 2022-01-24 16:03:50 +01:00
Alex Dima
62b0d5cb81 Add /~ as a layer template, adopt it, simplify and align code import rules (#140857) 2022-01-18 18:27:34 +01:00
Alex Dima
aa86df2561 For each target, allow importing itself 2022-01-18 18:27:34 +01:00
Alex Dima
0ae845536b Avoid leading ** 2022-01-17 21:21:38 +01:00
Alex Dima
4aed6e1fd1 Ensure all files are covered by code-import-patterns (fixes #140857) 2022-01-17 17:55:45 +01:00
Matt Bierner
c20b2c9589 Add unique names to most proposal regions
Also updates eslint rule to enforce regions with unique names
2021-11-09 17:56:11 -08:00
Johannes Rieken
fc420cb9cb add custom rule to prevent test.only 2021-11-01 16:37:13 +01:00
Johannes Rieken
55f80e57a9 add missing compile file 2021-08-31 16:09:10 +02:00
Johannes Rieken
7e2452498f fix https://github.com/microsoft/vscode/issues/130073 2021-08-31 14:44:42 +02:00
Matt Bierner
0762d23ae7 Build VS Code using TS 4.4 (#127823)
* Build VS Code using TS 4.4

* Remove usages of deprecated `ClientRectList`

* Add any casts for missing `caretRangeFromPoint`

* Add temporary any casts for `zoom` css propery

This non-standard css property no longer exists in lib.dom.d.ts

* MouseWheelEvent -> WheelEvent

* Pick up new TS nightly

Co-authored-by: Alexandru Dima <alexdima@microsoft.com>
2021-07-08 14:27:39 -07:00
Matt Bierner
97b5db8dba 'vs code' -> 'the editor' in d.ts
Fixes #124361

Also adds a lint rule for this
2021-06-08 11:35:42 -07:00
Benjamin Pasero
15aca96cd5 build - unblock lauching 2021-06-03 07:21:15 +02:00
João Moreno
0a7a69f190 fix build compilation 2021-05-26 13:30:43 +02:00
Johannes Rieken
dbd4ede23f add api lint rule for region comments 2021-01-21 17:42:33 +01:00
Johannes Rieken
845a4d4268 add new rule to enforce Thenable over Promise, adopt in vscode.d.ts and vscode.proposed.d.ts 2021-01-20 13:08:04 +01:00
Johannes Rieken
0319fedae1 add lint rule for missing cancellation token in resolve and provide methods, fyi @alexr00 please remove surpression comment 2021-01-05 18:48:13 +01:00
João Moreno
008f8dcdee missing compilation 2021-01-05 11:01:52 +01:00
Johannes Rieken
fee7cdacf7 add provider naming rule 2021-01-04 20:02:05 +01:00
Alexandru Dima
d1fff1a083 Check in .js files from the /build/ folder to improve build speeds 2020-12-14 11:13:16 +01:00
Johannes Rieken
1bd7cf9e41 use gh username for todo-tags, nuke some todo-tags 2020-11-02 14:16:55 +01:00
Alex Dima
2ab5b8bd5f Convert build/lib/eslint/code-no-unused-expressions.js to .ts 2020-09-24 17:10:39 +02:00
João Moreno
2469bf6832 remove build compilation output 2020-09-22 11:12:55 +02:00
Matt Bierner
c5e1438a6e Don't report literal errors on null 2020-06-22 15:43:13 -07:00
Matt Bierner
5426f5ff70 Add CustomDocumentContentChangeEvent
For #77131

- Rename `onDidEdit` to `onDidChange`
- Allow custom editors to fire a `CustomDocumentContentChangeEvent` that only marks the editor as dirty but does not enable undo/redo. The only way for editor to get out of this dirty state is to either save or revert the file
2020-04-16 17:40:20 -07:00
Matt Bierner
ff253a8f60 Build VS Code with TS 3.9-nightly 2020-02-29 11:45:48 -08:00
Benjamin Pasero
c4622ac41a build leftover 2020-02-05 11:29:30 +01:00
Benjamin Pasero
2095810809 layers check - make sure to test editor contrib as well 2020-02-05 11:19:00 +01:00
Johannes Rieken
8342b3ada9 add some lint rules that enforce our api-guidelines 2020-01-31 12:10:58 +01:00
Johannes Rieken
a9f8033549 eslint - make nls-rule a little more strict 2020-01-03 11:44:54 +01:00
Johannes Rieken
125ba4a8a6 enable custom/forked no-unused-expressions rule 2020-01-03 09:32:40 +01:00
Johannes Rieken
80e6e42a7e adjust rule to allow double quotes for "use strict" and other directives 2020-01-02 20:43:58 +01:00
Johannes Rieken
324764a4df cleanup rule meta data, add links when possible 2019-12-31 11:32:41 +01:00
Johannes Rieken
e27d7cafa1 only one double-qoute string rule 2019-12-31 09:14:07 +01:00
Johannes Rieken
9fefd2b6fb relax and allow double quoted strings appearing inside localize call 2019-12-30 18:45:33 +01:00
Johannes Rieken
c9179d1e6a fix nls-rule when using member-expression 2019-12-30 18:39:30 +01:00
Johannes Rieken
a61f38eee5 migrate no-unexternalized-strings rule (have two variants) 2019-12-30 17:48:21 +01:00
Johannes Rieken
53d1dffaff use AST selector to simplify things 2019-12-30 14:57:04 +01:00
Johannes Rieken
4db80066b4 use ts-es-tree-typings, support import-equals 2019-12-30 14:08:44 +01:00
Johannes Rieken
11f9af09d7 check call expression argument length 2019-12-30 13:33:42 +01:00
Johannes Rieken
808865cf57 extract import path detection into util 2019-12-30 13:01:33 +01:00
Johannes Rieken
b05b481265 migrate no-standalone-editor rule 2019-12-30 11:23:53 +01:00
Johannes Rieken
2ea9132cab migrate no-nls-in-standalone-editor rule 2019-12-30 11:19:24 +01:00
Johannes Rieken
a3bd604627 migrate translation remind rule 2019-12-30 11:09:38 +01:00
Johannes Rieken
9819da68ab migrate import-patterns rule to eslint 2019-12-30 10:03:52 +01:00