Can you integrate text formatter tool?

That’s interesting :+1:

It seems the original project was using the prettier package, which supports the JSX syntax. Another option that may be useful too is to add the “prettier” package to your project and then run it with the “start” or “prestart” script:

{
  ...
  "scripts": {
    "prestart": "prettier --write '**/*.js'",
    ...
  },
  "dependencies": {
    "prettier": "^1.11.1",
    ...
  },
  ...
}

But that means it will edit your code while you’re typing (unless you disable rebuilds). Alternatively you can run manually using the “Advanced Options > Open Console” with npx prettier --write '**/*.js'.

1 Like