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

Fixed eslint extension setting #493

Merged
merged 1 commit into from
Feb 19, 2023
Merged

Conversation

tlahav
Copy link
Contributor

@tlahav tlahav commented Oct 18, 2022

Cloning the repo and attempting to run the 'build' script crashes with the error below. The issue, as explained in ESlint Config Update is that we are now to use 'prettier' instead of the older, 'prettier/@typescript-eslint'.

Error details:
ESLint: 8.25.0

Error: Cannot read config file: /home/tom/source/opensource/json-schema-to-typescript/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: /home/tom/source/opensource/json-schema-to-typescript/.eslintrc.json
at Object. (/home/tom/source/opensource/json-schema-to-typescript/node_modules/eslint-config-prettier/@typescript-eslint.js:1:7)
at Module._compile (node:internal/modules/cjs/loader:1120:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1174:10)
at Module.load (node:internal/modules/cjs/loader:998:32)
at Module._load (node:internal/modules/cjs/loader:839:12)
at Module.require (node:internal/modules/cjs/loader:1022:19)
at module.exports [as default] (/home/tom/source/opensource/json-schema-to-typescript/node_modules/import-fresh/index.js:32:59)
at loadJSConfigFile (/home/tom/source/opensource/json-schema-to-typescript/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2562:47)
at loadConfigFile (/home/tom/source/opensource/json-schema-to-typescript/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2646:20)
at ConfigArrayFactory._loadConfigData (/home/tom/source/opensource/json-schema-to-typescript/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2963:42)

Copy link
Owner

@bcherny bcherny left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

@bcherny bcherny merged commit 351ee06 into bcherny:master Feb 19, 2023
@bcherny
Copy link
Owner

bcherny commented Feb 19, 2023

Published v11.0.4

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.

2 participants