Coder Social home page Coder Social logo

Comments (10)

amilajack avatar amilajack commented on May 9, 2024 1

Oh yea, that's right. I've updated the rfc the initial comment to reflect this. Thanks for letting me know about this!

from eslint-plugin-compat.

amilajack avatar amilajack commented on May 9, 2024 1

@deecewan Sorry for the late response. Somehow I missed the notification for this. That should be allowed. I just added this example to my initial comment

from eslint-plugin-compat.

ljharb avatar ljharb commented on May 9, 2024

Wouldn't ServiceWorker throw a ReferenceError when it's not defined, unless it's used with typeof?

from eslint-plugin-compat.

ljharb avatar ljharb commented on May 9, 2024

In other words, duck-typing should only be allowed when chained off of a definitely-present object.

from eslint-plugin-compat.

deecewan avatar deecewan commented on May 9, 2024

what would happen in this case:

if (String.prototype.includes) {
  if ('some'.includes('e')) {
    // do some action
  }
}

In this case, you've validated that the function exists before using it.

from eslint-plugin-compat.

TrevorBurnham avatar TrevorBurnham commented on May 9, 2024

@amilajack Say, we're very interested in this feature at my company. Have you made any headway? If you need help, me and some of my colleagues would be happy to roll up our sleeves!

from eslint-plugin-compat.

SalimBensiali avatar SalimBensiali commented on May 9, 2024

Hi @amilajack, I am also interested in this feature, has any progress been made since? Would you like any contribution? Cheers

from eslint-plugin-compat.

amilajack avatar amilajack commented on May 9, 2024

@SalimBensiali I always love contributions. Unfortunately I don't have enough time to contribute to this project. Would really love if anyone could work on this!

from eslint-plugin-compat.

SalimBensiali avatar SalimBensiali commented on May 9, 2024

No worries @amilajack , is there an initial branch, POC? Is this issue here the one source of truth? Happy to look at this. Cheers.

from eslint-plugin-compat.

amilajack avatar amilajack commented on May 9, 2024

Nope, nothing yet

from eslint-plugin-compat.

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.