Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-preset-airbnb

Package Overview
Dependencies
Maintainers
5
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-airbnb - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

39

index.js

@@ -1,24 +0,15 @@

module.exports = function(context, options) {
var es2015preset;
if (options && options.modules === false) {
es2015preset = ['es2015', { modules: false }];
} else {
es2015preset = 'es2015-without-strict';
}
return {
presets: [
es2015preset,
'react',
],
plugins: [
['transform-es2015-template-literals', { spec: true }],
'transform-es3-member-expression-literals',
'transform-es3-property-literals',
'transform-jscript',
'transform-exponentiation-operator',
'syntax-trailing-function-commas',
['transform-object-rest-spread', { useBuiltIns: true }],
],
};
}
module.exports = {
presets: [
require('babel-preset-es2015-without-strict'),
require('babel-preset-react'),
],
plugins: [
[require('babel-plugin-transform-es2015-template-literals'), { spec: true }],
require('babel-plugin-transform-es3-member-expression-literals'),
require('babel-plugin-transform-es3-property-literals'),
require('babel-plugin-transform-jscript'),
require('babel-plugin-transform-exponentiation-operator'),
require('babel-plugin-syntax-trailing-function-commas'),
[require('babel-plugin-transform-object-rest-spread'), { useBuiltIns: true }],
],
};
{
"name": "babel-preset-airbnb",
"version": "2.2.0",
"version": "2.2.1",
"description": "A babel preset for transforming your JavaScript for Airbnb",

@@ -26,3 +26,2 @@ "main": "index.js",

"babel-plugin-transform-object-rest-spread": "^6.16.0",
"babel-preset-es2015": "^6.22.0",
"babel-preset-es2015-without-strict": "^0.0.4",

@@ -29,0 +28,0 @@ "babel-preset-react": "^6.16.0"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc