configuration-oxlint/rules/jsdoc.ts
gcch c29dff40d8 2026-04-03
- eslint OK
- import OK
- jsdoc OK
- node OK
- oxc OK
- promise OK
2026-04-04 10:49:43 +02:00

54 lines
1.3 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",
"jsdoc/require-param-type": "warn",
"jsdoc/require-property": "warn",
"jsdoc/require-property-description": "warn",
"jsdoc/require-property-name": "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-returns-type": "warn",
"jsdoc/require-yields": [
"warn",
{
forceRequireYields: false,
withGeneratorTag: false,
},
],
};
export default jsDocRules;