Skip to content

Phaedra-Solutions/Code-formatting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Coding guidelines for formatting

This document focuses on good coding conventions that we have implemented for our code bases. In order for these to work properly you need to have the following setup on your computer

We have made standard guidelines for frontend and backend. The lint files for both of these can be found in the documentation

⚠️ These are rules for only typescript based projects

Copy these and paste in your source code and auto fixable issues will be fixed automatically. The command to lint your code is usually found in your package.json

$ npm run lint
# npx eslint \"{src,apps,libs,test}/**/*.ts\ (Or similiar command)

This will output all issues. To fix the auto fixable issues, you can run

$ npx eslint \"{src,apps,libs,test}/**/*.ts\" --fix #(Or similiar command)

Rest of the things, you'll have to fix it yourself. It is however better to add these files in the start of the project so that the code is developed correctly right from the start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published