updated eslint config

This commit is contained in:
Danny Coates 2019-08-02 12:03:53 -07:00
parent 20c063db7c
commit f036df5f47
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
9 changed files with 30 additions and 16 deletions

View file

@ -33,7 +33,7 @@ function filterErrors(details) {
.sort()
.map(locale => {
const data = details[locale]
.filter(item => item.hasOwnProperty('error'))
.filter(item => Object.prototype.hasOwnProperty.call(item, 'error'))
.map(({ error }) => error);
return { locale, data };
})