Skip to content

Commit

Permalink
Eslint allow values to be aligned in object properties declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosbth committed Oct 20, 2017
1 parent 117eaf6 commit cff9a50
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc.json
Expand Up @@ -85,7 +85,8 @@
2,
{
"beforeColon": false,
"afterColon": true
"afterColon": true,
"mode": "minimum"
}
],
"padded-blocks": [
Expand Down
1 change: 1 addition & 0 deletions REVISION.md
Expand Up @@ -4,6 +4,7 @@ Revision history
v0.9.8* (2017-09-18)
---------------------------------------

* Eslint allow values to be aligned in object properties declaration.
* Jscs not require space after keyword function.
* Upgrade eslint.
* Add links to eslint in README.
Expand Down
7 changes: 7 additions & 0 deletions test/object.js
Expand Up @@ -14,6 +14,13 @@
c: 3
};

// align by value
obj = {
a: 1,
be: 2 * 2,
c: 3 * 3
};

// fails
/*
Expand Down

0 comments on commit cff9a50

Please sign in to comment.