Giter Site home page Giter Site logo

Comments (13)

ScottAgirs avatar ScottAgirs commented on July 26, 2024 2

SOLUTION / TRACKER

To resolve this issue, we need to wait for the rest of the ecosystem to release support for ESLint V8.

## Progress Tracker

from eslint-config.

ScottAgirs avatar ScottAgirs commented on July 26, 2024 2

Support for ESLint v8 eslint-plugin-import was relased in v2.25.0.

Thanks so much for the heads-up! Added to #11

from eslint-config.

ScottAgirs avatar ScottAgirs commented on July 26, 2024 2

SOLUTION/TRACKER is updated with references.

from eslint-config.

ScottAgirs avatar ScottAgirs commented on July 26, 2024 1

Hello @rtritto thank you for reporting this, until early/mid November it may be a little bit tricky to get to this, but will look into this as soon as possible.

If anyone else is experiencing this issue, please add to this thread. 🙏🏼

from eslint-config.

ahmadi-akbar avatar ahmadi-akbar commented on July 26, 2024 1

+1 same here

i've no problem with eslint version 7.32.0
after update to version 8.0.0 i faced this error

version

eslint: ^8.0.0
@ijsto/eslint-config: ^4.0.6

Step to reproduce

yarn eslint ./**.js

result

yarn run v1.22.15
$ D:\p-next\node_modules\.bin\eslint .\src\

Oops! Something went wrong! :(

ESLint: 8.0.0

Error: Cannot read config file: D:\p-next\node_modules\@ijsto\eslint-config\index.js
Error: Failed to patch ESLint because the calling module was not recognized.
If you are using a newer ESLint version that may be unsupported, please create a GitHub issue:        
https://github.com/microsoft/rushstack/issues
Referenced from: D:\p-next\.eslintrc.js
    at Object.<anonymous> (D:\p-next\node_modules\@rushstack\eslint-patch\lib\modern-module-resolution.js:58:19)
    at Module._compile (D:\p-next\node_modules\v8-compile-cache\v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
    at Module.load (internal/modules/cjs/loader.js:937:32)
    at Function.Module._load (internal/modules/cjs/loader.js:778:12)
    at Module.require (internal/modules/cjs/loader.js:961:19)
    at require (D:\p-next\node_modules\v8-compile-cache\v8-compile-cache.js:159:20)    at Object.<anonymous> (D:\p-next\node_modules\@rushstack\eslint-patch\modern-module-resolution.js:1:63)
    at Module._compile (D:\p-next\node_modules\v8-compile-cache\v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

from eslint-config.

ScottAgirs avatar ScottAgirs commented on July 26, 2024 1

@rtritto thank you for your feedback and help, merged with 2f09294.

Cheers,
Closing for now.

from eslint-config.

rtritto avatar rtritto commented on July 26, 2024 1

@ScottAgirs I saw the commit, you should never change directly version of a dependency in package.json, you must use upgrade/update option command of the package manager (npm/yarn etc).
Please, delete yarn.lock and run yarn install to regenerate dependencies in the new yarn.lock.

from eslint-config.

rtritto avatar rtritto commented on July 26, 2024

Support for ESLint v8 in eslint-plugin-import was relased in v2.25.0.

from eslint-config.

ScottAgirs avatar ScottAgirs commented on July 26, 2024

The latest version 4.2.7 seems to have addressed the issue.

To update you can use

npx install-peerdeps --dev @ijsto/eslint-config@latest

If you run into any bug, please open a new issue and it will be addressed with a patch version.

from eslint-config.

rtritto avatar rtritto commented on July 26, 2024

After install (yarn add eslint @ijsto/eslint-config), I got:

➤ YN0060: │ test-eslint@workspace:. provides eslint (pf3766) with version 8.2.0, which doesn't satisfy what @ijsto/eslint-config and some of its descendants request
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code

yarn explain peer-requirements pf3766

➤ YN0000: test-eslint@workspace:. provides eslint@npm:8.2.0 with version 8.2.0, which doesn't satisfy the following requirements:

➤ YN0000: @ijsto/eslint-config@npm:4.2.7 [0f3ca]       → ^7.25.0 || ^8.0.0                                          ✓
➤ YN0000: eslint-config-airbnb-base@npm:14.2.1 [943ee] → ^5.16.0 || ^6.8.0 || ^7.2.0                                ✘
➤ YN0000: eslint-config-airbnb@npm:18.2.1 [41e81]      → ^5.16.0 || ^6.8.0 || ^7.2.0                                ✘
➤ YN0000: eslint-config-prettier@npm:8.3.0 [41e81]     → >=7.0.0                                                    ✓
➤ YN0000: eslint-plugin-es@npm:3.0.1 [9598e]           → >=4.19.1                                                   ✓
➤ YN0000: eslint-plugin-import@npm:2.25.3 [41e81]      → ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8                 ✓
➤ YN0000: eslint-plugin-jsx-a11y@npm:6.5.1 [41e81]     → ^3 || ^4 || ^5 || ^6 || ^7 || ^8                           ✓
➤ YN0000: eslint-plugin-node@npm:11.1.0 [41e81]        → >=5.16.0                                                   ✓
➤ YN0000: eslint-plugin-prettier@npm:4.0.0 [41e81]     → >=7.28.0                                                   ✓
➤ YN0000: eslint-plugin-react-hooks@npm:4.3.0 [41e81]  → ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 ✓
➤ YN0000: eslint-plugin-react@npm:7.27.0 [41e81]       → ^3 || ^4 || ^5 || ^6 || ^7 || ^8                           ✓

➤ YN0000: Note: these requirements start with @ijsto/eslint-config@npm:4.2.7 [0f3ca]

Plugins that need support to Eslint v8:

  • eslint-config-airbnb-base: should be updated to v15.0.0
  • eslint-config-airbnb: not yet released

FYI @ScottAgirs

from eslint-config.

ScottAgirs avatar ScottAgirs commented on July 26, 2024

@rtritto thank you for reporting this. Strange, I cannot reproduce this on my end, could you please share your package.json?

If anyone else is experiencing same issue, please chime in

from eslint-config.

rtritto avatar rtritto commented on July 26, 2024

My package.json only have eslint and @ijsto/eslint-config as dependencies.
eslint-config-airbnb v19.0.0 was released, simply update it in the package.json of @ijsto/eslint-config.
eslint-config-airbnb-base is a dependency of eslint-config-airbnb (already updated in v19.0.0).

from eslint-config.

ScottAgirs avatar ScottAgirs commented on July 26, 2024

Hey @rtritto thanks again for the pointers - duly noted! I have few improvements in mind for this package, including proper semver release mechanism, that surely is no excuse not to do things in a proper way! :)

If you're open to contributing and suggesting some improvements, please ping me on twitter.com/scottagirs - would love to chat!

Also please feel free to open a PR, if you find any areas for improvements/fixes.

from eslint-config.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.