js-beautify
js-beautify copied to clipboard
Beautifier for javascript
I have this in my html ```html ``` on the front-end, I cannot find a global variable, that I can use to generated formatted strings. is there a global variable?
### Description The beautifier doesn't seem to recognize variables with unicode names. The input is a valid JavaScript code, but the output is not. ### Input ```JavaScript var \u040F =...
# Input The code looked like this before beautification: ```scss $theme-colors: ( primary: $blue, secondary: $gray-600, success: $green, info: $cyan, warning: $yellow, danger: $red, light: $gray-100, dark: $gray-800 ) !default;...
# Description There is a conflict between js-beautify and eslint in terms of the level of indent for a single-line arrow function (such as a React component) that is returning...
# Description Let me start off by noting that this issue is about invalid html. It's a bit of an edge case but let me explain how I obtain this...
# Input The code looked like this before beautification: ``` function f(a) { if (false) throw a "b" == t || sth() } ``` # Expected Output The code should...
# Description > This is the default template for bug reports, if you have a more general > issue, question, or request, you may ignore this template and write freeform....
```console $ cat test.js var s = "åäö"; $ js-beautify test.js var s = "åäö"; $ js-beautify test.js | cat - 'ascii' codec can't encode characters in position 9-11: ordinal...
Since I've updated from 1.5.1 to 1.6.2, I've this behaviour: `function * fn() {}` becomes `function* fn() {}`