Skip to content

Commit 719a146

Browse files
authored
Merge pull request #23 from github/use-new-standards-for-ces
use new standards for CEs
2 parents 2480660 + 8ec1744 commit 719a146

12 files changed

+7369
-3562
lines changed

Diff for: .eslintrc.json

+28-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,42 @@
11
{
22
"extends": [
33
"plugin:github/browser",
4-
"plugin:github/es6",
5-
"plugin:github/typescript"
4+
"plugin:github/recommended",
5+
"plugin:github/typescript",
6+
"plugin:custom-elements/recommended"
67
],
8+
"rules": {
9+
"custom-elements/tag-name-matches-class": [
10+
"error",
11+
{
12+
"suffix": "Element"
13+
}
14+
],
15+
"custom-elements/define-tag-after-class-definition": "off",
16+
"custom-elements/no-method-prefixed-with-on": "off",
17+
"custom-elements/expose-class-on-global": "off",
18+
"import/extensions": ["error", "always"],
19+
"import/no-unresolved": "off"
20+
},
721
"globals": {
822
"FilterInputElement": "readable"
923
},
1024
"overrides": [
25+
{
26+
"files": "src/*-define.ts",
27+
"rules": {
28+
"@typescript-eslint/no-namespace": "off"
29+
}
30+
},
1131
{
1232
"files": "test/**/*.js",
1333
"rules": {
14-
"github/unescaped-html-literal": "off"
34+
"github/unescaped-html-literal": "off",
35+
"github/no-inner-html": "off",
36+
"i18n-text/no-en": "off"
37+
},
38+
"env": {
39+
"mocha": true
1540
}
1641
}
1742
]

Diff for: custom-elements.json

+195
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,195 @@
1+
{
2+
"schemaVersion": "1.0.0",
3+
"readme": "",
4+
"modules": [
5+
{
6+
"kind": "javascript-module",
7+
"path": "dist/bundle.js",
8+
"declarations": [],
9+
"exports": [
10+
{
11+
"kind": "js",
12+
"name": "default",
13+
"declaration": {
14+
"module": "dist/bundle.js"
15+
}
16+
}
17+
]
18+
},
19+
{
20+
"kind": "javascript-module",
21+
"path": "dist/filter-input-element-define.js",
22+
"declarations": [],
23+
"exports": []
24+
},
25+
{
26+
"kind": "javascript-module",
27+
"path": "dist/filter-input-element.js",
28+
"declarations": [],
29+
"exports": []
30+
},
31+
{
32+
"kind": "javascript-module",
33+
"path": "dist/index.js",
34+
"declarations": [],
35+
"exports": []
36+
},
37+
{
38+
"kind": "javascript-module",
39+
"path": "src/filter-input-element-define.ts",
40+
"declarations": [],
41+
"exports": [
42+
{
43+
"kind": "js",
44+
"name": "default",
45+
"declaration": {
46+
"name": "FilterInputElement",
47+
"module": "src/filter-input-element-define.ts"
48+
}
49+
},
50+
{
51+
"kind": "js",
52+
"name": "*",
53+
"declaration": {
54+
"name": "*",
55+
"package": "./filter-input-element.js"
56+
}
57+
}
58+
]
59+
},
60+
{
61+
"kind": "javascript-module",
62+
"path": "src/filter-input-element.ts",
63+
"declarations": [
64+
{
65+
"kind": "class",
66+
"description": "",
67+
"name": "FilterInputElement",
68+
"members": [
69+
{
70+
"kind": "method",
71+
"name": "define",
72+
"static": true,
73+
"parameters": [
74+
{
75+
"name": "tag",
76+
"default": "'filter-input'"
77+
},
78+
{
79+
"name": "registry",
80+
"default": "customElements"
81+
}
82+
]
83+
},
84+
{
85+
"kind": "field",
86+
"name": "currentQuery",
87+
"type": {
88+
"text": "string | null"
89+
},
90+
"default": "null"
91+
},
92+
{
93+
"kind": "field",
94+
"name": "debounceInputChange",
95+
"type": {
96+
"text": "() => void"
97+
}
98+
},
99+
{
100+
"kind": "field",
101+
"name": "boundFilterResults",
102+
"type": {
103+
"text": "() => void"
104+
}
105+
},
106+
{
107+
"kind": "field",
108+
"name": "filter",
109+
"type": {
110+
"text": "MatchFunction | null"
111+
},
112+
"default": "null"
113+
},
114+
{
115+
"kind": "field",
116+
"name": "input",
117+
"type": {
118+
"text": "HTMLInputElement | null"
119+
},
120+
"readonly": true
121+
},
122+
{
123+
"kind": "method",
124+
"name": "reset"
125+
}
126+
],
127+
"attributes": [
128+
{
129+
"name": "aria-owns"
130+
}
131+
],
132+
"superclass": {
133+
"name": "HTMLElement"
134+
},
135+
"customElement": true
136+
}
137+
],
138+
"exports": [
139+
{
140+
"kind": "js",
141+
"name": "FilterInputElement",
142+
"declaration": {
143+
"name": "FilterInputElement",
144+
"module": "src/filter-input-element.ts"
145+
}
146+
},
147+
{
148+
"kind": "js",
149+
"name": "default",
150+
"declaration": {
151+
"name": "FilterInputElement",
152+
"module": "src/filter-input-element.ts"
153+
}
154+
}
155+
]
156+
},
157+
{
158+
"kind": "javascript-module",
159+
"path": "src/index.ts",
160+
"declarations": [],
161+
"exports": [
162+
{
163+
"kind": "js",
164+
"name": "FilterInputElement",
165+
"declaration": {
166+
"name": "FilterInputElement",
167+
"module": "src/index.ts"
168+
}
169+
},
170+
{
171+
"kind": "js",
172+
"name": "default",
173+
"declaration": {
174+
"name": "FilterInputElement",
175+
"module": "src/index.ts"
176+
}
177+
},
178+
{
179+
"kind": "js",
180+
"name": "*",
181+
"declaration": {
182+
"name": "*",
183+
"package": "./filter-input-element-define.js"
184+
}
185+
}
186+
]
187+
},
188+
{
189+
"kind": "javascript-module",
190+
"path": "test/test.js",
191+
"declarations": [],
192+
"exports": []
193+
}
194+
]
195+
}

0 commit comments

Comments
 (0)