Coder Social home page Coder Social logo

Support StandardJS about ember-cli-eslint HOT 4 CLOSED

ember-cli avatar ember-cli commented on June 18, 2024
Support StandardJS

from ember-cli-eslint.

Comments (4)

alexlafroscia avatar alexlafroscia commented on June 18, 2024

Can you paste your ESLint config here or link a Gist to it? I haven't had issues with ESLint plugins, it should "just work". eslint-plugin-ember-suave has been fine, for example.

from ember-cli-eslint.

alexlafroscia avatar alexlafroscia commented on June 18, 2024

Actually, on second thought, this doesn't seem like an issue with ember-cli-eslint but instead one with eslint-config-standard.

You mentioned that it's picking up the wrong rule, using generator-star-spacing instead of babel/generator-star-spacing. It's likely due to this line in their configuration where they specifically enable the ESLint-provided version if the rule.

If you want a "quick fix" then you can probably do something like this in your configuration (although I have no actually run this to verify, I'm just going based on how ESLint config files are composed):

(
  "extends": "standard",
  "rules": {
    "generator-star-spacing": "off",
    "babel/generator-star-spacing": "error"
  }
}

Or, if you feel that should be the default behavior for that plugin, you could always make a pull request back to eslint-config-standard with the same change.

from ember-cli-eslint.

lolmaus avatar lolmaus commented on June 18, 2024

That does the trick!

Thank you so much @alexlafroscia, I owe you a pint. 🙇

from ember-cli-eslint.

alexlafroscia avatar alexlafroscia commented on June 18, 2024

Happy to help!

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.