Code Monkey home page Code Monkey logo

Comments (9)

michalsnik avatar michalsnik commented on May 19, 2024

cc @Turbo87 ☝️

from eslint-plugin-ember.

t-sauer avatar t-sauer commented on May 19, 2024

You can already do this with ESLint with this rule:

'no-shadow': ['error', { 'builtinGlobals': true }]

from eslint-plugin-ember.

michalsnik avatar michalsnik commented on May 19, 2024

Oh, true @t-sauer. Then I think we should add this to recommended config.

from eslint-plugin-ember.

Turbo87 avatar Turbo87 commented on May 19, 2024

Then I think we should add this to recommended config.

that would require a breaking change release again and I'm very much against that in the foreseeable future. IMHO we should only do breaking change releases if we actually need to break how a rule behaves, the recommended config should ideally live outside of this repo/project.

from eslint-plugin-ember.

Turbo87 avatar Turbo87 commented on May 19, 2024

@t-sauer the potential advantage of having a custom rule would be that it can be --fix-able, but it's probably not worth it in this case 🤔

from eslint-plugin-ember.

kevinkucharczyk avatar kevinkucharczyk commented on May 19, 2024

I found that there was a similar suggestion made to the Airbnb eslint base and it was not merged, with this as the reasoning: airbnb/javascript#667 (comment)
So similarly, I don't think we should be including the builtinGlobals option in our configuration.

from eslint-plugin-ember.

jbandura avatar jbandura commented on May 19, 2024

I think that having a dedicated fixable rule just for the ember object, string, etc. might be a good idea, I'd personally find it valuable.

from eslint-plugin-ember.

michalsnik avatar michalsnik commented on May 19, 2024

Ok, so it looks like indeed having a dedicated rule will be most valuable in this case.

from eslint-plugin-ember.

jbandura avatar jbandura commented on May 19, 2024

Picking this up then - will probably make a PR around saturday/sunday

from eslint-plugin-ember.

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.