Skip to content

Commit

Permalink
Merge pull request #23 from github/use-new-standards-for-ces
Browse files Browse the repository at this point in the history
use new standards for CEs
  • Loading branch information
keithamus authored Oct 20, 2023
2 parents 2480660 + 8ec1744 commit 719a146
Show file tree
Hide file tree
Showing 12 changed files with 7,369 additions and 3,562 deletions.
31 changes: 28 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,42 @@
{
"extends": [
"plugin:github/browser",
"plugin:github/es6",
"plugin:github/typescript"
"plugin:github/recommended",
"plugin:github/typescript",
"plugin:custom-elements/recommended"
],
"rules": {
"custom-elements/tag-name-matches-class": [
"error",
{
"suffix": "Element"
}
],
"custom-elements/define-tag-after-class-definition": "off",
"custom-elements/no-method-prefixed-with-on": "off",
"custom-elements/expose-class-on-global": "off",
"import/extensions": ["error", "always"],
"import/no-unresolved": "off"
},
"globals": {
"FilterInputElement": "readable"
},
"overrides": [
{
"files": "src/*-define.ts",
"rules": {
"@typescript-eslint/no-namespace": "off"
}
},
{
"files": "test/**/*.js",
"rules": {
"github/unescaped-html-literal": "off"
"github/unescaped-html-literal": "off",
"github/no-inner-html": "off",
"i18n-text/no-en": "off"
},
"env": {
"mocha": true
}
}
]
Expand Down
195 changes: 195 additions & 0 deletions custom-elements.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
{
"schemaVersion": "1.0.0",
"readme": "",
"modules": [
{
"kind": "javascript-module",
"path": "dist/bundle.js",
"declarations": [],
"exports": [
{
"kind": "js",
"name": "default",
"declaration": {
"module": "dist/bundle.js"
}
}
]
},
{
"kind": "javascript-module",
"path": "dist/filter-input-element-define.js",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "dist/filter-input-element.js",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "dist/index.js",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "src/filter-input-element-define.ts",
"declarations": [],
"exports": [
{
"kind": "js",
"name": "default",
"declaration": {
"name": "FilterInputElement",
"module": "src/filter-input-element-define.ts"
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "./filter-input-element.js"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/filter-input-element.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "FilterInputElement",
"members": [
{
"kind": "method",
"name": "define",
"static": true,
"parameters": [
{
"name": "tag",
"default": "'filter-input'"
},
{
"name": "registry",
"default": "customElements"
}
]
},
{
"kind": "field",
"name": "currentQuery",
"type": {
"text": "string | null"
},
"default": "null"
},
{
"kind": "field",
"name": "debounceInputChange",
"type": {
"text": "() => void"
}
},
{
"kind": "field",
"name": "boundFilterResults",
"type": {
"text": "() => void"
}
},
{
"kind": "field",
"name": "filter",
"type": {
"text": "MatchFunction | null"
},
"default": "null"
},
{
"kind": "field",
"name": "input",
"type": {
"text": "HTMLInputElement | null"
},
"readonly": true
},
{
"kind": "method",
"name": "reset"
}
],
"attributes": [
{
"name": "aria-owns"
}
],
"superclass": {
"name": "HTMLElement"
},
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "FilterInputElement",
"declaration": {
"name": "FilterInputElement",
"module": "src/filter-input-element.ts"
}
},
{
"kind": "js",
"name": "default",
"declaration": {
"name": "FilterInputElement",
"module": "src/filter-input-element.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/index.ts",
"declarations": [],
"exports": [
{
"kind": "js",
"name": "FilterInputElement",
"declaration": {
"name": "FilterInputElement",
"module": "src/index.ts"
}
},
{
"kind": "js",
"name": "default",
"declaration": {
"name": "FilterInputElement",
"module": "src/index.ts"
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "./filter-input-element-define.js"
}
}
]
},
{
"kind": "javascript-module",
"path": "test/test.js",
"declarations": [],
"exports": []
}
]
}
Loading

0 comments on commit 719a146

Please sign in to comment.