turns our the whitespace is included

This commit is contained in:
Markus Olsson 2020-06-04 14:19:11 +02:00
parent e6c5d5e0bf
commit 317f34bd4a

View file

@ -46,7 +46,7 @@ class ReactReadonlyPropsAndStateWalker extends Lint.RuleWalker {
if (propertySignature.type) {
const typeString = propertySignature.type.getFullText()
if (/^Array<.*>$/.test(typeString) || typeString.endsWith('[]')) {
if (/^\s*Array<.*>$/.test(typeString) || typeString.endsWith('[]')) {
this.addFailure(
this.createFailure(
propertySignature.type.getStart(),