mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-26 05:07:35 +00:00
Merge pull request #269665 from mjbvz/dev/mjbvz/delicious-sloth
Add lint rule for `as any` and bulk ignore all existing breaks
This commit is contained in:
@@ -380,6 +380,7 @@ function addNamedHeaderRendering(md: InstanceType<typeof MarkdownIt>): void {
|
||||
const originalRender = md.render;
|
||||
md.render = function () {
|
||||
slugCounter.clear();
|
||||
// eslint-disable-next-line local/code-no-any-casts
|
||||
return originalRender.apply(this, arguments as any);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ let documentResource = settings.settings.source;
|
||||
|
||||
const vscode = acquireVsCodeApi();
|
||||
|
||||
// eslint-disable-next-line local/code-no-any-casts
|
||||
const originalState = vscode.getState() ?? {} as any;
|
||||
const state = {
|
||||
...originalState,
|
||||
@@ -249,6 +250,7 @@ window.addEventListener('message', async event => {
|
||||
}
|
||||
newRoot.prepend(...styles);
|
||||
|
||||
// eslint-disable-next-line local/code-no-any-casts
|
||||
morphdom(root, newRoot, {
|
||||
childrenOnly: true,
|
||||
onBeforeElUpdated: (fromEl: Element, toEl: Element) => {
|
||||
@@ -439,6 +441,7 @@ function domEval(el: Element): void {
|
||||
for (const key of preservedScriptAttributes) {
|
||||
const val = node.getAttribute?.(key);
|
||||
if (val) {
|
||||
// eslint-disable-next-line local/code-no-any-casts
|
||||
scriptTag.setAttribute(key, val as any);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,6 +50,7 @@ class AddToIgnoreLinksQuickFixProvider implements vscode.CodeActionProvider {
|
||||
case DiagnosticCode.link_noSuchHeaderInOwnFile:
|
||||
case DiagnosticCode.link_noSuchFile:
|
||||
case DiagnosticCode.link_noSuchHeaderInFile: {
|
||||
// eslint-disable-next-line local/code-no-any-casts
|
||||
const hrefText = (diagnostic as any).data?.hrefText;
|
||||
if (hrefText) {
|
||||
const fix = new vscode.CodeAction(
|
||||
|
||||
@@ -143,6 +143,7 @@ export class MarkdownItEngine implements IMdParser {
|
||||
const frontMatterPlugin = await import('markdown-it-front-matter');
|
||||
// Extract rules from front matter plugin and apply at a lower precedence
|
||||
let fontMatterRule: any;
|
||||
// eslint-disable-next-line local/code-no-any-casts
|
||||
frontMatterPlugin.default(<any>{
|
||||
block: {
|
||||
ruler: {
|
||||
|
||||
Reference in New Issue
Block a user