Javascript: Prefer destructuring invalid rule

Created on 8 Oct 2017  路  2Comments  路  Source: airbnb/javascript

I'm getting an issue which I believe was caused by this commit? https://github.com/airbnb/javascript/commit/5aa203eaa88fb7febfb1ccf8736e896ca0959049#diff-5838a00e5ed5932b1af705c34ada1300L114

I get the following error:

Module build failed: Error: /Users/jeff/projects/plot-factory-app/resources/assets/vue/node_modules/eslint-config-airbnb-base/rules/style.js:
    Configuration for rule "indent" is invalid:
    Value "data["1"].ImportDeclaration" has additional properties.
    Value "data["1"].flatTernaryExpressions" has additional properties.
    Value "data["1"].ignoredNodes" has additional properties.
invalid

Most helpful comment

I was seeing this with eslint: 3.x since it's what I found in the readme at https://github.com/babel/babel-eslint, switch to 4.x and it works now.

All 2 comments

Weirdly, as soon as I submit an issue, I think to upgrade my packages. I was using an outdated version.

I was seeing this with eslint: 3.x since it's what I found in the readme at https://github.com/babel/babel-eslint, switch to 4.x and it works now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stephenkingsley picture stephenkingsley  路  3Comments

ar
mbifulco picture mbifulco  路  3Comments

koiralakiran1 picture koiralakiran1  路  3Comments

tpiros picture tpiros  路  3Comments

danielfttorres picture danielfttorres  路  3Comments