Add HTML formatter: js-beautify (#12)
* Add HTML formatter: js-beautify https://www.npmjs.com/package/js-beautify Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru> * package.json: dependency move to dev Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru> * HTML formatter: add `"end_with_newline": true` and npm run format Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru> * npm scripts ; to && Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
This commit is contained in:
parent
ee8918ce7d
commit
f50bb091db
3 changed files with 111 additions and 2821 deletions
4
.jsbeautifyrc
Normal file
4
.jsbeautifyrc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"indent_size": 2,
|
||||||
|
"end_with_newline": true
|
||||||
|
}
|
2923
package-lock.json
generated
2923
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -10,10 +10,11 @@
|
||||||
"prettier": "^2.3.2",
|
"prettier": "^2.3.2",
|
||||||
"stylelint": "^13.13.1",
|
"stylelint": "^13.13.1",
|
||||||
"stylelint-config-recommended": "^5.0.0",
|
"stylelint-config-recommended": "^5.0.0",
|
||||||
"stylelint-config-standard": "^22.0.0"
|
"stylelint-config-standard": "^22.0.0",
|
||||||
|
"js-beautify": "^1.14.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"format": "stylelint --fix ./sass/*.scss && prettier --write *.md content/**/*.md"
|
"format": "stylelint --fix ./sass/*.scss && prettier --write *.md content/**/*.md && js-beautify -r templates/base.html"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
Loading…
Add table
Reference in a new issue