Skip to content

Commit

Permalink
Update ESLint config for TypeScript files (#40584)
Browse files Browse the repository at this point in the history
* Update ESLint config for TypeScript files

* Change no-undefined-types to warning

* Remove unsed eslint-disable

* Restore 'jsdoc/require-returns'

* Turn off jsdoc/no-undefined-types

* Fix lints caused by turning off "jsdoc/no-undefined-types"

* Clean up jetpack-mu-wpcom/eslint.config.mjs

* Add changelog

* Restore plugins/jetpack/.eslintignore

* Turn back jsdoc/no-undefined-types ON with disabled reporting

* Re-enable param rules for now

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

Upstream-Ref: Automattic/jetpack@9f6b920
  • Loading branch information
zinigor authored and matticbot committed Dec 16, 2024
1 parent 4fe274f commit 3b8d7dd
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 27 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ node_modules export-ignore

# Files to exclude from the mirror repo
/changelog/** production-exclude
/.eslintrc.cjs production-exclude
/jest.config.js production-exclude
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.75.1-alpha] - unreleased

This is an alpha version! The changes listed here are not final.

### Changed
- Updated package dependencies.

## [0.75.0] - 2024-12-09
### Changed
- Changed text domain from 'jetpack' to 'jetpack-publicize-components'. [#40368]
Expand Down Expand Up @@ -1038,6 +1045,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Updated package dependencies. [#24470]

[0.75.1-alpha]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.75.0...v0.75.1-alpha
[0.75.0]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.74.2...v0.75.0
[0.74.2]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.74.1...v0.74.2
[0.74.1]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.74.0...v0.74.1
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"prefer-stable": true,
"extra": {
"mirror-repo": "Automattic/jetpack-publicize-components",
"textdomain": "jetpack-publicize-components",
"changelogger": {
"link-template": "https://github.com/Automattic/jetpack-publicize-components/compare/v${old}...v${new}"
},
Expand Down
52 changes: 26 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@automattic/jetpack-publicize-components",
"version": "0.75.0",
"version": "0.75.1-alpha",
"description": "A library of JS components required by the Publicize editor plugin",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/publicize-components/#readme",
"bugs": {
Expand All @@ -20,39 +20,39 @@
},
"dependencies": {
"@automattic/jetpack-analytics": "^0.1.33",
"@automattic/jetpack-components": "^0.64.2-alpha",
"@automattic/jetpack-connection": "^0.36.1",
"@automattic/jetpack-script-data": "^0.1.5",
"@automattic/jetpack-shared-extension-utils": "^0.16.1",
"@automattic/jetpack-components": "^0.65.0-alpha",
"@automattic/jetpack-connection": "^0.36.2-alpha",
"@automattic/jetpack-script-data": "^0.1.6-alpha",
"@automattic/jetpack-shared-extension-utils": "^0.16.2-alpha",
"@automattic/popup-monitor": "1.0.2",
"@automattic/social-previews": "2.1.0-beta.8",
"@wordpress/annotations": "3.13.0",
"@wordpress/api-fetch": "7.13.0",
"@wordpress/block-editor": "14.8.0",
"@wordpress/blocks": "14.2.0",
"@wordpress/components": "28.13.0",
"@wordpress/compose": "7.13.0",
"@wordpress/core-data": "7.13.0",
"@wordpress/data": "10.13.0",
"@wordpress/dataviews": "4.9.0",
"@wordpress/date": "5.13.0",
"@wordpress/edit-post": "8.13.0",
"@wordpress/editor": "14.13.0",
"@wordpress/element": "6.13.0",
"@wordpress/hooks": "4.13.0",
"@wordpress/html-entities": "4.13.0",
"@wordpress/i18n": "5.13.0",
"@wordpress/icons": "10.13.0",
"@wordpress/media-utils": "5.13.0",
"@wordpress/notices": "5.13.0",
"@wordpress/annotations": "3.14.0",
"@wordpress/api-fetch": "7.14.0",
"@wordpress/block-editor": "14.9.0",
"@wordpress/blocks": "14.3.0",
"@wordpress/components": "29.0.0",
"@wordpress/compose": "7.14.0",
"@wordpress/core-data": "7.14.0",
"@wordpress/data": "10.14.0",
"@wordpress/dataviews": "4.10.0",
"@wordpress/date": "5.14.0",
"@wordpress/edit-post": "8.14.0",
"@wordpress/editor": "14.14.0",
"@wordpress/element": "6.14.0",
"@wordpress/hooks": "4.14.0",
"@wordpress/html-entities": "4.14.0",
"@wordpress/i18n": "5.14.0",
"@wordpress/icons": "10.14.0",
"@wordpress/media-utils": "5.14.0",
"@wordpress/notices": "5.14.0",
"clsx": "2.1.1",
"prop-types": "15.8.1",
"react-page-visibility": "7.0.0",
"rememo": "4.0.1"
},
"devDependencies": {
"@automattic/color-studio": "2.6.0",
"@automattic/jetpack-base-styles": "^0.6.38",
"@automattic/jetpack-base-styles": "^0.6.39-alpha",
"@automattic/jetpack-webpack-config": "workspace:*",
"@babel/core": "7.26.0",
"@babel/plugin-transform-react-jsx": "7.25.9",
Expand All @@ -63,7 +63,7 @@
"@testing-library/user-event": "14.5.2",
"@types/jest": "29.5.12",
"@types/react": "18.3.12",
"@wordpress/babel-plugin-import-jsx-pragma": "5.13.0",
"@wordpress/babel-plugin-import-jsx-pragma": "5.14.0",
"babel-jest": "29.4.3",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
Expand Down
1 change: 1 addition & 0 deletions src/social-store/selectors/social-image-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { SocialImageGeneratorConfig, SocialSettingsFields } from '../types';
* Returns the Social Image Generator settings for the current site.
*/
export const getSocialImageGeneratorConfig = createRegistrySelector( select => () => {
// @ts-expect-error TS2339 - https://github.com/WordPress/gutenberg/issues/67847
const { getSite } = select( coreStore );

const settings = getSite( undefined, { _fields: SIG_SETTINGS_KEY } ) as SocialSettingsFields;
Expand Down
1 change: 1 addition & 0 deletions src/social-store/selectors/utm-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { SocialSettingsFields, UtmSettingsConfig } from '../types';
* Returns the UTM state.
*/
export const getUtmSettings = createRegistrySelector( select => () => {
// @ts-expect-error TS2339 - https://github.com/WordPress/gutenberg/issues/67847
const { getSite } = select( coreStore );

const settings = getSite( undefined, { _fields: UTM_ENABLED_KEY } ) as SocialSettingsFields;
Expand Down

0 comments on commit 3b8d7dd

Please sign in to comment.