Coding Standards (js, ts)
sharon wang edited this page Mar 2, 2023
·
5 revisions
Note: you can set up the
pre-commit
git hook to automatically run linting and formatting. Refer to the git hook setup instructions here: git_hooks/README.md
- indent with 2 spaces
- no line break before opening braces (types, functions, lambdas, etc)
- don't omit optional semicolons at end of statements
- source file names must be all lowercase and may include dashes
- maximum line width of 120
Our .prettierrc
: https://github.com/rstudio/rstudio/blob/main/src/node/desktop/.prettierrc
- Use PascalCase for
type
names - Use PascalCase for
enum
values - Use camelCase for
function
andmethod
names - Use camelCase for
property
names andlocal variables
Developing
- Beginners guide
- RStudio Development
- Git conventions
- Accessibility
- Development with Vagrant
- Electron desktop
- GWT
- Internationalization (i18n)
- Node Native Modules
Issues
Personal development environment
- Installing RStudio Dependencies
- M1 Mac Dev Machine Setup
- Visual Markdown Editing
- IDE Development Using Visual Studio Code
Building
Coding standards
Tests
Other topics