Commit Graph

154 Commits

Author SHA1 Message Date
e37997e2e1 Move ListviewSidebar state from email editor store to @wordpress/editor store
MAILPOET-6303
2024-11-12 15:41:23 +01:00
ef009d0400 Move InserterSidebar state from email editor store to @wordpress/editor store
MAILPOET-6303
2024-11-12 15:41:23 +01:00
1c3ea9cd0a Move email editor components out of the engine folder
MAILPOET-6215
2024-11-11 11:53:49 +02:00
e6d607028c Move powered by mailpoet block back to the main mailpoet assets folder
MAILPOET-6215
2024-11-11 11:53:49 +02:00
716ba4ebc3 Fix typescript and type check errors
MAILPOET-6215
2024-11-11 11:53:49 +02:00
8c604453b1 Run email editor through Prettier
MAILPOET-6215
2024-11-11 11:53:49 +02:00
3402ae74da Add Prettier support for WP coding style
MAILPOET-6215
2024-11-11 11:53:49 +02:00
8c8bd728a7 Update git blame commit hash
MAILPOET-6215
2024-11-11 11:53:49 +02:00
ef4cf077ba Ensure linting is done for email editor JS and CSS files
MAILPOET-6215
2024-11-11 11:53:49 +02:00
820cbd2939 Fix wp-scripts lint errors
MAILPOET-6215
2024-11-11 11:53:49 +02:00
b2fb96f879 Switch email editor js package to WP coding style
MAILPOET-6215
2024-11-11 11:53:49 +02:00
462434af5d Fix email editor css link
MAILPOET-6215
2024-11-11 11:53:49 +02:00
fed306490a Fix webpack build and compile
MAILPOET-6215
2024-11-11 11:53:49 +02:00
e8180fcbc5 Convert named alias to relative paths.
This seems to be having an issue with the current webpack config and the babel loader. We will fix the issue on another ticket

MAILPOET-6215
2024-11-11 11:53:49 +02:00
632c381b73 Add basic email editor build config
MAILPOET-6215
2024-11-11 11:53:49 +02:00
912282f57c Move all items to src folder
MAILPOET-6215
2024-11-11 11:53:49 +02:00
466b9c1235 Move email editor to JS packages folder
MAILPOET-6215
2024-11-11 11:53:49 +02:00
a3514377c8 Move default props to default parameters - simple cases
React throws a deprecation warning for defaultProps.
This commit refactors default props to default values in easy-to-fix cases.

[MAILPOET-6108]
2024-06-21 16:36:06 +02:00
4d2ec58b8e Add eslint-plugin-check-file configuration
[MAILPOET-4938]
2023-10-02 13:05:20 +02:00
62dcee8ae9 Merge newsletter tests config into ES5 config
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
8d311f2d9f Rexpose globals for usage in config overrides
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
263e8f6f4d Remove redundant rule exception (same value as from parent configs)
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
ccbd239009 Remove premium-specific TS config, move free-specific rules to its config
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
7dd5ca91c5 Remove premium-specific ES config, move free-specific rules to its config
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
5d03be50f3 Remove rule definition that's already included in parent configs
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
f04f7755fd Reexport eslint bin in @mailpoet/eslint-config explicitly
We're using @mailpoet/eslint-config to share eslint itself so it's
correct to reexport the executable that's being used. This also makes
the command work in the premium plugin without need to address the
".bin" paths within "node_modules".

[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
ed8a3344af Rewrite .eslintrc.premium.ts.js to new config format
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
e2d658e5fc Rewrite .eslintrc.premium.js to new config format
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
989fd7d1cb Rewrite .eslintrc.tests_newsletter_editor.js to new config format
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
3b321de91e Rewrite .eslintrc.ts.js to new config format
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
afb5456759 Rewrite .eslintrc.es6.js to new config format
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
d37292ff13 Rewrite .eslintrc.es5.js to new config format
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
c7c06d0a21 Install @eslint/eslintrc explicitly
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
2b5826d417 Install globals explicitly
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
a919275c24 Allow passing async function to JSX attributes
The new default seems to be a bit too strict.

[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
d902ec446c Update eslint-plugin-import
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
d1b691f69c Update eslint-plugin-jsx-a11y
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
d2d12e30ec Update eslint-plugin-no-only-tests
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
bd66929731 Update eslint-config-prettier
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
84ef2f1427 Update eslint-config-airbnb-typescript
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
80d5d35e25 Update eslint-plugin-react and eslint-plugin-react-hooks
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
45b473a53f Update @typescript-eslint/parser and @typescript-eslint/eslint-plugin
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
ba90249cc2 Update @babel/eslint-parser and lint-staged (needed for update of the former one)
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
afbaac8439 Update ESLint
[MAILPOET-5061]
2023-03-27 15:24:38 +02:00
0cb684151f Use JS ESLint configs instead of JSON
This is to avoid ERR_IMPORT_ASSERTION_TYPE_MISSING on recent Node.js with updated ESLint.
Fixes errors like the following: ".eslintrc.es6.json" needs an import assertion of type "json"

[MAILPOET-5061]
2023-03-27 15:24:38 +02:00
900a03756f Use (S)CSS setup from @worpress/scripts
[MAILPOET-5015]
2023-03-22 09:38:22 +01:00
8fbe37dc4d Add TypeScript config for @mailpoet/components
This handles both type checking and type declaration emitting.

[MAILPOET-5015]
2023-03-22 09:38:22 +01:00
2aaf01fe11 Add Webpack config for @mailpoet/components
[MAILPOET-5015]
2023-03-22 09:38:22 +01:00
093814eaa7 Add Babel config for @mailpoet/components
[MAILPOET-5015]
2023-03-22 09:38:22 +01:00
790f3f4974 Add @mailpoet/components package with a dummy testing component
[MAILPOET-5015]
2023-03-22 09:38:22 +01:00