{"id":19788,"library":"eslint-plugin-ignore-erb","title":"ESLint Plugin Ignore ERB","description":"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.","status":"abandoned","version":"0.1.1","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/ryanere/eslint-plugin-ignore-erb","tags":["javascript","eslint","eslintplugin","eslint-plugin"],"install":[{"cmd":"npm install eslint-plugin-ignore-erb","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-plugin-ignore-erb","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-plugin-ignore-erb","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required as an ESLint plugin","package":"eslint","optional":false}],"imports":[{"note":"Plugins are loaded via ESLint config, not programmatic require. Using require directly may not work as expected.","wrong":"const plugin = require('eslint-plugin-ignore-erb')","symbol":"plugin","correct":"// No import needed; add to .eslintrc plugins array as 'ignore-erb'"},{"note":"The plugin's internal rules are not exported; they are registered via plugin name.","wrong":"import { rules } from 'eslint-plugin-ignore-erb'","symbol":"rules","correct":"// Not imported; the plugin provides a rule 'ignore-erb' referenced in config"},{"note":"This plugin does not export any configs or processors.","wrong":"const configs = require('eslint-plugin-ignore-erb').configs","symbol":"configs","correct":"// Not applicable; no configs exported"}],"quickstart":{"code":"// .eslintrc.json\n{\n  \"plugins\": [\"ignore-erb\"],\n  \"rules\": {\n    \"ignore-erb/ignore-erb\": \"error\"\n  }\n}\n\n// Example ERB file (app/views/test.html.erb)\n// Without plugin: error on template syntax\n<% if @user %>\n  <p>Hello</p>\n<% end %>\n// With plugin: no errors on lines with <% %>","lang":"javascript","description":"Shows how to configure the plugin in .eslintrc to ignore ERB expressions on lines."},"warnings":[{"fix":"Use ESLint ignore comments or switch to a maintained alternative like eslint-plugin-erb.","message":"Plugin is unmaintained and may not work with ESLint >= 9.x due to flat config changes.","severity":"deprecated","affected_versions":">=0.2.0"},{"fix":"Ensure ERB files are not linted for syntax; consider using separate linters for Ruby.","message":"Plugin only suppresses errors on lines containing ERB tags; it does not parse or validate ERB syntax.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use local installations for consistency: npm install eslint and this plugin as devDependencies.","message":"Global installation mismatch: if ESLint is global, this plugin must also be installed globally.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Install locally: npm install eslint-plugin-ignore-erb --save-dev, or ensure global installation matches.","cause":"Plugin not installed or not in node_modules, or ESLint is running globally.","error":"ESLint couldn't find the plugin \"eslint-plugin-ignore-erb\"."},{"fix":"Use numeric severity: \"ignore-erb/ignore-erb\": \"error\" (or 2).","cause":"Misconfigured rule severity (e.g., string value instead of number).","error":"Configuration for rule \"ignore-erb/ignore-erb\" is invalid: Severity should be one of the following: 0 = off, 1 = warn, 2 = error."},{"fix":"Ensure the package is installed and the .eslintrc file is in the project root.","cause":"Plugin package missing or ESLint cannot resolve it.","error":"Failed to load plugin 'ignore-erb': Cannot find module 'eslint-plugin-ignore-erb'."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}