Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds comma_first as an option for javascript #2569

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andrewsuperlegit
Copy link

@andrewsuperlegit andrewsuperlegit commented Apr 25, 2021

because after digging thru js-beautify's code:
atom-beautify/node-modules/js-beautify/js/lib/beautifier.js
on approximately line 1213 inside the Beautifier.prototype.handle_comma function, you can see on line 1227:

} else if  (this._options.comma_first){ // <--------

so the option "comma_first" both exists, and is usable and works as expected if you specify the option in your .jsbeautifyrc
:-)

What does this implement/fix? Explain your changes.

js-beautify has an option for comma first style. it exists in their code. i just added to the readme so people know it exists

Does this close any currently open issues?

had i made one rather than solving the problem directly, yeah

Any other comments?

ezpz. relates to my other pull request which just adds the example to the options.md

Checklist

Check all those that are applicable and complete.

  • Merged with latest master branch
  • Regenerate documentation with npm run docs
  • Add change details to CHANGELOG.md under "Next" section
  • Added examples for testing to examples/ directory
  • Travis CI passes (Mac support)
  • AppVeyor passes (Windows support)

because after digging thru js-beautify's code:   
```atom-beautify/node-modules/js-beautify/js/lib/beautifier.js    ```
on approximately line 1213 inside the Beautifier.prototype.handle_comma function, you can see on line 1227:

```
} else if  (this._options.comma_first){ // <--------
```
so the option "comma_first" both exists, and is usable and works as expected if you specify the option in your .jsbeautifyrc 
:-)
@andrewsuperlegit
Copy link
Author

i think the appveyor thing has nothing to do with this. i just updated readmes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant