1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Tools: Apply rule github/array-foreach

This commit is contained in:
Laurent Cozic
2023-06-30 09:39:21 +01:00
parent c6a15b3186
commit 0c4ba592f6
32 changed files with 473 additions and 4 deletions

View File

@ -8,6 +8,7 @@ const outputDir = `${rootDir}/pluginAssets`;
const walk = function(dir) {
let results = [];
const list = fs.readdirSync(dir);
// eslint-disable-next-line github/array-foreach -- Old code before rule was applied
list.forEach((file) => {
file = `${dir}/${file}`;
const stat = fs.statSync(file);