An ESLint plugin for x-element.
The x-element
library ships with a simple, efficient template engine. By design,
its supported syntax is strict and unforgiving. This approach affords improved
performance and minimizes template complexity.
This plugin improves the feedback loop while using the x-element
template syntax
by detecting issues through static analysis and saving the need to test changes
in the browser one-by-one.
npm install --save-dev @netflix/eslint-plugin-x-element
import XElement from '@netflix/eslint-plugin-x-element';
export default [
/* … */
{
files: ['**/*.js'],
plugins: { XElement },
rules: { 'XElement/no-invalid-html': 'error' },
},
/* … */
];