Skip to content

Commit

Permalink
Update various eslint plugins (#40437)
Browse files Browse the repository at this point in the history
Notable changes include:

* `@typescript-eslint/ban-types` is split into some other rules,
  particularly `@typescript-eslint/no-unsafe-function-type`.
* `@typescript-eslint/no-unused-vars` now detects when a variable is
  only used by `typeof`, which can often be replaced.
* `@typescript-eslint/no-unused-vars` now flags `} catch ( e ) {` where
  the `e` isn't used in the catch block, as `} catch {` is allowed since
  ES2019.
* `@typescript-eslint/no-empty-object-type` by default now flags
  `interface Foo extends Bar {}`. Update the config to turn that back
  off.
* New rule `@typescript-eslint/no-require-imports` needs to be disabled
  for `.cjs` files.
* New rule `@typescript-eslint/no-unused-expressions` can replace
  `no-unused-expressions` even for JS files, so let's do that to avoid
  having to separately configure both with `allowShortCircuit` and
  `allowTernary`.

Also, added a pnpmfile hack so `@wordpress/eslint-plugin` won't bring in
an older version of `@typescript-eslint/parser`.

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12148571247

Upstream-Ref: Automattic/jetpack@8e1d185
  • Loading branch information
anomiex authored and matticbot committed Dec 3, 2024
1 parent 389b280 commit 63de1cd
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/admin/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('jetpack-connection', 'jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'ad9165ff9af5e7f6266d');
<?php return array('dependencies' => array('jetpack-connection', 'jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '78a3528a89f41e6c4ddd');
2 changes: 1 addition & 1 deletion build/admin/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/block-editor/blocks/video/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('jetpack-connection', 'lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '159479aae103c3d81711');
<?php return array('dependencies' => array('jetpack-connection', 'lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '45cad11a08bfdce7d74b');
2 changes: 1 addition & 1 deletion build/block-editor/blocks/video/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/lib/token-bridge.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '5ad7e7fdd37f29acc97f');
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '039142d97cd8cd69bf67');
2 changes: 1 addition & 1 deletion build/lib/token-bridge.js

Large diffs are not rendered by default.

0 comments on commit 63de1cd

Please sign in to comment.