Skip to content

Commit

Permalink
Chore: update dependencies | remove package-lock.json (closes #143)
Browse files Browse the repository at this point in the history
  • Loading branch information
JPeer264 committed Oct 20, 2021
1 parent 79af50b commit 65b2dee
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 8,556 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -10,3 +10,5 @@ npm-debug.log
.vscode
dest
coverage
package-lock.json
yarn.lock
2 changes: 1 addition & 1 deletion lib/helpers/htmlToAst.ts
Expand Up @@ -3,7 +3,7 @@ import parse5 from 'parse5';
type HtmlToAstReturn = ReturnType<typeof parse5.parseFragment> | ReturnType<typeof parse5.parse>;

const htmlToAst = (code: string): HtmlToAstReturn => {
let ast = parse5.parse(code, {
let ast: parse5.Document | parse5.DocumentFragment = parse5.parse(code, {
sourceCodeLocationInfo: true,
});

Expand Down
4 changes: 2 additions & 2 deletions lib/replace/js.ts
@@ -1,6 +1,6 @@
import { parse, print } from 'recast';
import traverse from 'ast-traverse';
import espree from 'espree';
import * as espree from 'espree';
import merge from 'lodash.merge';

import selectorsLibrary from '../selectorsLibrary';
Expand Down Expand Up @@ -33,7 +33,7 @@ const replaceJs = (code: string | Buffer, espreeOptions: EspreeOptions = {}): st

const options: EspreeOptions = merge(
{
ecmaVersion: 10,
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
Expand Down

0 comments on commit 65b2dee

Please sign in to comment.