[wp-trac] [WordPress Trac] #51990: Codemirror does not support JSX by default as mentioned

WordPress Trac noreply at wordpress.org
Wed Aug 24 19:04:53 UTC 2022


#51990: Codemirror does not support JSX by default as mentioned
-------------------------------------------+------------------------------
 Reporter:  webbdeveloper                  |       Owner:  (none)
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  External Libraries             |     Version:  5.5.3
 Severity:  major                          |  Resolution:
 Keywords:  needs-patch reporter-feedback  |     Focuses:
-------------------------------------------+------------------------------
Changes (by desrosj):

 * keywords:  needs-patch => needs-patch reporter-feedback


Comment:

 Hi @webbdeveloper! Welcome to Trac!

 I've been trying to reproduce the issue you're describing, but haven't
 been able to so far.

 Can you clarify what you mean by "when I use JSX mode?" Does this mean you
 are creating your own code editor instance? It looks like there are no
 warnings thrown when editing a JSX file in the plugin or theme editors,
 and [https://core.trac.wordpress.org/browser/tags/6.0.1/src/wp-includes
 /general-template.php#L3923 linting is not enabled].

 Core provides csshint, jshint, and htmlhint support. Is it possible jshint
 is being enabled?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51990#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list