Skip to content

Commit 72f2092

Browse files
committed
style: after prettier
1 parent 94ebb8d commit 72f2092

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import {Parser, ParserOptions} from 'htmlparser2';
2-
import {Directive, Node, NodeTag, Options, Attributes} from '../types/index.d';
3-
import {LocationTracker} from './location-tracker';
1+
import { Parser, ParserOptions } from 'htmlparser2';
2+
import { Directive, Node, NodeTag, Options, Attributes } from '../types/index.d';
3+
import { LocationTracker } from './location-tracker';
44

55
const defaultOptions: ParserOptions = {
66
lowerCaseTags: false,
@@ -95,7 +95,7 @@ const parser = (html: string, options: Options = {}): Node[] => {
9595

9696
function onopentag(tag: string, attrs: Attributes) {
9797
const start = locationTracker.getPosition(parser.startIndex);
98-
const buf: NodeTag = {tag};
98+
const buf: NodeTag = { tag };
9999

100100
if (options.sourceLocations) {
101101
buf.location = {
@@ -167,7 +167,7 @@ const parser = (html: string, options: Options = {}): Node[] => {
167167
onopentag,
168168
onclosetag,
169169
ontext
170-
}, {...defaultOptions, ...options});
170+
}, { ...defaultOptions, ...options });
171171

172172
parser.write(html);
173173
parser.end();

0 commit comments

Comments
 (0)