eslint-plugin-eslint-plugin
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -100,3 +100,4 @@ 'use strict'; | ||
if (interestingKeys.has(keyValue)) { | ||
parsedProps[keyValue] = prop.value; | ||
// In TypeScript, unwrap any usage of `{} as const`. | ||
parsedProps[keyValue] = prop.value.type === 'TSAsExpression' ? prop.value.expression : prop.value; | ||
} | ||
@@ -471,2 +472,6 @@ return parsedProps; | ||
.map(suggestObjNode => { | ||
if (suggestObjNode.type !== 'ObjectExpression') { | ||
// Ignore non-objects (like variables or function calls). | ||
return null; | ||
} | ||
return { | ||
@@ -478,4 +483,3 @@ messageId: findObjectPropertyValueByKeyName(suggestObjNode, 'messageId'), | ||
}; | ||
} | ||
), | ||
}).filter(item => item !== null), | ||
]; | ||
@@ -482,0 +486,0 @@ }, |
{ | ||
"name": "eslint-plugin-eslint-plugin", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "An ESLint plugin for linting ESLint plugins", | ||
@@ -5,0 +5,0 @@ "author": "Teddy Katz", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
111075
2551