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/rules/no-sync.js
+17-13Lines changed: 17 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -124,19 +124,23 @@ module.exports = {
124
124
continue
125
125
}
126
126
127
-
if(parserServices!==null){
128
-
consttype=getTypeOfNode(node,parserServices)
129
-
if(
130
-
typeMatchesSpecifier(
131
-
parserServices.program,
132
-
ignore,
133
-
type
134
-
)&&
135
-
(ignore.name===undefined||
136
-
ignore.name.includes(node.name))
137
-
){
138
-
return
139
-
}
127
+
if(parserServices===null){
128
+
thrownewError(
129
+
'TypeScript parser services not available. Rule "n/no-sync" is configured to use "ignores" option with a non-string value. This requires TypeScript parser services to be available.'
0 commit comments