Giter VIP home page Giter VIP logo

Comments (6)

MatteBailey avatar MatteBailey commented on May 21, 2024 1

Addressed in #43.

from babel-preset-airbnb.

ljharb avatar ljharb commented on May 21, 2024

This is intentional; we also use our shared eslint config, which uses eslint's default parser, which only supports stage 4 syntax.

When we support class fields in our style guide, we'll also support it here.

from babel-preset-airbnb.

MatteBailey avatar MatteBailey commented on May 21, 2024

That makes sense. This was the line that confused me:

Currently contains transforms for all standard syntax that is stage 4 (ES2018) or stage 3, except for the following:

Is "standard syntax" the key part there, and why class fields are not supported? From reading that, it's not very clear to me what stage 3 features I can expect to be available.

from babel-preset-airbnb.

ljharb avatar ljharb commented on May 21, 2024

Fair point! Happy to accept a PR that clarifies the language :-) (we clearly haven't kept this list up to date, since class fields reached stage 3 a few months ago)

from babel-preset-airbnb.

MatteBailey avatar MatteBailey commented on May 21, 2024

I could probably make a PR! Question though: does this preset actually include any stage 3 transformations at this point? Looking through the source, I don't see any.

from babel-preset-airbnb.

ljharb avatar ljharb commented on May 21, 2024

Not any more - it used to, but they got promoted to stage 4. I'd probably word it like, all stage 3+ syntax is eligible, but it also has to be permitted by our JS style guide.

from babel-preset-airbnb.

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.