@starkertyp/eslint-no-for-in

1.1.0 • Public • Published

Simple plugin that blocks for..in loops. In my experience they seem to be mostly used by accident when for..of is actually intended.

Usage in eslint.config.js

const noForIn = require("@starkertyp/eslint-no-for-in");

module.exports = [
    {
        files: ["examples/*.js"],
        plugins: {
            "starkertyp": noForIn
        },
        rules: {
            "starkertyp/no-for-in": "error"
        }
    }
]

Changelog

1.1.0

  • Add a fix

Readme

Keywords

none

Package Sidebar

Install

npm i @starkertyp/eslint-no-for-in

Weekly Downloads

0

Version

1.1.0

License

EUPL-1.2

Unpacked Size

16.2 kB

Total Files

5

Last publish

Collaborators

  • starkertyp