Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meloniasty/sbt-js-beautify
js-beautify npm plugin in sbt ecosystem
https://github.com/meloniasty/sbt-js-beautify
Last synced: 2 months ago
JSON representation
js-beautify npm plugin in sbt ecosystem
- Host: GitHub
- URL: https://github.com/meloniasty/sbt-js-beautify
- Owner: meloniasty
- Created: 2014-10-21T12:06:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-21T12:09:44.000Z (over 10 years ago)
- Last Synced: 2024-08-03T06:02:04.802Z (6 months ago)
- Language: Scala
- Size: 121 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-sbt-plugins - sbt-js-beautify
README
sbt-js-beautify
===============Allows [js-beautify](https://github.com/beautify-web/js-beautify) to be used in sbt.
My implementation only beautifies javascripts files and overwrite originals.
Plugin highly inspired by [sbt-jshint](https://github.com/sbt/sbt-jshint)
To use this plugin use the addSbtPlugin command within your project's plugins.sbt (or as a global setting) i.e.:
addSbtPlugin("it.impossible.sbt" % "sbt-js-beautify" % "")
You should check original node js plugin website [https://github.com/beautify-web/js-beautify](https://github.com/beautify-web/js-beautify) for beautifier options description.
Options should be provided in .jsbeautifyrc file, i.e.
{
"indent_size": 4,
"indent_char": " ",
"indent_level": 0,
"indent_with_tabs": false,
"preserve_newlines": true,
"max_preserve_newlines": 10,
"jslint_happy": false,
"space_after_anon_function": false,
"brace_style": "collapse",
"keep_array_indentation": false,
"keep_function_indentation": false,
"space_before_conditional": true,
"break_chained_methods": false,
"eval_code": false,
"unescape_strings": false,
"wrap_line_length": 0
}