2026-04-03
- eslint OK - import OK - jsdoc OK - node OK - oxc OK - promise OK
This commit is contained in:
parent
93dd909919
commit
c29dff40d8
15 changed files with 879 additions and 377 deletions
|
|
@ -7,20 +7,48 @@ const jsDocRules: DummyRuleMap = {
|
|||
"warn",
|
||||
{
|
||||
definedTags: ["link"],
|
||||
typed: true,
|
||||
},
|
||||
],
|
||||
"jsdoc/empty-tags": "warn",
|
||||
"jsdoc/implements-on-classes": "warn",
|
||||
"jsdoc/no-defaults": "warn",
|
||||
"jsdoc/require-param": "warn",
|
||||
"jsdoc/no-defaults": ["warn", { noOptionalParamNames: true }],
|
||||
"jsdoc/require-param": [
|
||||
"warn",
|
||||
{
|
||||
checkConstructors: true,
|
||||
checkDestructured: true,
|
||||
checkDestructuredRoots: true,
|
||||
checkGetters: true,
|
||||
checkRestProperty: true,
|
||||
checkSetters: true,
|
||||
},
|
||||
],
|
||||
"jsdoc/require-param-description": "warn",
|
||||
"jsdoc/require-param-name": "warn",
|
||||
"jsdoc/require-param-type": "warn",
|
||||
"jsdoc/require-property": "warn",
|
||||
"jsdoc/require-property-description": "warn",
|
||||
"jsdoc/require-property-name": "warn",
|
||||
"jsdoc/require-returns": "warn",
|
||||
"jsdoc/require-property-type": "warn",
|
||||
"jsdoc/require-returns": [
|
||||
"warn",
|
||||
{
|
||||
checkConstructors: true,
|
||||
checkGetters: true,
|
||||
forceRequireReturn: true,
|
||||
forceReturnsWithAsync: true,
|
||||
},
|
||||
],
|
||||
"jsdoc/require-returns-description": "warn",
|
||||
"jsdoc/require-yields": "warn",
|
||||
"jsdoc/require-returns-type": "warn",
|
||||
"jsdoc/require-yields": [
|
||||
"warn",
|
||||
{
|
||||
forceRequireYields: false,
|
||||
withGeneratorTag: false,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default jsDocRules;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue