1.1.0 • Published 8 years ago

jsdoc-ignore-future v1.1.0

Weekly downloads
92
License
MIT
Repository
github
Last release
8 years ago

jsdoc-ignore-future

JSDoc plugin allowing one to exempt from parsing code that may be supported by a transpiler but not JSDoc's parser.

Install

npm install --save-dev jsdoc-ignore-future

Usage

Add "node_modules/jsdoc-ignore-future" to the plugins array in your jsdoc config. Put comments above & below code you wish for the JSDoc parser to ignore as in the following example:

//es-future>
@Decorator('foo')
//<es-future
class MyClass {
    //es-future>
    myProp = 'something';
    static myStatic = [];
    //<es-future
    
    constructor( bar ) {
        this.bar = bar;
    }
}

Configuration

You can configure what the starting and closing comments are in your jsdoc conf.json.

{
    "plugins": [ "node_modules/jsdoc-ignore-future" ],
    "ignoreFuture": {
        "start": "myStartComment",
        "end":   "myEndComment"
    }
}
1.1.0

8 years ago

1.0.0

8 years ago