babel-preset-airbnb
Advanced tools
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" |
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
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
9
0
3308
15
- Removedbabel-preset-es2015@^6.22.0
- Removedbabel-plugin-transform-es2015-modules-amd@6.24.1(transitive)
- Removedbabel-plugin-transform-es2015-modules-systemjs@6.24.1(transitive)
- Removedbabel-plugin-transform-es2015-modules-umd@6.24.1(transitive)
- Removedbabel-preset-es2015@6.24.1(transitive)