Skip to content

Commit

Permalink
Merge pull request #62 from github/upgrade-packages-tests-exports
Browse files Browse the repository at this point in the history
Upgrade packages tests exports
  • Loading branch information
keithamus authored Apr 20, 2023
2 parents d534618 + 717b674 commit 9eec044
Show file tree
Hide file tree
Showing 14 changed files with 7,129 additions and 9,261 deletions.
34 changes: 27 additions & 7 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,41 @@
{
"root": true,
"plugins": ["custom-elements"],
"extends": [
"plugin:github/recommended",
"plugin:github/browser",
"plugin:github/recommended",
"plugin:github/typescript",
"plugin:custom-elements/recommended"
],
"rules": {
"custom-elements/tag-name-matches-class": ["error", {"suffix": "Element"}],
"custom-elements/file-name-matches-element": "off"
"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"
},
"overrides": [
{
"files": "*.js",
"parser": "espree",
"parserOptions": {"ecmaVersion": 8}
"files": "src/*-define.ts",
"rules": {
"@typescript-eslint/no-namespace": "off"
}
},
{
"files": "test/**/*.js",
"rules": {
"github/unescaped-html-literal": "off",
"github/no-inner-html": "off",
"i18n-text/no-en": "off"
},
"env": {
"mocha": true
}
}
]
}
5 changes: 5 additions & 0 deletions custom-elements-manifest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default {
packagejson: true,
globs: ['src/*-element.ts'],
plugins: [],
}
97 changes: 97 additions & 0 deletions custom-elements.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"schemaVersion": "1.0.0",
"readme": "",
"modules": [
{
"kind": "javascript-module",
"path": "src/auto-check-element.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "AutoCheckElement",
"members": [
{
"kind": "method",
"name": "define",
"static": true,
"parameters": [
{
"name": "tag",
"default": "'auto-check'"
},
{
"name": "registry",
"default": "customElements"
}
]
},
{
"kind": "field",
"name": "input",
"type": {
"text": "HTMLInputElement | null"
},
"readonly": true
},
{
"kind": "field",
"name": "src",
"type": {
"text": "string"
}
},
{
"kind": "field",
"name": "csrf",
"type": {
"text": "string"
}
},
{
"kind": "field",
"name": "required",
"type": {
"text": "boolean"
}
},
{
"kind": "field",
"name": "csrfField",
"type": {
"text": "string"
}
}
],
"attributes": [
{
"name": "required"
}
],
"superclass": {
"name": "HTMLElement"
},
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "AutoCheckElement",
"declaration": {
"name": "AutoCheckElement",
"module": "src/auto-check-element.ts"
}
},
{
"kind": "js",
"name": "default",
"declaration": {
"name": "AutoCheckElement",
"module": "src/auto-check-element.ts"
}
}
]
}
]
}
Loading

0 comments on commit 9eec044

Please sign in to comment.