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

Updating to eslint v8 #1

Merged
merged 1 commit into from
May 11, 2022
Merged

Updating to eslint v8 #1

merged 1 commit into from
May 11, 2022

Conversation

philsturgeon
Copy link
Contributor

@philsturgeon philsturgeon commented May 10, 2022

Trying to release swagger parser and getting this:

npm run lint

> @apidevtools/swagger-parser@10.0.3 lint
> eslint lib test online/src/js


Oops! Something went wrong! :(

ESLint: 8.4.0

TypeError: Failed to load parser '@typescript-eslint/parser' declared in '.eslintrc.yml » @jsdevtools/eslint-config#overrides[0]': Class extends value undefined is not a constructor or null
    at Object.<anonymous> (/Users/phil/src/swagger-parser/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint/CLIEngine.js:12:34)
    at Module._compile (/Users/phil/src/swagger-parser/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (/Users/phil/src/swagger-parser/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
    at Object.<anonymous> (/Users/phil/src/swagger-parser/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint/index.js:14:14)
    at Module._compile (/Users/phil/src/swagger-parser/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)

According to StackOverflow I need to do this.

https://stackoverflow.com/questions/69513869/eslint-8-0-0-failed-to-load-plugin-typescript-eslint

Require TypeScript v4, and eslint v8.
@philsturgeon philsturgeon changed the title BREAKING: Dropped node 10 support Updating to eslint v8 May 10, 2022
@JamesMessinger JamesMessinger merged commit 6780d8a into JS-DevTools:master May 11, 2022
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