Comments (6)
Addressed in #43.
from babel-preset-airbnb.
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.
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.
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.
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.
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)
- Switch from es2015 presets to babel-preset-env
- An in-range update of eslint-plugin-import is breaking the build 🚨
- Remove `debug: true` from babel-preset-env config HOT 1
- Breaking changes in this project HOT 6
- An in-range update of eslint is breaking the build 🚨 HOT 2
- An in-range update of eslint is breaking the build 🚨 HOT 15
- How to config it to support es2017? HOT 3
- This repository is not compatible with "babel-cli": "7.0.0-beta.0" and "babel-preset-env": "^2.0.0-beta.0" HOT 6
- webpack (3) return with UglifyJS error HOT 3
- Version 10 of node.js has been released
- about template literals HOT 2
- object rest/spread has been in ES2018 HOT 2
- ReferenceError: Unknown plugin "babel-plugin-transform-strict-mode" HOT 6
- An in-range update of babel7 is breaking the build 🚨 HOT 1
- ImportDeclaration / ExportDeclaration Conflict HOT 8
- Usage with @babel/polyfill HOT 2
- "Parsing error: Unexpected token *" with v8.2.2 in Node 6 HOT 3
- BUG : Warning import with version 4.0.1 HOT 3
- Error: Cannot find module '@babel/runtime/helpers/interopRequireWildcard' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel-preset-airbnb.