Skip to content

Commit a0df3be

Browse files
authored
Merge pull request #93 from github/upgrade-to-new-web-component-standards
upgrade to new web component standards
2 parents 2d85b9f + 874b7ce commit a0df3be

12 files changed

+5105
-2819
lines changed

.eslintrc.json

+22-10
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,40 @@
11
{
22
"root": true,
3-
"plugins": ["github"],
43
"extends": [
54
"plugin:github/browser",
65
"plugin:github/recommended",
7-
"plugin:github/typescript"
6+
"plugin:github/typescript",
7+
"plugin:custom-elements/recommended"
88
],
99
"rules": {
10-
"github/no-then": "off",
10+
"custom-elements/tag-name-matches-class": [
11+
"error",
12+
{
13+
"suffix": "Element"
14+
}
15+
],
16+
"custom-elements/define-tag-after-class-definition": "off",
17+
"custom-elements/no-method-prefixed-with-on": "off",
18+
"custom-elements/expose-class-on-global": "off",
1119
"import/extensions": ["error", "always"],
12-
"import/no-unresolved": ["off"]
20+
"import/no-unresolved": "off"
1321
},
1422
"overrides": [
23+
{
24+
"files": "src/*-define.ts",
25+
"rules": {
26+
"@typescript-eslint/no-namespace": "off"
27+
}
28+
},
1529
{
1630
"files": "test/**/*.js",
17-
"globals": {
18-
"assert": true
31+
"rules": {
32+
"github/unescaped-html-literal": "off",
33+
"github/no-inner-html": "off",
34+
"i18n-text/no-en": "off"
1935
},
2036
"env": {
2137
"mocha": true
22-
},
23-
"rules": {
24-
"github/no-inner-html": "off",
25-
"github/unescaped-html-literal": "off"
2638
}
2739
}
2840
]

.github/workflows/nodejs.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Node CI
2+
3+
on: push
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- name: Use Node.js 18.x
10+
uses: actions/setup-node@v1
11+
with:
12+
node-version: 18.x
13+
- name: npm install, build, and test
14+
run: |
15+
npm install
16+
npm run build --if-present
17+
npm test
18+
env:
19+
CI: true

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v3
1212
- uses: actions/setup-node@v3
1313
with:
14-
node-version: 14
14+
node-version: 18
1515
registry-url: https://registry.npmjs.org/
1616
cache: npm
1717
- run: npm ci

.github/workflows/test.yml

-19
This file was deleted.

0 commit comments

Comments
 (0)