Skip to content

Updating to eslint v8#1

Merged
JamesMessinger merged 1 commit into
JS-DevTools:masterfrom
philsturgeon:update-eslint-v8
May 11, 2022
Merged

Updating to eslint v8#1
JamesMessinger merged 1 commit into
JS-DevTools:masterfrom
philsturgeon:update-eslint-v8

Conversation

@philsturgeon

@philsturgeon philsturgeon commented May 10, 2022

Copy link
Copy Markdown
Contributor

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