Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Fix: support ecmaFeatures.jsx flag #595

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix typo
  • Loading branch information
bradzacher committed Jan 13, 2019
commit 1d46dea7438e1a869f344fdc9991f34bf6fa1461
2 changes: 1 addition & 1 deletion parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ exports.parseForESLint = function parseForESLint(code, inputOptions) {

options.jsx = (options.ecmaFeatures || {}).jsx;
if (typeof options.jsx !== "boolean") {
inputOptions.jsx = false;
options.jsx = false;
}

// override the jsx option depending on the file path
Expand Down