Skip to Content
  • Website
Codsen
  • Home
  • Open Source
  • Articles
  • About

prevOpen Source→eslint-plugin-row-numnext

eslint-plugin-row-num

Downloads per monthMIT Licenselibera manifesto
  • the top
  • INSTALLATION
  • IDEA
  • CONFIGURATIO…
  • ALSO

Installation

Install it as a “dev” dependency:

npm i -D eslint-plugin-row-num

if you don’t have eslint installed yet, install it too:

npm i -D eslint

Idea

It’s an ESLint plugin which automatically updates row numbers inside every console.log:

idea
idea

Configuration

Use our preset:

"extends": [
  "eslint:recommended",
  "plugin:row-num/recommended"
]

If you do not use a preset you will need to specify individual rules and add extra configuration.

Add "row-num" to the plugins section:

{
  "plugins": ["row-num"]
}

Enable the rule:

"rules": {
  "row-num/correct-row-num": "error",
}

Also

Check out: eslint-plugin-test-num — it updates unit test numbers so that you can find them faster.

↑ back to top
prev next

Copyright

All rights reserved © Roy Revelt 2026
All our open source packages are under MIT licenceopens in a new tab

Activities

🐛 See a bug? Raise an issueopens in a new tab
💘 Check out the Indiewebopens in a new tab and Libera manifestoopens in a new tab