An ESLint plugin to preprocess jamrock files before actual linting.
- Enable the
awaitkeyword on$:labels - Share exported symbols from consecutive scripts
- Check for syntax errors inside template
{ ... }blocks - Enforce
no-unused-vars/no-undefon template{ ... }blocks
- ESLint 6+
Install the plugin:
npm install --save-dev eslint-plugin-jamrock
Then add jamrock to the plugins array in your .eslintrc.* config file.
For example:
{
"extends": [
"plugin:jamrock/config"
]
}This plugin performs some transformations using regular expressions on
.htmlfiles before applyingeslint-plugin-html.