JavaScript editor customization
Copyright 2013-2024 - Brainwy Software Ltda.
Theme by orderedlist
# Note that this is a YAML file with jshint_opts for JSHint in JSON format.
# Option determining whether JSHint should be run
enable_jshint: true
# Json contents to be passed to JSHint (it's passed directly as specified
# and may be configured based on http://www.jshint.com/docs/options/)
jshint_opts: |-
{
"undef": true,
"browser": true,
"jquery": true
}
# Option determining whether code-formatting (Ctrl+Shift+F) is enabled.
enable_beautify_js: true
# Json contents to be passed to beautify.js (it's passed directly as specified
# and may be configured based on https://github.com/beautify-web/js-beautify)
beautify_js_opts: |-
{
"indent_size": 4,
"indent_char": " ",
"preserve_newlines": true,
"max_preserve_newlines": 2147483647,
"jslint_happy": false,
"space_after_anon_function": false,
"brace_style": "collapse",
"space_before_conditional": true,
"unescape_strings": false,
"wrap_line_length": 2147483647,
"end_with_newline":false
}
Currently it's possible to customize whether jshint will be run by changing the value of enable_jshint
and the options used by JSHint to do the analysis through the value of jshint_options. Note that
JSHint also accepts comments inline in a file for configuration.