diff --git a/build-tasks/common/meta.js b/build-tasks/common/meta.js index e2f1b36ab..57be173b5 100644 --- a/build-tasks/common/meta.js +++ b/build-tasks/common/meta.js @@ -46,7 +46,7 @@ function getMetadataValue(metadata, name, allowEmpty, doNotEscape) { return value; } value = value.replace(/^\n+/, ''); // strip leading newlines - value = value.replace(/\n/, ' '); // convert newlines + value = value.replace(/\n/g, ' '); // convert newlines if (value.indexOf(',') > -1) { return '"' + value + '"'; } else { diff --git a/src/reactA11yRoleRule.ts b/src/reactA11yRoleRule.ts index ae36742ef..7dc601fb5 100644 --- a/src/reactA11yRoleRule.ts +++ b/src/reactA11yRoleRule.ts @@ -33,8 +33,9 @@ export class Rule extends Lint.Rules.AbstractRule { public static metadata: ExtendedMetadata = { ruleName: 'react-a11y-role', type: 'maintainability', - description: `Elements with aria roles must use a **valid**, **non-abstract** aria role. - A reference to role definitions can be found at [WAI-ARIA roles](https://www.w3.org/TR/wai-aria/roles#role_definitions).`, + description: + 'Elements with aria roles must use a **valid**, **non-abstract** aria role. ' + + 'A reference to role definitions can be found at [WAI-ARIA roles](https://www.w3.org/TR/wai-aria/roles#role_definitions).', rationale: `References: