Skip to content

Commit

Permalink
Backport lint config options from real repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamvy-google committed Apr 29, 2016
1 parent 59f0d6a commit fc09744
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .jscsrc
Expand Up @@ -3,6 +3,11 @@
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~"],
"requireSpaceAfterPrefixUnaryOperators": ["!"],
"disallowSpacesInsideParentheses": null,
"disallowSpacesInsideObjectBrackets": null,
"requireSpacesInsideObjectBrackets": "all",
"disallowMultipleLineBreaks": null,
"requireSpacesInsideArrayBrackets": "all",
"disallowSpacesInsideArrayBrackets": null,
"disallowTrailingComma": true,
"requireCurlyBraces": [
"catch",
Expand All @@ -15,7 +20,9 @@
mark: "'",
escape: true
},

"jsDoc": {
"checkAnnotations": "jsdoc3"
},

"foamExplodedStatements": true,
"foamRequireCurlyBraces": true,
Expand Down
7 changes: 6 additions & 1 deletion .jshintrc
Expand Up @@ -9,15 +9,20 @@
"trailing": true,
"undef": true,
"unused": true,
"shadow": true,
"unused": false,

"proto": true,

"globals": {
"console": true,
"describe": true,
"beforeEach": true,
"afterEach": true,
"expect": true,
"foam": true,
"global": true,
"it": true
"it": true,
"require": true
}
}

0 comments on commit fc09744

Please sign in to comment.