js-beautify icon indicating copy to clipboard operation
js-beautify copied to clipboard

Beautifier for javascript

Results 179 js-beautify issues
Sort by recently updated
recently updated
newest added

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?

implementation: python
type: bug
type: breaking change
implementation: javascript
help wanted

### 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 =...

language: javascript

# 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;...

type: bug
language: css
language: templating

# 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...

type: bug
language: javascript

# 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...

language: html
type: enhancement

# Input The code looked like this before beautification: ``` function f(a) { if (false) throw a "b" == t || sth() } ``` # Expected Output The code should...

type: bug
language: javascript
status: blocked

# 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....

type: bug
type: enhancement
language: javascript
status: blocked

```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...

implementation: python
type: bug

Since I've updated from 1.5.1 to 1.6.2, I've this behaviour: `function * fn() {}` becomes `function* fn() {}`

type: enhancement
language: javascript