     @multipleCursorTrigger = 1
     @disposables = new CompositeDisposable()
     @eslintIndentOptions = @getIndentOptions()
+    @templateDepth = 0 # track depth of any embedded back-tick templates
+
 
     @disposables.add atom.commands.add 'atom-text-editor',
       'language-babel:auto-indent-jsx-on': (event) =>

  # option contains row to indent and allowAdditionalIndents flag
  indentRow: (options) ->
    { row, allowAdditionalIndents, blockIndent, jsxIndent, jsxIndentProps } = options
    # calc overall indent
    if jsxIndent
      if @eslintIndentOptions.jsxIndent[0]

              if parentTokenIdx >=0 then tokenStack[parentTokenIdx].termsThisTagIdx = idxOfToken
              idxOfToken++

            if token is TEMPLATE_END then @templateDepth--
            
          # case, default statement of switch
          when SWITCH_CASE, SWITCH_DEFAULT
            tokenOnThisLine = true
