0.0.8 • Published 1 year ago

eslint-plugin-custom-elements v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

eslint-plugin-custom-elements

This is an ESLint Plugin to help provide best practices for writing Custom Elements aka Web Components. It provides a set of custom rules which can be enforced for files that declare classes that extend from HTMLElement.

Requirements

Node 14.x

Installation

$ npm install --save-dev eslint eslint-plugin-custom-elements

Setup

Add custom-elements to your list of plugins in your ESLint config, and enable the rules you want or just add plugin:custom-elements/recommended to the extends array.

JSON ESLint config example:

{
  "extends": ["plugin:custom-elements/recommended"]
}

Rules

Development

npm install
npm test

License

Distributed under the MIT license. See LICENSE for details.

0.0.8

1 year ago

0.0.7

1 year ago

0.0.5

2 years ago

0.0.6

2 years ago

0.0.3

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago