lint: fix quotes, rule

This commit is contained in:
Henry Zhu 2015-06-06 09:21:23 -04:00
parent face6ff6af
commit c15a7c6b65
2 changed files with 7 additions and 6 deletions

View File

@ -17,7 +17,8 @@
"new-cap": 0, "new-cap": 0,
"no-loop-func": 0, "no-loop-func": 0,
"no-unreachable": 0, "no-unreachable": 0,
"no-process-exit": 0 "no-process-exit": 0,
"quotes": [1, "double", "avoid-escape"]
}, },
"env": { "env": {
"node": true, "node": true,

View File

@ -195,19 +195,19 @@ describe("acorn-to-esprima", function () {
}); });
it("default import", function () { it("default import", function () {
parseAndAssertSame("import foo from 'foo';"); parseAndAssertSame('import foo from "foo";');
}); });
it("import specifier", function () { it("import specifier", function () {
parseAndAssertSame("import { foo } from 'foo';"); parseAndAssertSame('import { foo } from "foo";');
}); });
it("import specifier with name", function () { it("import specifier with name", function () {
parseAndAssertSame("import { foo as bar } from 'foo';"); parseAndAssertSame('import { foo as bar } from "foo";');
}); });
it("import bare", function () { it("import bare", function () {
parseAndAssertSame("import 'foo';"); parseAndAssertSame('import "foo";');
}); });
it("export default class declaration", function () { it("export default class declaration", function () {
@ -227,7 +227,7 @@ describe("acorn-to-esprima", function () {
}); });
it("export all", function () { it("export all", function () {
parseAndAssertSame("export * from 'foo';"); parseAndAssertSame('export * from "foo";');
}); });
it("export named", function () { it("export named", function () {