Skip to content

pmrotule/eslint-plugin-html-erb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-html-erb

Ignore Rails code in ERB template in order to avoid fatal errors like this one:

Parsing error: Unexpected token %= (Fatal)

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-html-erb:

$ npm install eslint-plugin-html-erb --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-html-erb globally.

Usage

Add html-erb to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": [
    "html-erb"
  ]
}

About

Ignore Rails code in ERB template

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published