1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-24 23:26:50 +02:00

Tools: Apply rule @typescript-eslint/type-annotation-spacing

This commit is contained in:
Laurent Cozic
2020-11-12 19:13:28 +00:00
parent 62feb7ff60
commit d20694e52c
291 changed files with 2205 additions and 2203 deletions

View File

@ -1,11 +1,11 @@
function plugin(markdownIt:any) {
function plugin(markdownIt: any) {
const defaultRender =
markdownIt.renderer.rules.code_inline ||
function(tokens:any, idx:any, options:any, _env:any, self:any) {
function(tokens: any, idx: any, options: any, _env: any, self: any) {
return self.renderToken(tokens, idx, options);
};
markdownIt.renderer.rules.code_inline = (tokens:any[], idx:number, options:any, env:any, self:any) => {
markdownIt.renderer.rules.code_inline = (tokens: any[], idx: number, options: any, env: any, self: any) => {
const token = tokens[idx];
let tokenClass = token.attrGet('class');
if (!tokenClass) tokenClass = '';