eslint-plugin-i18n-json
eslint-plugin-i18n-json copied to clipboard
i18n-json/valid-message-syntax: Add possibility to allow Arrays
Currently it is hardcoded that Arrays can't be a valid translation. However, based on the setup, there are some legitimate usages of Arrays and this is blocking it for no reason.
https://github.com/godaddy/eslint-plugin-i18n-json/blob/13d5f18cbc123bd4d7c3cf98482623a3b85261bf/src/valid-message-syntax.js#L143-L150
The problem is, that we can't bypass this check with a custom validator which would allow Arrays for some specific keys