@isentinel/eslint-plugin-comment-length
Version:
42 lines • 1.38 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.configs = exports.rules = void 0;
const rule_1 = require("./rules/limit-multi-line-comments/rule");
const rule_2 = require("./rules/limit-single-line-comments/rule");
const rule_3 = require("./rules/limit-tagged-template-literal-comments/rule");
exports.rules = {
"limit-single-line-comments": rule_2.limitSingleLineCommentsRule,
"limit-multi-line-comments": rule_1.limitMultiLineCommentsRule,
"limit-tagged-template-literal-comments": rule_3.limitTaggedTemplateLiteralCommentsRule,
};
exports.configs = {
recommended: {
plugins: ["comment-length"],
rules: {
"comment-length/limit-single-line-comments": ["warn"],
"comment-length/limit-multi-line-comments": ["warn"],
},
},
"flat/recommended": {
files: [
"**/*.js",
"**/*.mjs",
"**/*.jsx",
"**/*.ts",
"**/*.mts",
"**/*.tsx",
],
plugins: {
"comment-length": require("."),
},
rules: {
"comment-length/limit-single-line-comments": ["warn"],
"comment-length/limit-multi-line-comments": ["warn"],
},
},
};
exports.default = {
rules: exports.rules,
configs: exports.configs,
};
//# sourceMappingURL=index.js.map