formatjs / formatjs-old

The monorepo home to all of the FormatJS related libraries.
https://formatjs.io/
156 stars 53 forks source link

Provide "defaultMessage" validation option for eslint-plugin-formatjs #523

Closed esjs closed 4 years ago

esjs commented 4 years ago

Which package? eslint-plugin-formatjs

Is your feature request related to a problem? Please describe. In project I'm working on, we extract messages from source code in a way that requires "defaultMessage" option to be always present. Example: Source {intl.formatMessage({id: 'langId', defaultMessage: 'This is default message' })} Result { langId: 'This is default message' }

Describe the solution you'd like Plugin should have option to notify user if he/she forgets to add defaultMessage