Skip to content

Commit d2a16b9

Browse files
committed
Disable JSDoc requirements that are not upheld anyway
1 parent 11a8e3f commit d2a16b9

5 files changed

Lines changed: 13 additions & 2 deletions

File tree

.eslintrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ plugins:
66

77
rules:
88
"@sinonjs/no-prototype-methods/no-prototype-methods": error
9+
"jsdoc/require-param-type": off
10+
"jsdoc/require-jsdoc": off
11+
"jsdoc/tag-lines": off

lib/sinon/proxy-call.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ callProto.invokeCallback = callProto.yield;
261261
* @param exception
262262
* @param id
263263
* @param errorWithCallStack
264+
*
265+
* @returns {object} proxyCall
264266
*/
265267
function createProxyCall(
266268
proxy,

lib/sinon/spy-formatters.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const slice = arrayProto.slice;
1818
* @param matcher
1919
* @param calledArg
2020
* @param calledArgMessage
21+
*
22+
* @returns {string} the colored text
2123
*/
2224
function colorSinonMatchText(matcher, calledArg, calledArgMessage) {
2325
let calledArgumentMessage = calledArgMessage;
@@ -32,8 +34,9 @@ function colorSinonMatchText(matcher, calledArg, calledArgMessage) {
3234
}
3335

3436
/**
35-
*
3637
* @param diff
38+
*
39+
* @returns {string} the colored diff
3740
*/
3841
function colorDiffText(diff) {
3942
const objects = map(diff, function (part) {
@@ -54,6 +57,7 @@ function colorDiffText(diff) {
5457
/**
5558
*
5659
* @param value
60+
* @returns {string} a quoted string
5761
*/
5862
function quoteStringValue(value) {
5963
if (typeof value === "string") {

lib/sinon/util/fake-timers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ const globalObject = require("@sinonjs/commons").global;
88
*
99
* @param config
1010
* @param globalCtx
11+
*
12+
* @returns {object} the clock, after installing it on the global context, if given
1113
*/
1214
function createClock(config, globalCtx) {
1315
let FakeTimersCtx = FakeTimers;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"dev-docs": "cd docs; rsync -r --delete release-source/ releases/dev; npm run serve-docs",
4848
"build-docs": "cd docs; bundle exec jekyll build",
4949
"serve-docs": "cd docs; bundle exec jekyll serve --incremental --verbose --livereload",
50-
"lint": "eslint --max-warnings 101 '**/*.{js,cjs,mjs}'",
50+
"lint": "eslint --max-warnings 0 '**/*.{js,cjs,mjs}'",
5151
"unimported": "unimported .",
5252
"pretest-webworker": "npm run build",
5353
"prebuild": "rimraf pkg && npm run check-dependencies",

0 commit comments

Comments
 (0)