Enable github plugin and use recommended set of rules
This commit is contained in:
Родитель
373a2928db
Коммит
45eacd37d7
|
@ -1,9 +1,14 @@
|
|||
{
|
||||
"root": true,
|
||||
"plugins": ["github"],
|
||||
"extends": [
|
||||
"plugin:github/browser",
|
||||
"plugin:github/recommended",
|
||||
"plugin:github/typescript"
|
||||
],
|
||||
"rules": {
|
||||
"github/no-then": "off"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": "test/**/*.js",
|
||||
|
|
|
@ -30,7 +30,6 @@ function task(): Promise<void> {
|
|||
|
||||
async function handleData(el: IncludeFragmentElement) {
|
||||
observer.unobserve(el)
|
||||
// eslint-disable-next-line github/no-then
|
||||
return getData(el).then(
|
||||
function (html: string) {
|
||||
const template = document.createElement('template')
|
||||
|
|
Загрузка…
Ссылка в новой задаче