-
Notifications
You must be signed in to change notification settings - Fork 93
Description
Actual Behavior
When using Code Climate's eslint-4
channel, with the following dependencies in the package.json:
-
babel-eslint@8.2.3
-
eslint@4.18.2
-
eslint-plugin-import@2.9.0
With this in the .eslintrc file:
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
}
],
The eslint plugin fails with the following error:
/usr/src/app/lib/validate_config.js:18
throw e;
^Error: /code/.eslintrc:
Configuration for rule "import/extensions" is invalid:
Value ["ignorePackages",{"js":"never","jsx":"never"}] should NOT have more than 1 items.
Value ["ignorePackages",{"js":"never","jsx":"never"}] should NOT have more than 1 items.
Value "ignorePackages" should be equal to one of the allowed values.
Value ["ignorePackages",{"js":"never","jsx":"never"}] should match some schema in anyOf.
Possibly resolved by bumping our eslint-plugin-import
version. (we're at 2.8.0)
- Related conversation on eslint-plugin-import project: Schema error when using
ignorePackages
import-js/eslint-plugin-import#979
Relevant links
- reproduced here: https://github.com/efueger/tui.calendar