Skip to content

Commit

Permalink
fix: remove accidental shadowing of fs
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypicalpro committed Aug 26, 2020
1 parent a003f62 commit d5d6359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ async function validateConfig (config) {
const parsedRuleSchemas = Promise.all(Rules
.map(rs => jsonfile.readFile(path.resolve(__dirname, 'rules', `${rs}-config.json`))))
const parsedFixSchemas = Promise.all(Fixes
.map(fs => jsonfile.readFile(path.resolve(__dirname, 'fixes', `${fs}-config.json`))))
.map(f => jsonfile.readFile(path.resolve(__dirname, 'fixes', `${f}-config.json`))))
const allSchemas = (await Promise.all([parsedFixSchemas, parsedRuleSchemas]))
.reduce((a, c) => a.concat(c), [])
// load them into the validator
Expand Down

0 comments on commit d5d6359

Please sign in to comment.