babel-preset-airbnb
Advanced tools
Comparing version 2.1.1 to 2.2.0
39
index.js
@@ -1,15 +0,24 @@ | ||
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 }], | ||
], | ||
}; | ||
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 }], | ||
], | ||
}; | ||
} |
{ | ||
"name": "babel-preset-airbnb", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "A babel preset for transforming your JavaScript for Airbnb", | ||
@@ -26,2 +26,3 @@ "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", | ||
@@ -28,0 +29,0 @@ "babel-preset-react": "^6.16.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3382
23
10
1
+ Addedbabel-preset-es2015@^6.22.0
+ Addedbabel-plugin-transform-es2015-modules-amd@6.24.1(transitive)
+ Addedbabel-plugin-transform-es2015-modules-systemjs@6.24.1(transitive)
+ Addedbabel-plugin-transform-es2015-modules-umd@6.24.1(transitive)
+ Addedbabel-preset-es2015@6.24.1(transitive)