зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1465476 - Support binary expressions for globals evaluation in ESLint. r=mossop
MozReview-Commit-ID: 66g1ISJ2ML1 --HG-- extra : rebase_source : bb7a61710467dbbae81c6d654d409453edf729f8
This commit is contained in:
Родитель
b3e0d71d8a
Коммит
7f558bc1bd
|
@ -118,6 +118,8 @@ module.exports = {
|
|||
case "AssignmentExpression":
|
||||
return this.getASTSource(node.left) + " = " +
|
||||
this.getASTSource(node.right);
|
||||
case "BinaryExpression":
|
||||
return this.getASTSource(node.left) + " " + node.operator + " " + this.getASTSource(node.right);
|
||||
default:
|
||||
throw new Error("getASTSource unsupported node type: " + node.type);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "eslint-plugin-mozilla",
|
||||
"version": "0.13.0",
|
||||
"version": "0.13.1",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "eslint-plugin-mozilla",
|
||||
"version": "0.13.0",
|
||||
"version": "0.13.1",
|
||||
"description": "A collection of rules that help enforce JavaScript coding standard in the Mozilla project.",
|
||||
"keywords": [
|
||||
"eslint",
|
||||
|
|
Загрузка…
Ссылка в новой задаче