How to use eslint-plugin-eslint-comments - 1 common examples

To help you get started, we’ve selected a few eslint-plugin-eslint-comments examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mysticatea / eslint-plugin / lib / foreign-rules / eslint-comments.js View on Github external
/**
 * @author Toru Nagashima
 * See LICENSE file in root directory for full license.
 */
"use strict"

const { rules, utils } = require("eslint-plugin-eslint-comments")

utils.patch("@mysticatea/eslint-comments/no-unused-disable")

module.exports = Object.keys(rules).reduce((obj, ruleId) => {
    obj[`eslint-comments/${ruleId}`] = rules[ruleId]
    return obj
}, {})

eslint-plugin-eslint-comments

Additional ESLint rules for ESLint directive comments.

MIT
Latest version published 4 years ago

Package Health Score

67 / 100
Full package analysis

Popular eslint-plugin-eslint-comments functions