Variable: js-jsx-detect-syntax
js-jsx-detect-syntax is a customizable variable defined in js.el.gz.
Value
t
Documentation
When non-nil, automatically detect whether JavaScript uses JSX.
js-jsx-syntax (which see) may be made buffer-local and set to
t. The detection strategy can be customized by adding elements
to js-jsx-regexps, which see.
This variable was added, or its default value changed, in Emacs 27.1.
Probably introduced at or before Emacs version 27.1.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/js.el.gz
(defcustom js-jsx-detect-syntax t
"When non-nil, automatically detect whether JavaScript uses JSX.
`js-jsx-syntax' (which see) may be made buffer-local and set to
t. The detection strategy can be customized by adding elements
to `js-jsx-regexps', which see."
:version "27.1"
:type 'boolean
:safe 'booleanp)