Skip to content

A JSDoc plugin that automatically parses JSX source files with esprima before it is processed by JSDoc.

Notifications You must be signed in to change notification settings

ctumolosus/jsdoc-jsx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A JSDoc plugin that automatically parses JSX source files with esprima before it is processed by JSDoc.

Installation

The jsdoc-jsx plugin can be installed using NPM.

npm install jsdoc-jsx --save-dev

Usage

To use plugin you should include the plugin module in the plugins array of JSDoc's configuration file.

{
    "plugins": ["jsdoc-jsx"]
}

Processing files with different extensions

By default, the plugin only processes files that have a .jsx extension. You could enable JSX processing for other file extensions by adding the following settings to your JSDoc configuration file:

{
    "plugins": ["jsdoc-jsx"],
    "jsx": {
        "extensions": ["js", "jsx"]
    }
}

Passing options through esprima and transform

You can define options to be passed through esprima and transform by adding them to your JSDoc configuration file:

{
    "plugins": ["jsdoc-jsx"],
    "jsx": {
        "es6": true,
        "es6module": true
    }
}

About

A JSDoc plugin that automatically parses JSX source files with esprima before it is processed by JSDoc.

Resources

Stars

Watchers

Forks

Packages

No packages published