chore: format curriculum (#37912)

This commit is contained in:
Oliver Eyton-Williams
2020-12-15 16:52:02 +01:00
committed by GitHub
parent 45fe3d8814
commit 22fbc62f88
52 changed files with 9021 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
const readDirP = require('readdirp-walk');
const { getText } = require('./transform-to-mdx');
const { validateHints } = require('./create-mdx');
const challengeDir = '../../../../curriculum/challenges/english';
readDirP({
root: challengeDir,
fileFilter: ['*.md']
}).on('data', file => {
if (file.stat.isFile()) {
getText(file.fullPath)
.then(validateHints)
.catch(() => {
console.log('invalid hint in');
console.log(file.path);
});
}
});