mirror of
https://github.com/desktop/desktop
synced 2024-08-27 12:11:00 +00:00
turns our the whitespace is included
This commit is contained in:
parent
e6c5d5e0bf
commit
317f34bd4a
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue