Skip to content
Permalink
Browse files
remove valid jsdoc rule in favour of eslint-plugin-jsdoc
  • Loading branch information
vankop committed Jul 16, 2019
1 parent 036adf0 commit f207cdcb1542e89b3b61eaa21853a8c09842816e
Showing with 21 additions and 22 deletions.
  1. +20 −21 .eslintrc.js
  2. +1 −1 lib/debug/ProfilingPlugin.js
@@ -33,24 +33,6 @@ module.exports = {
"no-loop-func": "warn",
indent: "off",
"no-console": "off",
"valid-jsdoc": [
"error",
{
prefer: {
return: "returns",
prop: "property",
memberof: "DONTUSE",
class: "DONTUSE",
inheritdoc: "DONTUSE",
description: "DONTUSE",
readonly: "DONTUSE"
},
preferType: {
"*": "any"
},
requireReturnType: true
}
],
"node/no-unsupported-features": "error",
"node/no-deprecated-api": "error",
"node/no-missing-import": "error",
@@ -59,7 +41,15 @@ module.exports = {
"node/no-unpublished-require": "error",
"node/process-exit-as-throw": "error",
"jsdoc/require-hyphen-before-param-description": ["error", "never"],
"jsdoc/check-tag-names": "error"
"jsdoc/check-tag-names": "error",
"jsdoc/check-param-names": "error",
"jsdoc/require-param-description": "error",
"jsdoc/require-param-name": "error",
"jsdoc/require-param-type": "error",
"jsdoc/require-param": "error",
"jsdoc/require-returns-description": "error",
"jsdoc/require-returns-type": "error",
"jsdoc/require-returns": "error"
},
settings: {
jsdoc: {
@@ -72,8 +62,17 @@ module.exports = {
return acc;
}, {})),
extends: "extends",
constructor: "constructor"
}
return: "returns",
constructor: "constructor",
prop: "property",
arg: "param",
augments: "extends",
description: false,
desc: false,
inheritdoc: false,
class: false
},
overrideReplacesDocs: false
}
},
overrides: [
@@ -78,8 +78,8 @@ class Profiler {
}

/**
* an object that wraps Tracer and Profiler with a counter
* @typedef {Object} Trace
* @description an object that wraps Tracer and Profiler with a counter
* @property {Tracer} trace instance of Tracer
* @property {number} counter Counter
* @property {Profiler} profiler instance of Profiler

0 comments on commit f207cdc

Please sign in to comment.