esformatter icon indicating copy to clipboard operation
esformatter copied to clipboard

ECMAScript code beautifier/formatter

Results 72 esformatter issues
Sort by recently updated
recently updated
newest added

Using default preset, there supposed to be a space before array pattern opening, however, it doesn't work when it is located after `yield`. For instance, the formatters formats `yield [generateA(),...

There's a spacing bug on default function parameters when assigning with array. When I format ```javascript function foo(a = 123, b = 'test', c = ['a', 'b'], { d =...

Hi @millermedeiros, would it be possible to push a new patch for esformatter? There has been a PR merged but not yet released that fixes a very common issue with...

I'm an experienced designer, and I just found out about this great tool. If it's something that could help the cause even if it's only so that online articles can...

task

minimal.js ```js import('./myModule').then(myModule => console.log(myModule)) ```` gives: ```sh formatting > esformatter minimal.js Error: minimal.js:1:6 Unexpected token, expected { SyntaxError: Unexpected token, expected { (1:6) at Parser.pp$5.raise (/home/hoschi/repos/gis/formatting/node_modules/babylon/lib/index.js:4373:13) at Parser.pp.unexpected (/home/hoschi/repos/gis/formatting/node_modules/babylon/lib/index.js:1716:8)...

Expected: ``` const methods = { ...mapActions({ setBodyClass: 'ui/setBodyClass', setTitle: 'ui/setTitle' }), ...mapActions('user', ['login']) }; ``` Formatted: ``` const methods = { ...mapActions({ setBodyClass: 'ui/setBodyClass', setTitle: 'ui/setTitle' }), ...mapActions('user', ['login'])...

bug

It would be really convenient if there was a way to generate the config file from the ESLint config file: https://github.com/eslint/eslint/blob/master/conf/eslint.json

feature
plugins-wishlist

there are many config file for eslint, it's prefect esformatter can use them without any modifications.

feature
plugins-wishlist

Formatting: ``` const { a, b } = x; ``` always results in: ``` const {a, b} = x; ``` There are no configuration options for whitespace before or after...

enhancement
feature

Let's say we have following configuration: ``` javascript { "whiteSpace": { "after": { "ParameterComma" : 1 } } } ``` When coding as below: ``` javascript export const fetchArticles =...

bug
enhancement