eslint-plugin-comment-length
Version:
An ESLint plugin that provides rules that limit the line length of your comments
54 lines (51 loc) • 1.37 kB
JavaScript
import { limitMultiLineCommentsRule } from './rules/limit-multi-line-comments/rule.js';
import { limitSingleLineCommentsRule } from './rules/limit-single-line-comments/rule.js';
import { limitTaggedTemplateLiteralCommentsRule } from './rules/limit-tagged-template-literal-comments/rule.js';
const rules = {
"limit-single-line-comments": limitSingleLineCommentsRule,
"limit-multi-line-comments": limitMultiLineCommentsRule,
"limit-tagged-template-literal-comments": limitTaggedTemplateLiteralCommentsRule
};
const plugin = {
meta: {
name: "eslint-plugin-comment-length",
version: "2.0.0"
},
rules
};
const 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": plugin
},
rules: {
"comment-length/limit-single-line-comments": ["warn"],
"comment-length/limit-multi-line-comments": ["warn"]
}
}
};
var index = {
meta: {
name: "eslint-plugin-comment-length",
version: "2.0.0"
},
rules,
configs
};
export { configs, index as default, rules };
//# sourceMappingURL=index.js.map