1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Tools: Added eslint rule arrow-parens

This commit is contained in:
Laurent Cozic
2020-05-20 17:16:43 +01:00
parent c34f762507
commit 0b6f5581f0
166 changed files with 446 additions and 445 deletions

View File

@@ -7,7 +7,7 @@ const TemplateUtils = {};
// Mustache escapes strings (including /) with the html code by default
// This isn't useful for markdown so it's disabled
Mustache.escape = text => {
Mustache.escape = (text) => {
return text;
};
@@ -47,7 +47,7 @@ TemplateUtils.loadTemplates = async function(filePath) {
// sensitivity ensures that the sort will ignore case
files.sort((a, b) => { return a.path.localeCompare(b.path, undefined, { sensitivity: 'accent' }); });
files.forEach(async file => {
files.forEach(async (file) => {
if (file.path.endsWith('.md')) {
try {
const fileString = await shim.fsDriver().readFile(`${filePath}/${file.path}`, 'utf-8');