visual-studio-codereact-adminprettier-vscode

Which source code formatter is being used in react-admin?


I cloned the source code of react-admin from https://github.com/marmelab/react-admin.

When I tried formatting the source code by VS Code (Windows) with "Prettier - Code formatter" or "TypeScript and Javascript Language Features", the source code is formatted differently with the current format of react-admin source code.

Which source code formatter are they using?


Solution

  • It's using eslint with prettier, but with a specific config:

    You should configure your editor to read the project-specific configuration for these tools.