ctumolosus / jsdoc-jsx

A JSDoc plugin that automatically parses JSX source files with esprima before it is processed by JSDoc.
7 stars 0 forks source link

Illegal import declaration #2

Open JonathanRys-ATC opened 7 years ago

JonathanRys-ATC commented 7 years ago

I have the following options set

{
    "plugins": ["jsdoc-jsx"],
    "jsx": {
        "extensions": ["js", "jsx"],
        "react": true,
        "harmony": true,
        "nonStrictEs6module": true
    }
}

I'm running this at the command line

jsdoc .\src\App.jsx -c conf.json

And I get Parse Error: Line 11: Illegal import declaration

This is line 11 in App.jsx:

import React, { Component } from "react";
turnerhayes commented 7 years ago

Same problem here.

{
"tags": {
    "allowUnknownTags": true
},
"source": {
    "includePattern": ".+\\.js(doc|x)?$",
    "excludePattern": "(^|\\/|\\\\)_"
},
"plugins": [
    "jsdoc-jsx"
],
"templates": {
    "cleverLinks": false,
    "monospaceLinks": false,
    "default": {
        "outputSourceFiles": true
    }
}
}