babel-preset-airbnb 2.2.3

A babel preset for transforming your JavaScript for Airbnb

Homepage: https://github.com/airbnb/babel-preset-airbnb

Platform: npm

Language: JavaScript

License: Apache-2.0

Keywords: babel, es6, es2015, javascript

View on registry: https://www.npmjs.com/package/babel-preset-airbnb

Direct download link: https://registry.npmjs.org/babel-preset-airbnb/-/babel-preset-airbn...

Install: npm install [email protected]


babel-preset-airbnb

A babel preset for transforming your JavaScript for Airbnb.

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

  • generators: regenerator-runtime is too heavyweight for our use.
  • async/await: regenerator-runtime is too heavyweight for our use, and async-to-promises is not yet complete enough to be safely used.
  • SIMD: this is a performance feature, so is pretty pointless to polyfill/transpile.
  • lifted template literal restrictions: we do not use tagged template literals, nor implement custom DSLs, otherwise we would enable this.

We have also enabled object rest/spread, although it is only at stage 2. It will hopefully achieve stage 3 soon.

Install

$ npm install --save-dev babel-preset-airbnb

Usage

Via .babelrc (Recommended)

.babelrc

{
  "presets": ["airbnb"]
}

Via CLI

$ babel script.js --presets airbnb

Via Node API

require("babel-core").transform("code", {
  presets: ["airbnb"]
});

Dependencies Requirements Latest Stable Latest Release Licenses
babel-plugin-syntax-trailing-function-commas ^6.13.0 6.22.0 7.0.0-alpha.9 MIT
babel-plugin-transform-es2015-template-literals ^6.8.0 6.22.0 7.0.0-alpha.9 MIT
babel-plugin-transform-es3-member-expression-literals ^6.8.0 6.22.0 7.0.0-alpha.9 MIT
babel-plugin-transform-es3-property-literals ^6.8.0 6.22.0 7.0.0-alpha.9 MIT
babel-plugin-transform-exponentiation-operator ^6.8.0 6.24.1 7.0.0-alpha.9 MIT
babel-plugin-transform-jscript ^6.8.0 6.22.0 7.0.0-alpha.9 MIT
babel-plugin-transform-object-rest-spread ^6.16.0 6.23.0 7.0.0-alpha.9 MIT
babel-preset-es2015 ^6.22.0 6.24.1 7.0.0-alpha.9 MIT
babel-preset-es2015-without-strict ^0.0.4 0.0.4 0.0.4 MIT
babel-preset-react ^6.16.0 6.24.1 7.0.0-alpha.9 MIT
Explore the resolved dependency tree for babel-preset-airbnb 2.2.3
Development Dependencies Requirements Latest Stable Latest Release Licenses
eslint ^3.14.1 3.19.0 4.0.0-alpha.1 MIT
eslint-config-airbnb-base ^11.0.1 11.1.3 11.1.3 MIT
eslint-plugin-import ^2.2.0 2.2.0 2.2.0 MIT
Explore the resolved development dependency tree for babel-preset-airbnb 2.2.3

Sustain

Releases

2.2.3 January 31, 2017
2.2.2 January 30, 2017
2.2.1 January 26, 2017
2.2.0 January 26, 2017
2.1.1 September 28, 2016
2.1.0 September 22, 2016
2.0.0 May 06, 2016
1.1.1 February 11, 2016
1.1.0 February 11, 2016
1.0.1 November 25, 2015
See all 11 releases

Project Statistics

SourceRank 20
Dependencies 10
Dependent projects 471
Dependent repositories 734
Total releases 11
Latest release
First release
Stars 79
Forks 13
Watchers 14
Contributors 1
Repo Size: 22.5 KB

Top Contributors See all

Josh Perez

Something wrong with this page? Make a suggestion

Export .ABOUT file for this library

Last synced: 2017-02-15 18:43:12 UTC

Login to resync this project