Registry / testing / eslint-plugin-ignore-erb

eslint-plugin-ignore-erb

JSON →
library0.1.1jsnpmunverified

An ESLint plugin (v0.1.1, last updated ~2016, no recent releases) that suppresses all linting errors on lines containing ERB (<% %>) expressions in Ruby on Rails views. It works by registering a custom rule that overrides reported problems. Only compatible with ESLint < 9.x. No longer maintained; superseded by better parsing solutions or direct ESLint ignore comments.

npm install eslint-plugin-ignore-erb
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-IGNO
E
eslint-plugin-ignore-erb
testingjavascriptv0.1.1
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

plugin
// No import needed; add to .eslintrc plugins array as 'ignore-erb'
const plugin = require('eslint-plugin-ignore-erb')
Plugins are loaded via ESLint config, not programmatic require. Using require directly may not work as expected.
rules
// Not imported; the plugin provides a rule 'ignore-erb' referenced in config
import { rules } from 'eslint-plugin-ignore-erb'
The plugin's internal rules are not exported; they are registered via plugin name.
configs
// Not applicable; no configs exported
const configs = require('eslint-plugin-ignore-erb').configs
This plugin does not export any configs or processors.

Shows how to configure the plugin in .eslintrc to ignore ERB expressions on lines.

// .eslintrc.json { "plugins": ["ignore-erb"], "rules": { "ignore-erb/ignore-erb": "error" } } // Example ERB file (app/views/test.html.erb) // Without plugin: error on template syntax <% if @user %> <p>Hello</p> <% end %> // With plugin: no errors on lines with <% %>
Debug
Known issues
deprecatedPlugin is unmaintained and may not work with ESLint >= 9.x due to flat config changes.
fix
Use ESLint ignore comments or switch to a maintained alternative like eslint-plugin-erb.
affects: >=0.2.0
gotchaPlugin only suppresses errors on lines containing ERB tags; it does not parse or validate ERB syntax.
fix
Ensure ERB files are not linted for syntax; consider using separate linters for Ruby.
affects: >=0.0.0
gotchaGlobal installation mismatch: if ESLint is global, this plugin must also be installed globally.
fix
Use local installations for consistency: npm install eslint and this plugin as devDependencies.
affects: >=0.0.0
Errors
Common errors & fixes
ESLint couldn't find the plugin "eslint-plugin-ignore-erb".
Plugin not installed or not in node_modules, or ESLint is running globally.
fix
Install locally: npm install eslint-plugin-ignore-erb --save-dev, or ensure global installation matches.
Configuration for rule "ignore-erb/ignore-erb" is invalid: Severity should be one of the following: 0 = off, 1 = warn, 2 = error.
Misconfigured rule severity (e.g., string value instead of number).
fix
Use numeric severity: "ignore-erb/ignore-erb": "error" (or 2).
Failed to load plugin 'ignore-erb': Cannot find module 'eslint-plugin-ignore-erb'.
Plugin package missing or ESLint cannot resolve it.
fix
Ensure the package is installed and the .eslintrc file is in the project root.
Upgrade
Version history
0.1.1latest on npm
Audit
Dependencies
eslintrequiredpeer dependency required as an ESLint plugin
Agent activity
7 hits · last 30 days
node
6
Resources
eslint-plugin-ignore-erb — npm install eslint-plugin-ignore-erb · libregistry