babel-preset-airbnb - A babel preset for transforming your JavaScript for Airbnb

  •        57

A babel preset for transforming your JavaScript for Airbnb.We have also enabled object rest/spread, although it is only at stage 2. It will hopefully achieve stage 3 soon.

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

Dependencies:

babel-plugin-syntax-trailing-function-commas : ^6.22.0
babel-plugin-transform-es2015-modules-commonjs : ^6.26.0
babel-plugin-transform-es2015-template-literals : ^6.22.0
babel-plugin-transform-es3-member-expression-literals : ^6.22.0
babel-plugin-transform-es3-property-literals : ^6.22.0
babel-plugin-transform-es5-property-mutators : ^6.24.1
babel-plugin-transform-exponentiation-operator : ^6.24.1
babel-plugin-transform-jscript : ^6.22.0
babel-plugin-transform-object-rest-spread : ^6.26.0
babel-preset-env : ^1.6.0
babel-preset-react : ^6.24.1
object.assign : ^4.0.4

Tags
Implementation
License
Platform

   




Related Projects

javascript - JavaScript Style Guide

  •    Javascript

Note: this guide assumes you are using Babel, and requires that you use babel-preset-airbnb or the equivalent. It also assumes you are installing shims/polyfills in your app, with airbnb-browser-shims or the equivalent.1.1 Primitives: When you access a primitive type you work directly on its value.

minify - :scissors: An ES6+ aware minifier based on the Babel toolchain (beta)

  •    Javascript

An ES6+ aware minifier based on the Babel toolchain.Babel-Minify is consumable via API, CLI, or Babel preset.

language-babel - ES2017, flow, React JSX and GraphQL grammar and transpilation for ATOM

  •    CoffeeScript

Language grammar for all versions of JavaScript including ES2016 and ESNext, JSX syntax as used by Facebook React, Atom's etch and others, as well as optional typed JavaScript using Facebook flow. This package also supports highlighting of GraphQL language constructs when inside certain JavaScript template strings. For .graphql and .gql file support please see language-graphql . The colour of syntax is determined by the theme in use. By default the language-babel package will detect file types .js,.babel,.jsx, .es, .es6, .mjs and .flow. Use the standard ATOM interface to enable it for other file types. This provides a grammar that scopes the file in order to colour the text in a meaningful way. If other JavaScript grammars are enabled these may take precedence over language-babel. Look at the bottom right status bar indicator to determine the language grammar of a file being edited. language-babel will be shown as either Babel or Babel ES6 JavaScript. Clicking the name will allow the grammar for a file to be changed.

babel-standalone - :video_game: Standalone build of Babel for use in non-Node

  •    Javascript

babel-standalone is a standalone build of Babel for use in non-Node.js environments, including browsers. It's bundled with all the standard Babel plugins and presets, and a build of babili (babel-minify) is optionally available too.Note that .babelrc doesn't work in babel-standalone, as no file system access is available. The presets and/or plugins to use must be specified in the options passed to Babel.transform.


babel-preset-env - PSA: this repo has been moved into babel/babel -->

  •    Javascript

This repo will be made read-only, as all of the issues/labels have been moved over as well. Please report any bugs and open pull requests over on the main mono-repo.

generator-babel-boilerplate - A Yeoman generator to author libraries in ES2015 (and beyond!) for Node and the browser

  •    Javascript

A Yeoman generator to author libraries in ES2015 (and beyond!) for Node and the browser.Install yo and this generator globally.

rollup-plugin-babel - Seamless integration between Rollup and Babel

  •    Javascript

Seamless integration between Rollup and Babel.Both approaches have disadvantages – in the first case, on top of the additional configuration complexity, you may end up with Babel's helpers (like classCallCheck) repeated throughout your code (once for each module where the helpers are used). In the second case, transpiling is likely to be slower, because transpiling a large bundle is much more work for Babel than transpiling a set of small files.

js-base64 - Base64 implementation for JavaScript

  •    Javascript

Note js-base64 itself is stand-alone so its package.json has no dependencies.  However, it is also tested on ES6 environment so "babel-preset-es2015": "^6.24.1" is on devDependencies. TypeScript 2.0 type definition was added to the DefinitelyTyped repository.

