Skip to content

Commit

Permalink
ESLint: Add new rules (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed May 5, 2024
1 parent e433e77 commit 1a0d0fc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ module.exports = {
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': 'off',
'@wordpress/no-unsafe-wp-apis': 'off',
'@wordpress/dependency-group': 'error',
'@wordpress/i18n-text-domain': [
'error',
{
allowedTextDomain: 'enable-responsive-image',
},
],
'no-nested-ternary': 'off',
'prettier/prettier': [
'error',
Expand Down
4 changes: 3 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/**
* WordPress dependencies
*/
const config = require( '@wordpress/scripts/config/playwright.config.js' );
const { fileURLToPath } = require( 'url' );

export default {
...config,
Expand Down

0 comments on commit 1a0d0fc

Please sign in to comment.