eslint-plugin-misc

ESLint plugin

This project is maintained by iliubinskii

no-shadow

ESLint plugin / no-shadow

This rule wraps “@typescript-eslint/no-shadow” rule, but skips checking enum.

module.exports = {
  plugins: ["misc"],
  rules: {
    "misc/no-shadow": "error"
  }
};

Examples of incorrect code

const x = 1;
function f() { const x = 1; }

Examples of correct code

const x = 1;
enum E { x = "x" }