Skip to content

Commit 45eacd3

Browse files
committed
Enable github plugin and use recommended set of rules
1 parent 373a292 commit 45eacd3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.eslintrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
{
22
"root": true,
3+
"plugins": ["github"],
34
"extends": [
45
"plugin:github/browser",
6+
"plugin:github/recommended",
57
"plugin:github/typescript"
68
],
9+
"rules": {
10+
"github/no-then": "off"
11+
},
712
"overrides": [
813
{
914
"files": "test/**/*.js",

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ function task(): Promise<void> {
3030

3131
async function handleData(el: IncludeFragmentElement) {
3232
observer.unobserve(el)
33-
// eslint-disable-next-line github/no-then
3433
return getData(el).then(
3534
function (html: string) {
3635
const template = document.createElement('template')

0 commit comments

Comments
 (0)