add commonStandard module formatter - fixes #675

will be merged into strict formatters in next major
TODO: rewrite all module formatters as they've gotten out of han
This commit is contained in:
Sebastian McKenzie
2015-02-07 10:31:52 +11:00
parent 726451f86f
commit f2ae88af93
11 changed files with 64 additions and 20 deletions

View File

@@ -0,0 +1,3 @@
export function foo() {}
export default foo;
export { foo as default, foo };

View File

@@ -0,0 +1,7 @@
"use strict";
exports.foo = foo;
function foo() {}
exports["default"] = foo;
exports["default"] = foo;
exports.foo = foo;

View File

@@ -0,0 +1,4 @@
import foo from "foo";
import { default as foo } from "foo";
import { foo } from "foo";
import * as foo from "foo";

View File

@@ -0,0 +1,8 @@
"use strict";
var _foo = require("foo");
var foo = _foo["default"];
var foo = _foo["default"];
var foo = _foo.foo;
var foo = _foo;

View File

@@ -0,0 +1,3 @@
{
"modules": "commonStandard"
}