Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 18, 2023. It is now read-only.

A series of lint rules for best practices with Custom Elements

License

NotificationsYou must be signed in to change notification settings

github/eslint-plugin-custom-elements

Warning

This project has been merged witheslint-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

Addcustom-elements to your list of plugins in your ESLint config, and enable the rules you want or just addplugin:custom-elements/recommended to theextends array.

JSON ESLint config example:

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

Rules

Development

npm installnpm test

License

Distributed under the MIT license. See LICENSE for details.

About

A series of lint rules for best practices with Custom Elements

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors10


[8]ページ先頭

©2009-2025 Movatter.jp