Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
hudochenkov committed Jan 16, 2025
1 parent 1372ac3 commit 7d8fdc1
Show file tree
Hide file tree
Showing 3 changed files with 1,797 additions and 1,665 deletions.
4 changes: 2 additions & 2 deletions lib/parseJs.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports.parseJs = function parseJs(inputCode, opts) {
*
* @param {ts.Node} node - The current node in the AST.
*/
// eslint-disable-next-line no-inner-declarations

function visit(node) {
// Check if the node is a TaggedTemplateExpression
if (isStyledComponent(node)) {
Expand Down Expand Up @@ -60,7 +60,7 @@ module.exports.parseJs = function parseJs(inputCode, opts) {
if (!hasParseErrors) {
visit(sourceFile);
}
} catch (error) {
} catch {
// Don't show parsing errors for JavaScript/TypeScript, because they are not relevant to CSS. And these errors most likely caught for user by JavaScript tools already
}

Expand Down
Loading

0 comments on commit 7d8fdc1

Please sign in to comment.