Skip to content

Commit d303b10

Browse files
committed
Node upgrade to 20 without the lint and test changes
1 parent 2786425 commit d303b10

File tree

9 files changed

+35383
-65809
lines changed

9 files changed

+35383
-65809
lines changed

.eslintrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ module.exports = {
6262
'testing-library/no-unnecessary-act': 'off',
6363
'@typescript-eslint/no-empty-function': 'off',
6464
'@typescript-eslint/no-var-requires': 'off',
65+
'@wordpress/i18n-text-domain': [
66+
'error',
67+
{
68+
allowedTextDomain: 'woocommerce-gateway-stripe',
69+
},
70+
],
6571
},
6672
settings: {
6773
react: {
@@ -82,4 +88,5 @@ module.exports = {
8288
'@wordpress/data',
8389
],
8490
},
91+
ignorePatterns: [ 'phpunit-html/**' ],
8592
};

.npmrc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
legacy-peer-deps=true
2-
engine-strict=true
1+
save-exact = true
2+
engine-strict = true
3+
legacy-peer-deps = true
4+
prefer-dedupe = true
5+
lockfile-version = 3

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.18.0
1+
v20.19.1

.prettierrc.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
// Import the default config file and expose it in the project root.
22
// Useful for editor integrations.
3-
module.exports = require( '@wordpress/prettier-config' );
3+
module.exports = {
4+
...require( '@wordpress/prettier-config' ),
5+
overrides: [
6+
{
7+
files: [ 'changelog.txt' ],
8+
options: { parser: 'markdown' },
9+
},
10+
],
11+
};

babel.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
plugins: [
77
'@emotion',
88
[ '@babel/transform-runtime', { corejs: 3 } ],
9-
'@babel/plugin-proposal-optional-chaining',
10-
'@babel/plugin-proposal-nullish-coalescing-operator',
9+
'@babel/plugin-transform-optional-chaining',
10+
'@babel/plugin-transform-nullish-coalescing-operator',
1111
],
1212
};

bin/update-pot-file-references.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function load_js_transpiling_source_maps(): array {
8989
}
9090

9191
foreach ( $file_json[ 'sources' ] as $source ) {
92-
$source = preg_replace( '%^webpack:///\./(client/.*)$%', '${1}', $source );
92+
$source = preg_replace( '%^webpack://\./(client/.*)$%', '${1}', $source );
9393
if ( 'webpack' !== substr( $source, 0, 7 ) ) {
9494
$mappings[ $source ][] = $file_json[ 'file' ];
9595
}

0 commit comments

Comments
 (0)