Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
Preset: add more comma rules to jquery and airbnb presets
Browse files Browse the repository at this point in the history
  • Loading branch information
markelog committed Oct 2, 2015
1 parent ad9dd8d commit 94f175e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions presets/airbnb.json
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
"disallowMixedSpacesAndTabs": true, "disallowMixedSpacesAndTabs": true,
"disallowTrailingWhitespace": true, "disallowTrailingWhitespace": true,
"requireTrailingComma": { "ignoreSingleLine": true }, "requireTrailingComma": { "ignoreSingleLine": true },
"disallowSpaceBeforeComma": true,

This comment has been minimized.

Copy link
@markelog

markelog Oct 12, 2015

Author Member

Nice catch! Would you like to send us pull request?

"requireSpaceAfterComma": true,
"disallowYodaConditions": true, "disallowYodaConditions": true,
"disallowKeywords": [ "with" ], "disallowKeywords": [ "with" ],
"disallowKeywordsOnNewLine": ["else"], "disallowKeywordsOnNewLine": ["else"],
Expand Down
1 change: 1 addition & 0 deletions presets/jquery.json
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"disallowMultipleLineStrings": true, "disallowMultipleLineStrings": true,
"disallowTrailingComma": true, "disallowTrailingComma": true,
"disallowSpaceBeforeComma": true, "disallowSpaceBeforeComma": true,
"requireSpaceAfterComma": true,


"requireSpaceBeforeBlockStatements": true, "requireSpaceBeforeBlockStatements": true,
"requireSpacesInFunctionExpression": { "requireSpacesInFunctionExpression": {
Expand Down

0 comments on commit 94f175e

Please sign in to comment.