Skip to content

Commit

Permalink
Update ESLint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Jun 28, 2024
1 parent 2926ddd commit 6d074e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ module.exports = {
parser: '@typescript-eslint/parser',
rules: {
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': 'off',
'react/jsx-boolean-value': 'error',
'react/jsx-curly-brace-presence': [ 'error', { props: 'never', children: 'never' } ],
'@wordpress/dependency-group': 'error',
'@wordpress/no-unsafe-wp-apis': 'off',
'no-nested-ternary': 'off',
'@wordpress/i18n-text-domain': [
'error',
{
allowedTextDomain: 'piano-block',
},
],
'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 6d074e4

Please sign in to comment.