eslint-mdx
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -230,3 +230,3 @@ "use strict"; | ||
if (attrValue == null) { | ||
return Object.assign(Object.assign({}, attrNamePos), { type: 'JSXAttribute', name: Object.assign(Object.assign({}, attrNamePos), { type: 'JSXIdentifier', name: attrName }), value: null }); | ||
return Object.assign(Object.assign({}, normalizeNode(attrStart, lastAttrOffset + 1)), { type: 'JSXAttribute', name: Object.assign(Object.assign({}, attrNamePos), { type: 'JSXIdentifier', name: attrName }), value: null }); | ||
} | ||
@@ -254,3 +254,3 @@ const attrEqualOffset = nextCharOffset(attrStart + attrNameLength); | ||
} | ||
return Object.assign(Object.assign({}, attrNamePos), { type: 'JSXAttribute', name: Object.assign(Object.assign({}, normalizeNode(attrStart, lastAttrOffset + 1)), { type: 'JSXIdentifier', name: attrName }), value: typeof attr.value === 'string' | ||
return Object.assign(Object.assign({}, attrNamePos), { type: 'JSXAttribute', name: Object.assign(Object.assign({}, attrNamePos), { type: 'JSXIdentifier', name: attrName }), value: typeof attr.value === 'string' | ||
? Object.assign(Object.assign({}, attrValuePos), { type: 'Literal', value: attr.value }) : Object.assign(Object.assign({}, attrValuePos), { type: 'JSXExpressionContainer', expression: attr.value.data.estree | ||
@@ -257,0 +257,0 @@ .body[0].expression }) }); |
{ | ||
"name": "eslint-mdx", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "ESLint Parser for MDX", | ||
@@ -5,0 +5,0 @@ "repository": "git+https://github.com/mdx-js/eslint-mdx.git", |
Sorry, the diff of this file is not supported yet
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