Skip to content

Netflix/eslint-plugin-x-element

Repository files navigation

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-element
import XElement from '@netflix/eslint-plugin-x-element';

export default [
  /* … */
  {
    files: ['**/*.js'],
    plugins: { XElement },
    rules: { 'XElement/no-invalid-html': 'error' },
  },
  /* … */
];

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published