Skip to content

Commit

Permalink
[MegaLinter] Apply linters fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wesley-dean-gsa committed Dec 20, 2024
1 parent 123a5bd commit 1d3933c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion _data/assetPaths.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"uswds.js": "/assets/js/uswds-init.js",
"styles.css": "/assets/styles/styles-VHE4JBMV.css",
"styles.map": "/assets/styles/styles-VHE4JBMV.css.map"
}
}
16 changes: 9 additions & 7 deletions js/redirect.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
const fs = require('fs');
const path = require('path');
const fs = require("fs");
const path = require("path");

const archiveDir = './pages/jointts/positions/archive';
const archiveDir = "./pages/jointts/positions/archive";

const mdFiles = fs.readdirSync(archiveDir).filter(file => file.endsWith('.md'));
const mdFiles = fs
.readdirSync(archiveDir)
.filter((file) => file.endsWith(".md"));

module.exports = mdFiles.map(file => ({
permalink: `/pages/jointts/positions/archive/${file.replace('.md', '.html')}`,
redirectTo: '/join/',
module.exports = mdFiles.map((file) => ({
permalink: `/pages/jointts/positions/archive/${file.replace(".md", ".html")}`,
redirectTo: "/join/",
}));

0 comments on commit 1d3933c

Please sign in to comment.