eslint-plugin-expect-type
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -41,3 +41,3 @@ "use strict"; | ||
const comment = commentMatch[1]; | ||
const matchExpect = /^ ?\$Expect(TypeSnapshot|Type|Error)( (.*))?$/.exec( | ||
const matchExpect = /^\s*\$Expect(TypeSnapshot|Type|Error)( (.*))?$/.exec( | ||
comment | ||
@@ -49,3 +49,3 @@ ); | ||
const directive = matchExpect[1]; | ||
const payload = matchExpect[3]; | ||
const payload = matchExpect[3]?.trim(); | ||
switch (directive) { | ||
@@ -52,0 +52,0 @@ case "Error": |
{ | ||
"name": "eslint-plugin-expect-type", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "ESLint plugin with ^? Twoslash, $ExpectError, and $ExpectType type assertions. 🧩", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
235800