set up according to some jsfmt settings documents on the Internet, but it still doesn"t work and keeps reporting errors. Please have experience to help see what"s wrong:
https://github.com/royriojas/.
jsfmt.sublime-setting is configured as follows:
{
// autoformat on save
"autoformat": false,
// array of extensions for autoformat
"extensions": ["js","jsx", "sublime-settings"],
// options for jsfmt
"options": {
"preset": "jquery",
"indent": {
"value": " "
},
// plugins included
"plugins": [
"esformatter-jsx",
// "esformatter-quotes",
// "esformatter-semicolons",
// "esformatter-braces",
// "esformatter-dot-notation"
],
"jsx":{
"formatJSX": true,
// change these to your preferred values
// refer to https://github.com/royriojas/esformatter-jsx-sharpbest-configuration for more options
"attrsOnSameLineAsTag": false,
"maxAttrsOnTag": 1,
"firstAttributeOnSameLine": false,
"alignWithFirstAttribute": true
}
},
"options-JSON": {
"plugins": [
"esformatter-quotes"
],
"quotes": {
"type": "double"
}
},
"node-path": "node",
"alert-errors": true,
"ignore-selection": false
}
sublime shortcuts are configured as follows:
{"keys": ["ctrl+h"], "command": "format_javascript"}
the error is as follows:
could you tell me what went wrong? The shortcut key Ctrl+h is not repeated, and ctrl+q is not allowed.