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

Error: Cannot read config file: /src/node_modules/eslint-config-prettier/@typescript-eslint.js #533

Closed
jonahsnider opened this issue Apr 20, 2021 · 0 comments

Comments

@jonahsnider
Copy link
Contributor

Error: Cannot read config file: /src/node_modules/eslint-config-prettier/@typescript-eslint.js
Error: "prettier/@typescript-eslint" has been merged into "prettier" in eslint-config-prettier 8.0.0. See: https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md#version-800-2021-02-21
Referenced from: BaseConfig
    at Object.<anonymous> (/src/node_modules/eslint-config-prettier/@typescript-eslint.js:1:7)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Function.Module._load (node:internal/modules/cjs/loader:828:14)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at module.exports (/src/node_modules/import-fresh/index.js:32:59)
    at loadJSConfigFile (/src/node_modules/@eslint/eslintrc/lib/config-array-factory.js:225:16)
    at loadConfigFile (/src/node_modules/@eslint/eslintrc/lib/config-array-factory.js:309:20)
    at ConfigArrayFactory._loadConfigData (/src/node_modules/@eslint/eslintrc/lib/config-array-factory.js:609:42)

Using TypeScript v4.2.4, XO v0.39.0, Node.js v16.0.0, Prettier v2.2.1.

yarn why eslint-config-prettier prints:

└─ xo@npm:0.39.0                                                       
   └─ eslint-config-prettier@npm:8.2.0 [ed002] (via npm:^8.2.0 [ed002])

Can make an actual reproduction later if needed.

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

No branches or pull requests

1 participant