Skip to content

Commit

Permalink
fix security/detect-non-literal-fs-filename
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushik-rishi committed Mar 21, 2024
1 parent bd31c62 commit ba5d873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/beautify-output.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable security/detect-non-literal-fs-filename */
const fs = require('fs');
const path = require('path');
const beautify = require('js-beautify').js;
Expand Down Expand Up @@ -54,6 +53,7 @@ module.exports = {
const entryPointFilePath = path.resolve(generator.targetDir, 'src/api/index.js');
const handlersPath = path.resolve(generator.targetDir, 'src/api/handlers');
const routesPath = path.resolve(generator.targetDir, 'src/api/routes');

beautifyAllOutputFiles(handlersPath);
beautifyAllOutputFiles(routesPath);
beautifySingleFile(entryPointFilePath);
Expand Down

0 comments on commit ba5d873

Please sign in to comment.