From 06e99452861158940efc9bf709ac8cd958815d01 Mon Sep 17 00:00:00 2001 From: Dara Hak Date: Sun, 16 Apr 2017 18:16:10 +0200 Subject: [PATCH] fix(contextMenu): Enable context menu entry for JSX files Using Prettier through context menus was not possible on files with JSX syntax highlight ('Babel', 'JavaScript with JSX'). --- menus/prettier-js.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menus/prettier-js.json b/menus/prettier-js.json index fb176063..10947f80 100644 --- a/menus/prettier-js.json +++ b/menus/prettier-js.json @@ -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"