A series of lint rules for best practices with Custom Elements
Перейти к файлу
Keith Cirkel e0b1ac82d7
archive notice
2023-09-18 14:44:01 +01:00
.devcontainer Add a .devcontainer 2022-02-28 17:04:22 +00:00
.github/workflows Ensure CI runs for pulls 2023-04-09 08:49:21 +01:00
docs/rules style: format markdown files 2023-04-09 07:49:53 +00:00
lib move schemas into meta (#55) 2023-04-09 08:55:58 +01:00
test move schemas into meta (#55) 2023-04-09 08:55:58 +01:00
.eslintrc.js add eslint-plugin-eslint-plugin and fix failures (#56) 2023-04-09 08:55:35 +01:00
.gitignore Initial Implementation 2021-03-23 17:32:04 +00:00
CODEOWNERS move AOR to primer 2023-04-03 17:39:45 +01:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2021-04-12 13:28:30 +01:00
CONTRIBUTING.md Create CONTRIBUTING.md 2021-04-12 13:26:22 +01:00
LICENSE Initial Implementation 2021-03-23 17:32:04 +00:00
README.md archive notice 2023-09-18 14:44:01 +01:00
SECURITY.md Create SECURITY.md 2021-04-12 13:29:03 +01:00
package-lock.json Bump word-wrap from 1.2.3 to 1.2.4 (#59) 2023-07-19 08:15:19 +01:00
package.json add eslint-plugin-eslint-plugin and fix failures (#56) 2023-04-09 08:55:35 +01:00

README.md

eslint-plugin-custom-elements (archived)

[!WARNING]
This project has been merged with eslint-plugin-wc. Please head there for updates and maintenance.

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.