Skip to content

ESLint-4 prettier support. #383

Closed
Closed
@aichholzer

Description

@aichholzer

Actual Behavior

My .codeclimate.yml file:

version: "2"
plugins:
  eslint:
    enabled: true
    channel: "eslint-4"
exclude_patterns:
  - "**.json"
  - "**.md"
  - "**.yml"

when trying to run codeclimate's analysis it fails:

/usr/src/app/lib/validate_config.js:18
        throw e;
        ^

TypeError: Cannot read property 'recommended' of undefined
Referenced from: /code/.eslintrc.json
    at loadConfigFile (/usr/local/node_modules/eslint/lib/config/config-file.js:211:40)
    at loadFromDisk (/usr/local/node_modules/eslint/lib/config/config-file.js:486:18)
    at load (/usr/local/node_modules/eslint/lib/config/config-file.js:550:20)
    at configExtends.reduceRight.e (/usr/local/node_modules/eslint/lib/config/config-file.js:421:36)
    at Array.reduceRight (native)
    at applyExtends (/usr/local/node_modules/eslint/lib/config/config-file.js:403:28)
    at loadFromDisk (/usr/local/node_modules/eslint/lib/config/config-file.js:514:22)
    at Object.load (/usr/local/node_modules/eslint/lib/config/config-file.js:550:20)
    at Config.getLocalConfigHierarchy (/usr/local/node_modules/eslint/lib/config.js:228:44)
    at Config.getConfigHierarchy (/usr/local/node_modules/eslint/lib/config.js:180:43)

This is the failing build.

Expected Behavior

It should run normally and pass, since according to this, you do support eslint-config-prettier, eslint-plugin-prettier and prettier in your ESLint-4 channel

Steps to reproduce

This is happening on the master branch, therefore, please feel free to fork it. Perhaps you want to take a look at the package.json file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions