Skip to content

Commit

Permalink
Merge pull request fex-team#24 from romoo/master
Browse files Browse the repository at this point in the history
update jscs deprecated rules
  • Loading branch information
nwind committed Jan 24, 2016
2 parents 464069c + 9ebff53 commit 9150665
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .jscsrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@
],

// 对象键值的 ":" 后「MUST」使用空格
"requireSpaceAfterObjectKeys": true,
"requireSpaceBeforeObjectValues": true,

// 对象键值的 ":" 前「MUST NOT」使用空格
// `,` 和 `;` 前面不允许「MUST NOT」使用空格。
"requireLeftStickedOperators": [ ":", ",", ";" ],
"disallowSpaceBeforeBinaryOperators": [
":",
",",
";"
],

// 二元运算符前后「MUST」使用空格
"requireSpaceBeforeBinaryOperators": [
Expand Down

0 comments on commit 9150665

Please sign in to comment.