feat: use eslint with prettier to format code
This commit is contained in:
committed by
mrugesh mohapatra
parent
be36915605
commit
fc8c71ad16
@ -31,28 +31,26 @@ exports.sourceNodes = function sourceChallengesSourceNodes(
|
||||
persistent: true
|
||||
});
|
||||
|
||||
watcher.on('ready', sourceAndCreateNodes).on(
|
||||
'change',
|
||||
filePath =>
|
||||
(/\.md$/).test(filePath)
|
||||
? onSourceChange(filePath)
|
||||
.then(challenge => {
|
||||
reporter.info(
|
||||
`File changed at ${filePath}, replacing challengeNode id ${
|
||||
challenge.id
|
||||
}`
|
||||
);
|
||||
return createChallengeNode(challenge, reporter);
|
||||
})
|
||||
.then(createNode)
|
||||
.catch(e =>
|
||||
reporter.error(`fcc-replace-challenge
|
||||
watcher.on('ready', sourceAndCreateNodes).on('change', filePath =>
|
||||
/\.md$/.test(filePath)
|
||||
? onSourceChange(filePath)
|
||||
.then(challenge => {
|
||||
reporter.info(
|
||||
`File changed at ${filePath}, replacing challengeNode id ${
|
||||
challenge.id
|
||||
}`
|
||||
);
|
||||
return createChallengeNode(challenge, reporter);
|
||||
})
|
||||
.then(createNode)
|
||||
.catch(e =>
|
||||
reporter.error(`fcc-replace-challenge
|
||||
|
||||
${e.message}
|
||||
|
||||
`)
|
||||
)
|
||||
: null
|
||||
)
|
||||
: null
|
||||
);
|
||||
|
||||
function sourceAndCreateNodes() {
|
||||
|
Reference in New Issue
Block a user