Commit 360c9fd
committed
Add lint rule for
For microsoft#269213
This adds a new eslint rule for `as any` and `<any>({... })`. We'd like to remove almost all of these, however right now the first goal is to prevent them in new code. That's why with this first PR I simply add `eslint-disable` comments for all breaks
Trying to get this change in soon after branching off for release to hopefully minimize disruption during debt week workas any and bulk ignore all existing breaks1 parent 96aa43f commit 360c9fd
465 files changed
Lines changed: 1188 additions & 0 deletions
File tree
- .eslint-plugin-local
- build
- azure-pipelines
- common
- lib
- mangle
- tsb
- watch
- linux/debian
- win32
- extensions
- css-language-features
- client/src
- server/src
- emmet/src
- git-base/src/api
- github-authentication/src/node
- git/src
- grunt/src
- gulp/src
- html-language-features
- client/src
- server/src
- ipynb/src
- test
- jake/src
- json-language-features
- client/src
- server/src
- markdown-language-features
- notebook
- preview-src
- src
- languageFeatures
- microsoft-authentication/src/common
- notebook-renderers/src
- test
- npm/src
- terminal-suggest/src/test/completions
- upstream
- typescript-language-features
- src
- languageFeatures
- tsServer
- utils
- web/src
- vscode-api-tests/src
- singlefolder-tests
- scripts
- src
- vs
- base
- browser
- ui
- grid
- sash
- tree
- common
- observableInternal
- experimental
- logging
- debugger
- observables
- reactions
- utils
- worker
- node
- parts
- ipc
- common
- node
- test/node
- sandbox/electron-browser
- storage/node
- test
- browser
- common
- code
- electron-browser/workbench
- electron-main
- editor
- browser
- config
- controller
- editContext/native
- gpu
- services/hoverService
- widget
- codeEditor
- diffEditor
- components
- multiDiffEditor
- common
- config
- core/edits
- model/bracketPairsTextModelPart/bracketPairsTree
- services
- contrib
- colorPicker/browser
- documentSymbols/test/browser
- editorState/test/browser
- find
- browser
- test/browser
- inlineCompletions
- browser
- view
- ghostText
- inlineEdits
- components
- inlineEditsViews
- test/browser
- unicodeHighlighter/browser
- standalone
- browser
- common/monarch
- test
- browser
- config
- common/model
- platform
- contextkey
- common
- test/common
- dataChannel/browser
- dnd/browser
- environment/test/node
- extensionManagement/common
- files
- browser
- test/node
- hover/test/browser
- instantiation
- common
- test/common
- list/browser
- mcp/test/common
- observable/common
- policy/node
- product/common
- profiling/common
- quickinput
- browser/tree
- test/browser
- remote
- browser
- common
- test/electron-browser
- request/electron-utility
- telemetry/test/browser
- terminal
- common
- capabilities
- node
- userDataSync/common
- webContentExtractor/test/electron-main
- server/node
- workbench
- api
- browser
- common
- node
- test
- browser
- common
- node
- worker
- browser
- actions
- parts
- editor
- titlebar
- views
- contrib
- accessibilitySignals/browser
- bulkEdit/test/browser
- chat
- browser
- chatContentParts
- chatEditing
- chatSessions
- common
- test
- browser
- common
- tools
- codeEditor/common
- comments
- browser
- test/browser
- debug
- browser
- common
- test
- browser
- common
- editTelemetry/browser
- helpers
- telemetry
- extensions
- browser
- test/electron-browser
- files/test/browser
- inlineChat/test/browser
- markdown/test/browser
- markers
- browser
- test/browser
- mcp
- common
- test/common
- mergeEditor/browser
- commands
- notebook
- browser
- controller
- services
- viewModel
- viewParts
- view/renderers
- common/model
- test/browser
- contrib
- diff
- searchEditor/browser
- search
- browser
- searchTreeModel
- test/browser
- snippets/test/browser
- tasks
- browser
- common
- test/browser
- terminalContrib
- accessibility/test/browser
- chatAgentTools/test/browser
- developer/browser
- history/test/common
- links
- browser
- test/browser
- stickyScroll/browser
- suggest/browser
- typeAhead
- browser
- test/browser
- zoom/browser
- terminal
- browser
- xterm
- test/browser
- capabilities
- xterm
- testing
- browser/testResultsView
- common
- test
- browser
- explorerProjections
- common
- themes/browser
- timeline/browser
- update/test/browser
- welcomeGettingStarted/browser
- electron-browser/parts/titlebar
- services
- assignment/common
- authentication/test/browser
- configurationResolver
- common
- test/electron-browser
- driver/browser
- extensionManagement/browser
- extensions
- common
- test/common
- worker
- host/browser
- keybinding/browser
- label/test/browser
- progress/test/browser
- remote/common
- search
- common
- node
- textMate/common
- textfile/test/node/encoding
- themes
- browser
- common
- views
- browser
- test/browser
- workspaces
- common
- test/common
- test
- browser
- parts/editor
- common
- electron-browser
- test
- automation/src
- mcp/src
- automationTools
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
| 136 | + | |
134 | 137 | | |
135 | 138 | | |
136 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| 132 | + | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| 524 | + | |
524 | 525 | | |
525 | 526 | | |
526 | 527 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
0 commit comments