Skip to content

Commit

Permalink
fix(model): pretty-print json file to eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
reel committed Nov 13, 2017
1 parent 7d68b71 commit 14fd689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/model/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async function start(configuration) {
try {
const eslintRc = JSON.parse(fs.readFileSync(eslintFile, 'utf8'));
henri._models.map(modelName => (eslintRc.globals[modelName] = true));
fs.writeFileSync(eslintFile, JSON.stringify(eslintRc));
fs.writeFileSync(eslintFile, JSON.stringify(eslintRc, null, 2));
} catch (e) {} // Do nothing
}
return resolve();
Expand Down

0 comments on commit 14fd689

Please sign in to comment.