eslint-config-react-native-wcandillon icon indicating copy to clipboard operation
eslint-config-react-native-wcandillon copied to clipboard

ESLint: 8.8.0 is not happy

Open flexbox opened this issue 3 years ago โ€ข 2 comments

Hey! Thanks for this I am using it all the time on my projects ๐Ÿš€

Here is my issue

As a developer I can setup the last eslint version So that I am up-to-date


If I run the instructions

yarn add eslint --dev

will install

info All dependencies
โ”œโ”€ @eslint/[email protected]
...
โ”œโ”€ [email protected]

Problem

yarn lint
yarn run v1.22.17
$ eslint --ignore-path .gitignore --ext .js,.ts,.tsx .

Oops! Something went wrong! :(

ESLint: 8.8.0

TypeError: Failed to load plugin '@typescript-eslint' declared in '.eslintrc ยป eslint-config-react-native-wcandillon': Class extends value undefined is not a constructor or null
Referenced from: /Users/cerebra/workspace/rn/react-native-bootcamp/hackathon/react-native-heroes/node_modules/eslint-config-react-native-wcandillon/index.js
    at Object.<anonymous> (/Users/cerebra/workspace/rn/react-native-bootcamp/hackathon/react-native-heroes/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint/CLIEngine.js:12:34)
    at Module._compile (/Users/cerebra/workspace/rn/react-native-bootcamp/hackathon/react-native-heroes/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/cerebra/workspace/rn/react-native-bootcamp/hackathon/react-native-heroes/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
    at Object.<anonymous> (/Users/cerebra/workspace/rn/react-native-bootcamp/hackathon/react-native-heroes/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint/index.js:14:14)
    at Module._compile (/Users/cerebra/workspace/rn/react-native-bootcamp/hackathon/react-native-heroes/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)

Solution Downgrade the version will fix the problem

yarn add --dev [email protected] 

Or I think we will to update dependencies

flexbox avatar Feb 08 '22 10:02 flexbox

:tada: This issue has been resolved in version 3.8.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

wcandillon avatar Mar 18 '22 09:03 wcandillon

Reopening since installing the latest version doesn't seem to use the added resolutions

wcandillon avatar Mar 18 '22 09:03 wcandillon

this is fixed finally :)

wcandillon avatar Aug 10 '22 10:08 wcandillon

Confirmed!

image image

Thank you for you work ๐Ÿ™Œ

flexbox avatar Aug 18 '22 08:08 flexbox

no no no no David: Thank You ๐Ÿ˜‰

wcandillon avatar Aug 18 '22 08:08 wcandillon