lint: fix quotes, rule
This commit is contained in:
parent
face6ff6af
commit
c15a7c6b65
@ -17,7 +17,8 @@
|
||||
"new-cap": 0,
|
||||
"no-loop-func": 0,
|
||||
"no-unreachable": 0,
|
||||
"no-process-exit": 0
|
||||
"no-process-exit": 0,
|
||||
"quotes": [1, "double", "avoid-escape"]
|
||||
},
|
||||
"env": {
|
||||
"node": true,
|
||||
|
||||
@ -195,19 +195,19 @@ describe("acorn-to-esprima", function () {
|
||||
});
|
||||
|
||||
it("default import", function () {
|
||||
parseAndAssertSame("import foo from 'foo';");
|
||||
parseAndAssertSame('import foo from "foo";');
|
||||
});
|
||||
|
||||
it("import specifier", function () {
|
||||
parseAndAssertSame("import { foo } from 'foo';");
|
||||
parseAndAssertSame('import { foo } from "foo";');
|
||||
});
|
||||
|
||||
it("import specifier with name", function () {
|
||||
parseAndAssertSame("import { foo as bar } from 'foo';");
|
||||
parseAndAssertSame('import { foo as bar } from "foo";');
|
||||
});
|
||||
|
||||
it("import bare", function () {
|
||||
parseAndAssertSame("import 'foo';");
|
||||
parseAndAssertSame('import "foo";');
|
||||
});
|
||||
|
||||
it("export default class declaration", function () {
|
||||
@ -227,7 +227,7 @@ describe("acorn-to-esprima", function () {
|
||||
});
|
||||
|
||||
it("export all", function () {
|
||||
parseAndAssertSame("export * from 'foo';");
|
||||
parseAndAssertSame('export * from "foo";');
|
||||
});
|
||||
|
||||
it("export named", function () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user