Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
fix(contextMenu): Enable context menu entry for JSX files
Browse files Browse the repository at this point in the history
Using Prettier through context menus was not possible on files with JSX syntax highlight ('Babel',
'JavaScript with JSX').
  • Loading branch information
darahak committed Apr 16, 2017
1 parent 35d0a8c commit 06e9945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion menus/prettier-js.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"context-menu": {
"atom-text-editor[data-grammar='source js']": [
"atom-text-editor[data-grammar='source js'], atom-text-editor[data-grammar='source js jsx']": [
{
"label": "Format With prettier",
"command": "prettier:format"
Expand Down

0 comments on commit 06e9945

Please sign in to comment.