Skip to content

Commit

Permalink
upgrade to new web component standards
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Jun 8, 2023
1 parent 4e3b7ce commit 02f1de6
Show file tree
Hide file tree
Showing 12 changed files with 9,437 additions and 3,922 deletions.
39 changes: 27 additions & 12 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,41 @@
{
"root": true,
"extends": [
"plugin:github/recommended",
"plugin:github/browser",
"plugin:github/typescript"
"plugin:github/recommended",
"plugin:github/typescript",
"plugin:custom-elements/recommended"
],
"globals": {
"ClipboardCopyElement": "readable"
"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"
},
"overrides": [
{
"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
},
"globals": {
"assert": true
}
},
{
"files": "*.js",
"parser": "espree",
"parserOptions": {"ecmaVersion": 8}
}
]
}
Loading

0 comments on commit 02f1de6

Please sign in to comment.