{ "type": "File", "start":0,"end":75,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":75}}, "errors": [ "SyntaxError: The only accepted module attribute is `type` (1:50)" ], "program": { "type": "Program", "start":0,"end":75,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":75}}, "sourceType": "module", "interpreter": null, "body": [ { "type": "ImportDeclaration", "start":0,"end":75,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":75}}, "specifiers": [ { "type": "ImportDefaultSpecifier", "start":7,"end":10,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":10}}, "local": { "type": "Identifier", "start":7,"end":10,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":10},"identifierName":"foo"}, "name": "foo" } } ], "source": { "type": "StringLiteral", "start":16,"end":26,"loc":{"start":{"line":1,"column":16},"end":{"line":1,"column":26}}, "extra": { "rawValue": "foo.json", "raw": "\"foo.json\"" }, "value": "foo.json" }, "assertions": [ { "type": "ImportAttribute", "start":36,"end":48,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":48}}, "key": { "type": "Identifier", "start":36,"end":40,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":40},"identifierName":"type"}, "name": "type" }, "value": { "type": "StringLiteral", "start":42,"end":48,"loc":{"start":{"line":1,"column":42},"end":{"line":1,"column":48}}, "extra": { "rawValue": "json", "raw": "\"json\"" }, "value": "json" } }, { "type": "ImportAttribute", "start":50,"end":72,"loc":{"start":{"line":1,"column":50},"end":{"line":1,"column":72}}, "key": { "type": "Identifier", "start":50,"end":64,"loc":{"start":{"line":1,"column":50},"end":{"line":1,"column":64},"identifierName":"hasOwnProperty"}, "name": "hasOwnProperty" }, "value": { "type": "StringLiteral", "start":66,"end":72,"loc":{"start":{"line":1,"column":66},"end":{"line":1,"column":72}}, "extra": { "rawValue": "true", "raw": "\"true\"" }, "value": "true" } } ] } ], "directives": [] } }