tslint-to-eslint-config
Version:
Converts your TSLint configuration to the closest reasonable ESLint equivalent.
23 lines (22 loc) • 765 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertJSDocFormat = exports.JSDocNoticeMsg = void 0;
exports.JSDocNoticeMsg =
"ESLint does not support enforcing the first line of multiline JSDoc comments be empty.";
const convertJSDocFormat = () => {
const ruleNames = [
"jsdoc/check-alignment",
"jsdoc/check-indentation",
"jsdoc/newline-after-description",
];
const mappedRuleNames = ruleNames.map((ruleName) => {
return { ruleName };
});
return {
rules: [...mappedRuleNames],
notices: [exports.JSDocNoticeMsg],
plugins: ["eslint-plugin-jsdoc"],
};
};
exports.convertJSDocFormat = convertJSDocFormat;
//# sourceMappingURL=jsdoc-format.js.map