Indent
Type: Number|String(only tab)
Default: 2
Description: A numeric value indicates specifies the number of spaces. The string value only tab
blankLines
Type: String|Boolean(only false)
Default: '\n'
Description: Add or remove blank lines to separate large or logical code blocks
eol (end of line)
Type: String
Default: '\n'
Description: As value is a string symbol which is added to the end of the row
eof (end of file)
Type: String|Boolean
Default: '\n'
Description: As value is a string symbol which is added to the end of the file and will not adds if you specify a boolean value of false
maxlen
Type: Number
Default: '80'
Description: checks for the max length of the content, indents the whole content to a new line
sortAttr
Type: Boolean
Default: false
Description: Sort the order of attributes in elements
lang
Type: String | Boolean(only false)
Default: false
Description: Add a lang attribute in elements, eg: { lang: 'fr' }
commentFormat
Type: Boolean
Default: true
Description: Formats the comments. It does the following
If there are multi line comments then there would be
leading and trailing newline like this
mini
Type: Object
Default:
removeAttribute
Type: String|Boolean
Default: false
Description: Removes attributes that do not matter. The string value only empty
jsBeautifyOptions
Type: Object
Default: All options as per package js-beautify except, indent_level because calculated and set according to context