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.1 to 2.2.2

.eslintrc

38

index.js

@@ -1,15 +0,25 @@

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 }],
],
'use strict';
module.exports = (context, options) => {
let preset;
if (options && options.modules === false) {
preset = require('babel-preset-es2015').buildPreset(null, { modules: false });
} else {
preset = require('babel-preset-es2015-without-strict');
}
return {
presets: [
preset,
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.1",
"version": "2.2.2",
"description": "A babel preset for transforming your JavaScript for Airbnb",

@@ -26,5 +26,17 @@ "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",
"babel-preset-react": "^6.16.0"
},
"devDependencies": {
"eslint": "^3.14.1",
"eslint-config-airbnb-base": "^11.0.1",
"eslint-plugin-import": "^2.2.0"
},
"scripts": {
"pretest": "npm run lint",
"test": "npm run tests-only",
"tests-only": "echo 'no tests';",
"lint": "eslint ."
}
}
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