diff options
author | 2021-04-12 16:20:58 +0100 | |
---|---|---|
committer | 2021-04-12 16:20:58 +0100 | |
commit | 687ff5bacd8c776e514f53c4b59c3a67274d3971 (patch) | |
tree | 15e140d7d6c744c4b2096fea38d7f0e34fec8742 /src/compiler/transform/index.ts | |
parent | cffde0192bf9965e94a217fa0a44a86fbfa33337 (diff) | |
download | astro-687ff5bacd8c776e514f53c4b59c3a67274d3971.tar.gz astro-687ff5bacd8c776e514f53c4b59c3a67274d3971.tar.zst astro-687ff5bacd8c776e514f53c4b59c3a67274d3971.zip |
chore fix lint reduce errors generated (#83)
* add dep domhandler imported in in src/build/static
* lint and jsDoc error
* move domhandler to devDep
* chore: add package lock
* escape string jsDoc
* chore: add astro dep in until prism import is refactored
* chore: add snowpack example package lock
Diffstat (limited to 'src/compiler/transform/index.ts')
-rw-r--r-- | src/compiler/transform/index.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/transform/index.ts b/src/compiler/transform/index.ts index 6a81b92b0..02a98709b 100644 --- a/src/compiler/transform/index.ts +++ b/src/compiler/transform/index.ts @@ -56,6 +56,7 @@ function walkAstWithVisitors(tmpl: TemplateNode, collection: VisitorCollection) walk(tmpl, { enter(node, parent, key, index) { if (collection.enter.has(node.type)) { + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion const fns = collection.enter.get(node.type)!; for (let fn of fns) { fn.call(this, node, parent, key, index); @@ -64,6 +65,7 @@ function walkAstWithVisitors(tmpl: TemplateNode, collection: VisitorCollection) }, leave(node, parent, key, index) { if (collection.leave.has(node.type)) { + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion const fns = collection.leave.get(node.type)!; for (let fn of fns) { fn.call(this, node, parent, key, index); |