Skip to content

Commit

Permalink
Add textdomain validation to .eslintrc.js (woocommerce#5021)
Browse files Browse the repository at this point in the history
* Add textdomain validation to .eslintrc.js

* Only allow JS textdomain woo-gutenberg-products-block
  • Loading branch information
nielslange authored and jonny-bull committed Dec 16, 2021
1 parent 0d95bb0 commit 68cb77b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ module.exports = {
'react-hooks/exhaustive-deps': 'error',
'react/jsx-fragments': [ 'error', 'syntax' ],
'@wordpress/no-global-active-element': 'warn',
'@wordpress/i18n-text-domain': [
'error',
{
allowedTextDomain: [ 'woo-gutenberg-products-block' ],
},
],
camelcase: [
'error',
{
Expand Down

0 comments on commit 68cb77b

Please sign in to comment.