Pulling in all the latest dev from the GB side#43
Conversation
Calypso Prettier (the fork used so far) has become incompatible with the eslint config in GB. GB needs `arrowParens: always` but the Calypso fork doesn't allow to deviate from its default config which is `avoid`. So, dropping Prettier until the conflict is resolved.
|
@jsnajdr gave a headsup about a PR that updates the Calypso Prettier fork to allow for using a config file. Will git it a try here. EDIT: gave |
Noooo!!! |
This reverts commit 89d842f.
Passing through Prettier+ESLint for formatting but only ESLint for linting/checking.
|
Found some middle ground with the This way VSCode can be used for format-on-save as usual. |
|
With 1e98ed1, the project depends on |
43fa3fb to
a792f56
Compare
a792f56 to
6972a55
Compare
|
|
|
We're short on RN review capacity atm so, merging this as more work depends on it. |
|
@hypest is this the incorrect Prettier formatting of Flow type annotations you mentioned in #43 (comment)? import ActionTypes from './ActionTypes';
-export type BlockActionType = string => {
+export type BlockActionType = (string) => {
type: $Values<typeof ActionTypes.BLOCK>,
uid: string,
};Also, what about the type parameters wrapped inside Values< typeof ActionTypes.BLOCK >I know very little about Flow at the moment, so I don't have any opinion on that. |
|
Hey @jsnajdr 👋 ,
Yes, the issue was that the Prettier fork demanded that the non-empty arrow function's parenthesis are removed while the GB Eslint config demanded exactly the opposite.
Hmm, not sure at this point. Is that a blocker for the work related to the |
|
@hypest If you're interested in experimenting with the latest Prettier version, the |
|
👋 @jsnajdr , haven't forgotten you :). Just haven't got the time to try out the |
Update the sample app to keep a separated size property for each item.
Using the latest from GB, including WordPress/gutenberg#5816.
Main changes include a minor file structure change (blocks library now provided by
@wordpress/blocks) and the update from GB master.This PR drops
Prettierin favor of the GB provided eslint config. Unfortunately, the two (Calypso Prettier, GB's eslint) have become incompatible. EDIT: integrated the formatting part by usingprettier-eslint.