Skip to content

Commit

Permalink
Merge pull request #93 from github/upgrade-to-new-web-component-stand…
Browse files Browse the repository at this point in the history
…ards

upgrade to new web component standards
  • Loading branch information
keithamus authored Jun 16, 2023
2 parents 2d85b9f + 874b7ce commit a0df3be
Show file tree
Hide file tree
Showing 12 changed files with 5,105 additions and 2,819 deletions.
32 changes: 22 additions & 10 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,40 @@
{
"root": true,
"plugins": ["github"],
"extends": [
"plugin:github/browser",
"plugin:github/recommended",
"plugin:github/typescript"
"plugin:github/typescript",
"plugin:custom-elements/recommended"
],
"rules": {
"github/no-then": "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"]
"import/no-unresolved": "off"
},
"overrides": [
{
"files": "src/*-define.ts",
"rules": {
"@typescript-eslint/no-namespace": "off"
}
},
{
"files": "test/**/*.js",
"globals": {
"assert": true
"rules": {
"github/unescaped-html-literal": "off",
"github/no-inner-html": "off",
"i18n-text/no-en": "off"
},
"env": {
"mocha": true
},
"rules": {
"github/no-inner-html": "off",
"github/unescaped-html-literal": "off"
}
}
]
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Node CI

on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm test
env:
CI: true
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18
registry-url: https://registry.npmjs.org/
cache: npm
- run: npm ci
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/test.yml

This file was deleted.

Loading

0 comments on commit a0df3be

Please sign in to comment.