Skip to content

Commit

Permalink
Add .eslintrc file
Browse files Browse the repository at this point in the history
  • Loading branch information
oskosk authored and leogermani committed Mar 16, 2022
1 parent 46a41b7 commit 3998202
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions projects/plugins/starter-plugin/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
extends: [ '../../../tools/js-tools/eslintrc/react.js' ],
parserOptions: {
babelOptions: {
configFile: require.resolve( './babel.config.js' ),
},
},
rules: {
// Enforce the use of the jetpack-social textdomain.
'@wordpress/i18n-text-domain': [
'error',
{
allowedTextDomain: 'jetpack-starter-plugin',
},
],
},
};

0 comments on commit 3998202

Please sign in to comment.