Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guard against older prettier installation #56

Merged
merged 1 commit into from
Sep 18, 2017
Merged

Guard against older prettier installation #56

merged 1 commit into from
Sep 18, 2017

Conversation

SimenB
Copy link
Contributor

@SimenB SimenB commented Sep 18, 2017

We are on prettier 1.5.2 in a project, so it explodes with new version of the plugin.

Error while loading rule 'prettier/prettier': prettier.clearConfigCache is not a function
TypeError: Error while loading rule 'prettier/prettier': prettier.clearConfigCache is not a function
    at Object.create (/Users/simbekkh/repos/process-exception-handlers/node_modules/eslint-plugin-prettier/eslint-plugin-prettier.js:341:20)
    at Object.keys.forEach.ruleId (/Users/simbekkh/repos/process-exception-handlers/node_modules/eslint/lib/linter.js:957:44)
    at Array.forEach (<anonymous>)
    at Linter._verifyWithoutProcessors (/Users/simbekkh/repos/process-exception-handlers/node_modules/eslint/lib/linter.js:897:35)
    at preprocess.map.textBlock (/Users/simbekkh/repos/process-exception-handlers/node_modules/eslint/lib/linter.js:1019:35)
    at Array.map (<anonymous>)
    at Linter.verify (/Users/simbekkh/repos/process-exception-handlers/node_modules/eslint/lib/linter.js:1018:42)
    at Linter.verifyAndFix (/Users/simbekkh/repos/process-exception-handlers/node_modules/eslint/lib/linter.js:1100:29)
    at processText (/Users/simbekkh/repos/process-exception-handlers/node_modules/eslint/lib/cli-engine.js:173:32)
    at processFile (/Users/simbekkh/repos/process-exception-handlers/node_modules/eslint/lib/cli-engine.js:216:18)

Copy link
Member

@not-an-aardvark not-an-aardvark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants