Kai Cataldo 75c2300c28
Add @babel/eslint-plugin-development-internal (#11376)
* Add @babel/eslint-plugin-internal

* Add dry-error-messages rule

* Address feedback

* Enable new rule

* fix author field

* Fix errors

* Add readme

* Add example configuration

* Handle directories

* run make bootstrap

* More updates!

* Fix errors

* Update tests

* Fix CI race condition
2020-06-22 19:43:29 -04:00

65 lines
2.4 KiB
JSON

{
"type": "File",
"start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
"errors": [
"SyntaxError: Can not use 'yield' as identifier inside a generator (2:3)",
"SyntaxError: Binding invalid left-hand side in function parameter list (2:3)"
],
"program": {
"type": "Program",
"start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
"id": {
"type": "Identifier",
"start":10,"end":12,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":12},"identifierName":"fn"},
"name": "fn"
},
"generator": true,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":15,"end":38,"loc":{"start":{"line":1,"column":15},"end":{"line":3,"column":1}},
"body": [
{
"type": "ExpressionStatement",
"start":19,"end":36,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":19}},
"expression": {
"type": "ArrowFunctionExpression",
"start":19,"end":35,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":18}},
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "YieldExpression",
"start":20,"end":28,"loc":{"start":{"line":2,"column":3},"end":{"line":2,"column":11}},
"delegate": false,
"argument": {
"type": "Identifier",
"start":26,"end":28,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":11},"identifierName":"fn"},
"name": "fn"
}
}
],
"body": {
"type": "BlockStatement",
"start":33,"end":35,"loc":{"start":{"line":2,"column":16},"end":{"line":2,"column":18}},
"body": [],
"directives": []
}
}
}
],
"directives": []
}
}
],
"directives": []
}
}