Skip to content

Linting and formatting

marksvc edited this page Feb 15, 2023 · 1 revision

To check TypeScript for readability, maintainability, and functionality errors, and to check a few other files for proper formatting, run the following from the repo root, or just use VS Code with this project's recommended extensions.

cd src/SIL.XForge.Scripture/ClientApp/
npm run prettier
ng lint

C# can be formatted from the repo root by running

dotnet tool install csharpier
dotnet csharpier .
dotnet format style
dotnet format analyzers
Clone this wiki locally