An ESLint plugin to preprocess jamrock files before actual linting.
- Enable the
await
keyword on$:
labels - Share exported symbols from consecutive scripts
- Check for syntax errors inside template
{ ... }
blocks - Enforce
no-unused-vars/no-undef
on 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
.html
files before applyingeslint-plugin-html
.