Skip to content

Commit 4c4c334

Browse files
committed
upgrade eslint config
1 parent 312082b commit 4c4c334

File tree

1 file changed

+27
-7
lines changed

1 file changed

+27
-7
lines changed

.eslintrc.json

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,41 @@
11
{
22
"root": true,
3-
"plugins": ["custom-elements"],
43
"extends": [
5-
"plugin:github/recommended",
64
"plugin:github/browser",
5+
"plugin:github/recommended",
76
"plugin:github/typescript",
87
"plugin:custom-elements/recommended"
98
],
109
"rules": {
11-
"custom-elements/tag-name-matches-class": ["error", {"suffix": "Element"}],
12-
"custom-elements/file-name-matches-element": "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",
19+
"import/extensions": ["error", "always"],
20+
"import/no-unresolved": "off"
1321
},
1422
"overrides": [
1523
{
16-
"files": "*.js",
17-
"parser": "espree",
18-
"parserOptions": {"ecmaVersion": 8}
24+
"files": "src/*-define.ts",
25+
"rules": {
26+
"@typescript-eslint/no-namespace": "off"
27+
}
28+
},
29+
{
30+
"files": "test/**/*.js",
31+
"rules": {
32+
"github/unescaped-html-literal": "off",
33+
"github/no-inner-html": "off",
34+
"i18n-text/no-en": "off"
35+
},
36+
"env": {
37+
"mocha": true
38+
}
1939
}
2040
]
2141
}

0 commit comments

Comments
 (0)