Skip to content

Commit 3feaba1

Browse files
committed
Enable eslint-plugin-custom-elements
1 parent 09bb6bd commit 3feaba1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.eslintrc.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
{
22
"root": true,
3+
"plugins": ["custom-elements"],
34
"extends": [
45
"plugin:github/recommended",
56
"plugin:github/browser",
6-
"plugin:github/typescript"
7+
"plugin:github/typescript",
8+
"plugin:custom-elements/recommended"
79
],
10+
"rules": {
11+
"custom-elements/file-name-matches-element": ["error", {"suffix": "Element"}],
12+
"custom-elements/tag-name-matches-class": ["error", {"suffix": "Element"}]
13+
},
814
"globals": {
915
"CustomElementElement": "readonly"
1016
}

0 commit comments

Comments
 (0)