@withfig/eslint-plugin-fig-linter
Advanced tools
Comparing version 1.4.0 to 1.4.1
{ | ||
"name": "@withfig/eslint-plugin-fig-linter", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "This is a eslint plugin which is tailored for fig specs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,3 +17,3 @@ module.exports = { | ||
const optNameElementNodes = | ||
optionNameNode.kind === "ArrayExpression" | ||
optionNameNode.type === "ArrayExpression" | ||
? optionNameNode.elements // name: ["--one", "--two"] | ||
@@ -23,3 +23,3 @@ : [optionNameNode]; // name: "--one" | ||
for (const node of optNameElementNodes) { | ||
if (node.kind === "Literal" && typeof node.value === "string") { | ||
if (node.type === "Literal" && typeof node.value === "string" && node.value.indexOf(" ") >= 0) { | ||
report(node); | ||
@@ -26,0 +26,0 @@ } |
22469