Coder Social home page Coder Social logo

Support ESLint 2 about ember-cli-eslint HOT 11 CLOSED

ember-cli avatar ember-cli commented on June 18, 2024
Support ESLint 2

from ember-cli-eslint.

Comments (11)

chriskrycho avatar chriskrycho commented on June 18, 2024

Note: this is blocked by ember-cli/broccoli-lint-eslint#9, since it uses broccoli-lint-eslint under the hood. Once that updates, this will be able to be updated in straightforward fashion.

from ember-cli-eslint.

ehntoo avatar ehntoo commented on June 18, 2024

ESLint 2 will now be installed if you remove and re-install this package. ember-cli/broccoli-lint-eslint#9 has landed, and the dependency here is loosely-enough specified that it'll pull in the new version of broccoli-lint-eslint on a new install.

from ember-cli-eslint.

chriskrycho avatar chriskrycho commented on June 18, 2024

Outstanding! I'll do just that on Monday and confirm it behaves as expected in our installation.

from ember-cli-eslint.

chriskrycho avatar chriskrycho commented on June 18, 2024

Note for anyone else who runs into this on Ember in the next little bit. If you run into Error: Cannot find module 'estraverse-fb', there's another upstream issue affecting the interaction between babel-eslint and eslint proper, having to do with how Babel does some of the monkey-patching. If you're using babel-eslint (as you're likely to be if you're using ESLint and Ember CLI together), you need to do one of the following until the issue is resolved (hopefully this week):

  • temporarily npm install estraverse-fb
  • pin to "eslint": "~2.2.0" in your package.json

You'll want to track that upstream issue to know when to undo that temporary fix.

from ember-cli-eslint.

chriskrycho avatar chriskrycho commented on June 18, 2024

@jonathanKingston tested and confirmed that (with the above qualifications noted) this is resolved. Please feel free to close!

from ember-cli-eslint.

ehntoo avatar ehntoo commented on June 18, 2024

@chriskrycho - I also ran into the estraverse-fb issues last night, and would like to highlight a third option. If your codebase sticks to ES6 and doesn't use any features that the standard eslint parser (Espree) doesn't support, you can stop using babel-eslint entirely. :)

from ember-cli-eslint.

chriskrycho avatar chriskrycho commented on June 18, 2024

@ehntoo Oh, great point. We're using babel-eslint throughout a variety of projects, so not a great fit for us, but a good one in general.

from ember-cli-eslint.

ehntoo avatar ehntoo commented on June 18, 2024

Actually, as I'm dealing with this at work today, it'd be nice if we could get a new release of ember-cli-eslint explicitly pulling the new broccoli filter in so I can stop nuking this manually.

@jonathanKingston - is there anything I can help with to get a new release out?

from ember-cli-eslint.

chriskrycho avatar chriskrycho commented on June 18, 2024

Update on the estraverse-fb issue: it should be resolved as of [email protected], so the underlying problem with babel-eslint should go away, I believe.

from ember-cli-eslint.

alexlafroscia avatar alexlafroscia commented on June 18, 2024

I was able to avoid the estraverse-fb issue by installing [email protected]

from ember-cli-eslint.

BrianSipple avatar BrianSipple commented on June 18, 2024

Closed after ember-cli/broccoli-lint-eslint#28

from ember-cli-eslint.

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.