Skip to content

Commit

Permalink
feat(index.js): add formating for js
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahacad committed Jul 9, 2021
1 parent 6591dee commit 0b8b7e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ function visitor(node) {
node.lang &&
(node.lang.toLowerCase() == 'c++' ||
node.lang.toLowerCase() == 'cpp' ||
node.lang.toLowerCase() == 'c')
node.lang.toLowerCase() == 'c' ||
node.lang.toLowerCase() == 'javascript')
) {
const child = spawnSync('clang-format', { input: node.value });
node.value = child.stdout;
Expand Down

0 comments on commit 0b8b7e8

Please sign in to comment.