xo and decorators?

Created on 4 Feb 2017  路  3Comments  路  Source: xojs/xo

just getting into xo in combination with a react project.

is there a way to get xo to be ok with decorators?

decorators are mentioned briefly here, but this verbiage was removed.

are they supposed to be supported and i'm just misconfigured, or are they shunned?

screen shot 2017-02-04 at 3 24 13 pm

Most helpful comment

You can try adding babel-eslint to your devDependencies and in your package.json file add the following:

{
    "xo": {
        "parser": "babel-eslint"
    }
}

Check the docs here.

All 3 comments

You can try adding babel-eslint to your devDependencies and in your package.json file add the following:

{
    "xo": {
        "parser": "babel-eslint"
    }
}

Check the docs here.

thanks josh, works great! 馃憤

Glad to hear it :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

niftylettuce picture niftylettuce  路  6Comments

SamVerschueren picture SamVerschueren  路  4Comments

sindresorhus picture sindresorhus  路  3Comments

SteveALee picture SteveALee  路  5Comments

sindresorhus picture sindresorhus  路  8Comments