Skip to content

Commit b5fb4e7

Browse files
authored
Merge pull request #1223 from cloudinary/chore/upgrade-packages
Upgrade npm dependencies
2 parents 154e5c5 + e7d1fd0 commit b5fb4e7

35 files changed

Lines changed: 4620 additions & 5197 deletions

‎.eslintignore‎

Lines changed: 0 additions & 6 deletions
This file was deleted.

‎.eslintrc.json‎

Lines changed: 0 additions & 30 deletions
This file was deleted.

‎css/cloudinary.css‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎css/gallery-ui.css‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎eslint.config.js‎

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
const globals = require( 'globals' );
2+
const wpPlugin = require( '@wordpress/eslint-plugin' );
3+
4+
// eslint-import-resolver-typescript v4+ is incompatible with eslint-plugin-import
5+
// (throws "invalid interface loaded as resolver"), and this project has no TypeScript
6+
// anyway, so strip the typescript resolver that @wordpress/eslint-plugin configures.
7+
const recommended = wpPlugin.configs.recommended.map( ( config ) => {
8+
if ( ! config.settings || ! config.settings[ 'import/resolver' ] ) {
9+
return config;
10+
}
11+
const { typescript, ...resolver } = config.settings[ 'import/resolver' ];
12+
return {
13+
...config,
14+
settings: {
15+
...config.settings,
16+
'import/resolver': resolver,
17+
},
18+
};
19+
} );
20+
21+
module.exports = [
22+
{
23+
ignores: [
24+
'**/build/**',
25+
'**/built/**',
26+
'**/node_modules/**',
27+
'**/vendor/**',
28+
'js/**',
29+
'**/*.min.js',
30+
// Vendored third-party library (https://github.com/kallookoo/wp-color-picker-alpha).
31+
'src/js/wp-color-picker-alpha.js',
32+
],
33+
},
34+
...recommended,
35+
{
36+
settings: {
37+
'import/resolver': {
38+
node: true,
39+
},
40+
},
41+
languageOptions: {
42+
globals: {
43+
...globals.browser,
44+
cloudinary: 'readonly',
45+
jQuery: 'readonly',
46+
$: 'readonly',
47+
CLDN: 'readonly',
48+
CLDLB: 'readonly',
49+
CLD_GLOBAL_TRANSFORMATIONS: 'readonly',
50+
samplePlayer: 'readonly',
51+
CLDCACHE: 'readonly',
52+
cldData: 'readonly',
53+
CLD_METADATA: 'readonly',
54+
CLDASSETS: 'readonly',
55+
},
56+
},
57+
rules: {
58+
'no-alert': 'off',
59+
'no-console': 'off',
60+
'no-unused-vars': 'off',
61+
'no-nested-ternary': 'off',
62+
'jsx-a11y/click-events-have-key-events': 'off',
63+
'react-hooks/rules-of-hooks': 'error',
64+
'react-hooks/exhaustive-deps': 'warn',
65+
'@wordpress/no-global-event-listener': 'off',
66+
// CLD_Deactivate is a wp_localize_script object name (php/class-deactivation.php);
67+
// renaming it would require a matching PHP-side change.
68+
camelcase: [
69+
'error',
70+
{ properties: 'never', allow: [ '^CLD_Deactivate$' ] },
71+
],
72+
},
73+
},
74+
];

‎js/asset-edit.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎js/asset-manager.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎js/block-editor.asset.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'aab7b2e0606348e43cc2');
1+
<?php return array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '558667256f0d3fc475cd');

‎js/block-editor.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)