You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Tools: Implement @typescript-eslint/no-explicit-any rule
This commit is contained in:
@ -2,6 +2,7 @@ import { RuleOptions } from '../../MdToHtml';
|
||||
|
||||
let checkboxIndex_ = -1;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
||||
function pluginAssets(theme: any) {
|
||||
return [
|
||||
{
|
||||
@ -53,6 +54,7 @@ function pluginAssets(theme: any) {
|
||||
];
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
||||
function createPrefixTokens(Token: any, id: string, checked: boolean, label: string, postMessageSyntax: string, sourceToken: any, disabled: boolean): any[] {
|
||||
let token = null;
|
||||
const tokens = [];
|
||||
@ -106,6 +108,7 @@ function createPrefixTokens(Token: any, id: string, checked: boolean, label: str
|
||||
return tokens;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
||||
function createSuffixTokens(Token: any): any[] {
|
||||
return [
|
||||
new Token('label_close', 'label', -1),
|
||||
@ -113,9 +116,11 @@ function createSuffixTokens(Token: any): any[] {
|
||||
];
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
||||
function checkboxPlugin(markdownIt: any, options: RuleOptions) {
|
||||
const renderingType = options.checkboxRenderingType || 1;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
||||
markdownIt.core.ruler.push('checkbox', (state: any) => {
|
||||
const tokens = state.tokens;
|
||||
const Token = state.Token;
|
||||
|
Reference in New Issue
Block a user