Skip to content

Commit a4d6013

Browse files
JSCS cleanup
1 parent ac6c426 commit a4d6013

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

.jscsrc

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,23 @@
6565
"disallowSpacesInsideParentheses": true,
6666

6767
"disallowMultipleLineBreaks": true,
68-
"disallowNewlineBeforeBlockStatements": true
68+
"disallowNewlineBeforeBlockStatements": true,
69+
"disallowSpaceBeforeComma": true,
70+
"disallowSpaceBeforeSemicolon": true,
71+
72+
"jsDoc": {
73+
"checkAnnotations": true,
74+
"checkParamNames": true,
75+
"requireParamTypes": true,
76+
"checkRedundantParams": true,
77+
"checkReturnTypes": true,
78+
"checkRedundantReturns": true,
79+
"requireReturnTypes": true,
80+
"checkTypes": true,
81+
"checkRedundantAccess": "enforceLeadingUnderscore",
82+
"leadingUnderscoreAccess": true,
83+
"requireHyphenBeforeDescription": true,
84+
"requireNewlineAfterDescription": true,
85+
"requireParamDescription": true
86+
}
6987
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ono (Oh No!)
1313
[![Bower](http://img.shields.io/bower/v/ono.svg)](#bower)
1414
[![License](https://img.shields.io/npm/l/ono.svg)](LICENSE)
1515

16-
[![Sauce Test Status](https://saucelabs.com/browser-matrix/bigstickcarpet-ono.svg)](https://saucelabs.com/u/bigstickcarpet-ono)
16+
[![Browser Compatibility](https://saucelabs.com/browser-matrix/bigstickcarpet-ono.svg)](https://saucelabs.com/u/bigstickcarpet-ono)
1717

1818
Features
1919
--------------------------

tests/helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ beforeEach(function() {
4040
/**
4141
* Invokes the given function for each {@link Ono} method
4242
*
43-
* @param {function} fn
43+
* @param {function} fn - The function that's invoked for each method
4444
*/
4545
function forEachMethod(fn) {
4646
var ono = require('../');
@@ -67,7 +67,7 @@ function forEachMethod(fn) {
6767
/**
6868
* Asserts that a JSON-serialized Error has the expected properties & values.
6969
*
70-
* @param {object} expected
70+
* @param {object} expected - The expected properties & values
7171
* @returns {function}
7272
*/
7373
function matchesJSON(expected) {

0 commit comments

Comments
 (0)