Format JavaScript files with prettier
This commit is contained in:
parent
951720def9
commit
eb6e54a0f7
2 changed files with 10 additions and 0 deletions
|
|
@ -8,5 +8,11 @@
|
||||||
"useTabs": true,
|
"useTabs": true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"files": ["*.js"],
|
||||||
|
"options": {
|
||||||
|
"useTabs": true,
|
||||||
|
},
|
||||||
|
},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,3 +16,7 @@ pre-commit:
|
||||||
glob: "*.html"
|
glob: "*.html"
|
||||||
run: prettier -w {staged_files}
|
run: prettier -w {staged_files}
|
||||||
stage_fixed: true
|
stage_fixed: true
|
||||||
|
jsfmt:
|
||||||
|
glob: "*.js"
|
||||||
|
run: prettier -w {staged_files}
|
||||||
|
stage_fixed: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue