dolsem / eslint-plugin-filename-rules

MIT License
36 stars 7 forks source link

Feat: Add custom messaging support #12

Closed brandonbrown5 closed 1 year ago

brandonbrown5 commented 1 year ago

This PR adds custom messaging as an option. It will default to the messaging defined in the metadata.

To add a custom message, the user just needs to add another element to the array for his/her message:

...
'filename-rules/match': [2, /^([a-z]+-)*[a-z]+(?:\..*)?$/], 'Custom message',
...