Pre-processes .ERB files for eslint.
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-process-erb
:
$ npm install eslint-plugin-process-erb --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-process-erb
globally.
Add process-erb
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"process-erb"
]
}