core-decorators - Library of stage-0 JavaScript decorators (aka ES2016/ES7 decorators but not accurate) inspired by languages that come with built-ins like @​override, @​deprecate, @​autobind, @​mixin and more

  •    Javascript

Library of JavaScript stage-0 decorators (aka ES2016/ES7 decorators but that's not accurate) inspired by languages that come with built-ins like @​override, @​deprecate, @​autobind, @​mixin and more. Popular with React/Angular, but is framework agnostic. Similar to Annotations in Java but unlike Java annotations, decorators are functions which are applied at runtime. This can be consumed by any transpiler that supports stage-0 of the decorators spec, like babel.js version 5. Babel 6 does not yet support decorators natively, but you can include babel-plugin-transform-decorators-legacy or use the applyDecorators() helper.

tower-of-babel - Tower of babel is tour of babel

  •    Javascript

tower-of-babel will show you through a series of exercises that introduce you to ES6 features. This exercises use babel. babel allows you to write code with ES6 syntax.

babel-react-optimize - :rocket: A Babel preset and plugins for optimizing React code.

  •    Javascript

A Babel preset and plugins for optimizing React code. Note: You should use this with babel-runtime and babel-transform-runtime to avoid duplicating the helper code in every file.

react-pdf-js - A React component to wrap PDF.js

  •    Javascript

react-pdf-js provides a component for rendering PDF documents using PDF.js. Written for React 15/16 and ES2015 using the Airbnb style guide.

es6-module-transpiler - Tomorrow’s JavaScript module syntax today

  •    Javascript

This project is part of esnext, which has merged with Babel. All the features of esnext are supported by Babel, and more. All the tests from esnext have been ported over to Babel to ensure that switchers will have minimal code changes to make. The maintainers of esnext will continue working on Babel to bring better spec compliance, ES6 feature support, and performance. If you want a fast tool with bundling support as found in this project, you should check out Rollup. ES6 Module Transpiler is an experimental compiler that allows you to write your JavaScript using a subset of the ES6 module syntax, and compile it into AMD or CommonJS modules.

es6-project-starter-kit - Universal Starter Kit to build any javascript ES6 project/library runnable in nodejs and on any browser

  •    Javascript

javascript 2015/es6/next introduces a lot of new cool features unfortunately not yet available in the current modern browsers. This starter kit contains all the tools you need to let you run your ES6 code on any kind of platform. If you have installed correctly all the nodejs modules you can start writing your javascript modules into the src folder of course using the awesome javascript es6 syntax.

react-starterify - A minimal React JS application starter kit

  •    Javascript

A minimal React JS application starter kit. React Starterify aims to give you a good starting point for your projects. If you're looking for a minimal ES6 (ES2015) React JS starter with nice shallow rendering test examples, this is probably for you.

flow-remove-types - 🚿 Removes Flow type annotations from JavaScript files with speed and simplicity

  •    Javascript

Turn your JavaScript with Flow type annotations into standard JavaScript in an instant with no configuration and minimal setup. Flow provides static type checking to JavaScript which can both help find and detect bugs long before code is deployed and can make code easier to read and more self-documenting. The Flow tool itself only reads and analyzes code. Running code with Flow type annotations requires first removing the annotations which are non-standard JavaScript. Typically this is done via adding a plugin to your Babel configuration, however Babel may be overkill if you're only targetting modern versions of Node.js or just not using the modern ES2015 features that may not be in every browser.

flow-remove-types - 🚿 Removes Flow type annotations from JavaScript files with speed and simplicity

  •    Javascript

Turn your JavaScript with Flow type annotations into standard JavaScript in an instant with no configuration and minimal setup. Flow provides static type checking to JavaScript which can both help find and detect bugs long before code is deployed and can make code easier to read and more self-documenting. The Flow tool itself only reads and analyzes code. Running code with Flow type annotations requires first removing the annotations which are non-standard JavaScript. Typically this is done via adding a plugin to your Babel configuration, however Babel may be overkill if you're only targetting modern versions of Node.js or just not using the modern ES2015 features that may not be in every browser.