Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 02f1de6

Browse files
committed
upgrade to new web component standards
1 parent 4e3b7ce commit 02f1de6

12 files changed

+9437
-3922
lines changed

.eslintrc.json

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,41 @@
11
{
2+
"root": true,
23
"extends": [
3-
"plugin:github/recommended",
44
"plugin:github/browser",
5-
"plugin:github/typescript"
5+
"plugin:github/recommended",
6+
"plugin:github/typescript",
7+
"plugin:custom-elements/recommended"
68
],
7-
"globals": {
8-
"ClipboardCopyElement": "readable"
9+
"rules": {
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",
19+
"import/extensions": ["error", "always"],
20+
"import/no-unresolved": "off"
921
},
1022
"overrides": [
23+
{
24+
"files": "src/*-define.ts",
25+
"rules": {
26+
"@typescript-eslint/no-namespace": "off"
27+
}
28+
},
1129
{
1230
"files": "test/**/*.js",
31+
"rules": {
32+
"github/unescaped-html-literal": "off",
33+
"github/no-inner-html": "off",
34+
"i18n-text/no-en": "off"
35+
},
1336
"env": {
1437
"mocha": true
15-
},
16-
"globals": {
17-
"assert": true
1838
}
19-
},
20-
{
21-
"files": "*.js",
22-
"parser": "espree",
23-
"parserOptions": {"ecmaVersion": 8}
2439
}
2540
]
2641
}

0 commit comments

Comments
 (0)