Registry /
testing / eslint-plugin-ignore-erb
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
muslnode 18–226 runs
build_error
glibcnode 18–226 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 <% %>
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.
fixInstall 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).
fixUse 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.
fixEnsure the package is installed and the .eslintrc file is in the project root.
Audit
Dependencies
eslintrequiredpeer dependency required as an ESLint plugin