You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/parseJs.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ module.exports.parseJs = function parseJs(inputCode, opts) {
27
27
*
28
28
* @param {ts.Node} node - The current node in the AST.
29
29
*/
30
-
// eslint-disable-next-line no-inner-declarations
30
+
31
31
functionvisit(node){
32
32
// Check if the node is a TaggedTemplateExpression
33
33
if(isStyledComponent(node)){
@@ -60,7 +60,7 @@ module.exports.parseJs = function parseJs(inputCode, opts) {
60
60
if(!hasParseErrors){
61
61
visit(sourceFile);
62
62
}
63
-
}catch(error){
63
+
}catch{
64
64
// 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
0 commit comments