GithubHelp home page GithubHelp logo

Comments (8)

YuliyaNovik avatar YuliyaNovik commented on June 2, 2024 1

https://eslint.org/docs/8.0.0/user-guide/migrating-to-8.0.0#remove-cliengine seems to be useful

from prettier-eslint-cli.

YuliyaNovik avatar YuliyaNovik commented on June 2, 2024 1

any updates?

from prettier-eslint-cli.

georgecrawford avatar georgecrawford commented on June 2, 2024 1

Since prettier/prettier-eslint#696 is merged and prettier-eslint supports ESLint v8, what are the chances of this project upgrading eslint and prettier-eslint?

from prettier-eslint-cli.

chrisbobbe avatar chrisbobbe commented on June 2, 2024

Supporting prettier-eslint, prettier, and eslint later than v9.0.2, v1.19.1, and v5.16.0, respectively, is #304. 😕

from prettier-eslint-cli.

haase1020 avatar haase1020 commented on June 2, 2024

I am running into this issue as well when updating to eslint v8.13.0. Any updates or should I wait on updating eslint?

from prettier-eslint-cli.

idahogurl avatar idahogurl commented on June 2, 2024

@haase1020 Support for ESLint 8 is coming (see prettier/prettier-eslint#696). However there was an issue with the publishing process and it didn't push out a new version. In short, do not update to ESLint 8 just yet.

from prettier-eslint-cli.

georgecrawford avatar georgecrawford commented on June 2, 2024

@idahogurl Thanks for your work on this. I'm running the following (all the latest versions, AFAICT):

"eslint": "8.13.0",
"prettier": "2.6.2",
"prettier-eslint": "14.0.0",
"prettier-eslint-cli": "5.0.1",

... and yet I'm still seeing:

$ ./node_modules/.bin/prettier-eslint file.js
prettier-eslint [ERROR]: There was trouble creating the ESLint CLIEngine.
prettier-eslint-cli [ERROR]: There was an error formatting "file.js":
    TypeError: CLIEngine is not a constructor
        at getESLintCLIEngine (./node_modules/prettier-eslint-cli/node_modules/prettier-eslint/dist/utils.js:403:12)
        at getESLintConfig (./node_modules/prettier-eslint-cli/node_modules/prettier-eslint/dist/index.js:210:51)
        at format (./node_modules/prettier-eslint-cli/node_modules/prettier-eslint/dist/index.js:75:71)
        at MapSubscriber.project (./node_modules/prettier-eslint-cli/dist/format-files.js:268:54)
        at MapSubscriber._next (./node_modules/rxjs/internal/operators/map.js:49:35)
        at MapSubscriber.Subscriber.next (./node_modules/rxjs/internal/Subscriber.js:66:18)
        at AsyncSubject.Subject.next (./node_modules/rxjs/internal/Subject.js:60:25)
        at AsyncSubject.complete (./node_modules/rxjs/internal/AsyncSubject.js:53:35)
        at handler (./node_modules/rxjs/internal/observable/bindNodeCallback.js:53:33)
        at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)
failure formatting 1 file with prettier-eslint

from prettier-eslint-cli.

smartdev322 avatar smartdev322 commented on June 2, 2024

hey @georgecrawford same here

    "@nuxtjs/style-resources": "^1.2.1",
    "eslint": "^8.14.0",
    "eslint-config-prettier": "^8.3.0",
    "eslint-plugin-prettier": "^4.0.0",
    "eslint-plugin-vue": "^8.7.1",
    "prettier": "^2.4.1",
    "prettier-eslint-cli": "^5.0.1",

from prettier-eslint-cli.

Related Issues (20)

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.