codeclimate / codeclimate-eslint

Code Climate Engine for ESLint
MIT License
95 stars 93 forks source link

Update eslint-plugin-node #389

Closed efueger closed 5 years ago

efueger commented 6 years ago

Description

Repo using eslint-4 channel running into the following error:

engine eslint failed with status 1 and stderr 
/usr/src/app/lib/validate_config.js:18
        throw e;
        ^

Error: /code/.eslintrc.js:
    Configuration for rule "node/no-unsupported-features" is invalid:
    Value {"version":8.3,"ignores":[]} should be equal to one of the allowed values.
    Value {"version":8.3,"ignores":[]} should be string.
    Value 8.3 should be equal to one of the allowed values.
    Value 8.3 should be string.
    Value 8.3 should match some schema in anyOf.
    Value {"version":8.3,"ignores":[]} should match some schema in anyOf.

This is likely related to:


User notes the following when testing:

Works:

'node/no-unsupported-features': [ 
'error', 
{ 
version: 8, 
ignores: [], 
}, 
],

Breaks:

'node/no-unsupported-features': [ 
'error', 
{ 
version: 8.3, 
ignores: [], 
}, 
],
filipesperandio commented 5 years ago

Already there, closing.