-
Notifications
You must be signed in to change notification settings - Fork 891
feat(premium-analytics): port data package from next-woocommerce-analytics #49263
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
Changes from all commits
cf0cc34
cf58d7c
e48b30f
d472a68
9e656b7
0fdf63f
01a6295
6ef580e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| module.exports = { | ||
| presets: [ | ||
| [ | ||
| '@automattic/jetpack-webpack-config/babel/preset', | ||
| { pluginReplaceTextdomain: { textdomain: 'jetpack-premium-analytics' } }, | ||
| ], | ||
| ], | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| Significance: patch | ||
| Type: added | ||
|
|
||
| Port data package (React Query report hooks, fetchers, and processing) as an internal package from next-woocommerce-analytics. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,11 @@ | ||
| import { makeBaseConfig, defineConfig } from 'jetpack-js-tools/eslintrc/base.mjs'; | ||
|
|
||
| /** | ||
| * Soften JSDoc rules for `packages/datetime/**` and `packages/formatters/**` | ||
| * so the initial ports can land with the upstream JSDoc style (descriptions | ||
| * on the function body, not on per-param tags). Temporary — backfill proper | ||
| * JSDoc on the helpers and remove these overrides (at which point this whole | ||
| * file can go away). | ||
| * Soften JSDoc rules for the internal `packages/*` ports so the initial | ||
| * ports can land with the upstream JSDoc style (descriptions on the | ||
| * function body, not on per-param tags). Temporary — backfill proper | ||
| * descriptions on the helpers and remove these overrides (at which point | ||
| * this whole file can go away). | ||
| */ | ||
| export default defineConfig( | ||
| makeBaseConfig( import.meta.url ), | ||
|
|
@@ -27,5 +27,25 @@ export default defineConfig( | |
| 'jsdoc/require-returns': 'off', | ||
| 'jsdoc/check-indentation': 'off', | ||
| }, | ||
| }, | ||
| { | ||
| // The data port carries a couple of upstream patterns this temporary | ||
| // override keeps as-is: intentional `any` escapes for the generic report | ||
| // `TData` (see use-report.ts), and `react` flagged as extraneous because | ||
| // the internal package's deps are declared on the parent manifest. | ||
| files: [ 'packages/data/**' ], | ||
| rules: { | ||
| 'jsdoc/require-description': 'off', | ||
| 'jsdoc/require-jsdoc': 'off', | ||
| 'jsdoc/require-param': 'off', | ||
| 'jsdoc/require-param-description': 'off', | ||
| 'jsdoc/require-returns': 'off', | ||
| 'jsdoc/check-indentation': 'off', | ||
| '@typescript-eslint/no-explicit-any': 'off', | ||
| // TODO: this masks any genuinely-undeclared dep, not just the `react` | ||
| // false-positive. Re-enable (or scope to the offending files) once the | ||
| // leaf manifest becomes load-bearing in the first-consumer PR. | ||
| 'import/no-extraneous-dependencies': 'off', | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [suggestion] Disabling
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added a TODO to re-enable. Full narrowing stays with the JSDoc/leaf-deps follow-up. |
||
| }, | ||
| } | ||
| ); | ||
Uh oh!
There was an error while loading. Please reload this page.