Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita0df3be

Browse files
authored
Merge pull request#93 from github/upgrade-to-new-web-component-standards
upgrade to new web component standards
2 parents2d85b9f +874b7ce commita0df3be

12 files changed

+5105
-2819
lines changed

‎.eslintrc.json

Lines changed: 22 additions & 10 deletions
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

Lines changed: 19 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp