configuration-oxlint/rules/jsdoc.ts
gcch f5b489235d 2026-04-03
- eslint OK
- import OK
- jsdoc OK
- node OK
- oxc OK
- promise OK
- typescript OK
- unicorn en cours
2026-04-06 17:38:57 +02:00

56 lines
1.4 KiB
TypeScript

import type { DummyRuleMap } from "oxlint";
const jsDocRules: DummyRuleMap = {
"jsdoc/check-access": "warn",
"jsdoc/check-property-names": "warn",
"jsdoc/check-tag-names": [
"warn",
{
definedTags: ["link"],
typed: true,
},
],
"jsdoc/empty-tags": "warn",
"jsdoc/implements-on-classes": "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",
// Pris en charge par les annotations de type TypeScript.
"jsdoc/require-param-type": "allow",
"jsdoc/require-property": "warn",
"jsdoc/require-property-description": "warn",
"jsdoc/require-property-name": "warn",
// Pris en charge par les annotations de type TypeScript.
"jsdoc/require-property-type": "allow",
"jsdoc/require-returns": [
"warn",
{
checkConstructors: true,
checkGetters: true,
forceRequireReturn: true,
forceReturnsWithAsync: true,
},
],
"jsdoc/require-returns-description": "warn",
"jsdoc/require-returns-type": "allow",
"jsdoc/require-yields": [
"warn",
{
forceRequireYields: false,
withGeneratorTag: false,
},
],
};
export default jsDocRules;