@netflix/eslint-plugin-x-element
v1.0.0-rc.7
Published
An eslint plugin for x-element.
Readme
eslint-plugin-x-element
An ESLint plugin for x-element.
Explainer
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.
Installation & Usage
npm install --save-dev @netflix/eslint-plugin-x-elementimport XElement from '@netflix/eslint-plugin-x-element';
export default [
/* … */
{
files: ['**/*.js'],
plugins: { XElement },
rules: { 'XElement/no-invalid-html': 'error' },
},
/* … */
];