babel-preset-airbnb
Advanced tools
Comparing version 2.2.1 to 2.2.2
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 ." | ||
} | ||
} |
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
4893
7
24
10
3
+ 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)