Skip to content

Node upgrade to 20 without the lint and test changes #4547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ module.exports = {
'testing-library/no-unnecessary-act': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@wordpress/i18n-text-domain': [
'error',
{
allowedTextDomain: 'woocommerce-gateway-stripe',
},
],
},
settings: {
react: {
Expand All @@ -82,4 +88,5 @@ module.exports = {
'@wordpress/data',
],
},
ignorePatterns: [ 'phpunit-html/**' ],
};
7 changes: 5 additions & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
legacy-peer-deps=true
engine-strict=true
save-exact = true
engine-strict = true
legacy-peer-deps = true
prefer-dedupe = true
lockfile-version = 3
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.18.0
v20.19.1
10 changes: 9 additions & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// Import the default config file and expose it in the project root.
// Useful for editor integrations.
module.exports = require( '@wordpress/prettier-config' );
module.exports = {
...require( '@wordpress/prettier-config' ),
overrides: [
{
files: [ 'changelog.txt' ],
options: { parser: 'markdown' },
},
],
};
4 changes: 2 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
plugins: [
'@emotion',
[ '@babel/transform-runtime', { corejs: 3 } ],
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-transform-optional-chaining',
'@babel/plugin-transform-nullish-coalescing-operator',
],
};
2 changes: 1 addition & 1 deletion bin/update-pot-file-references.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function load_js_transpiling_source_maps(): array {
}

foreach ( $file_json[ 'sources' ] as $source ) {
$source = preg_replace( '%^webpack:///\./(client/.*)$%', '${1}', $source );
$source = preg_replace( '%^webpack://\./(client/.*)$%', '${1}', $source );
if ( 'webpack' !== substr( $source, 0, 7 ) ) {
$mappings[ $source ][] = $file_json[ 'file' ];
}
Expand Down
Loading
Loading