mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-07 02:05:08 +08:00
Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
@ -46,15 +46,14 @@ Algorithms in this repo should not be how-to examples for existing JavaScript pa
|
|||||||
|
|
||||||
#### Coding Style
|
#### Coding Style
|
||||||
|
|
||||||
We want your work to be readable by others; therefore, we encourage you to note the following:
|
To maximize the readability and correctness of our code, we require that new submissions follow [JavaScript Standard Style](https://standardjs.com/)
|
||||||
- Must follow [JavaScript Standard Style](https://standardjs.com/)
|
|
||||||
- Command to install JavaScript Standard Style
|
- Command to install JavaScript Standard Style
|
||||||
```
|
```
|
||||||
$ npm install standard --save-dev
|
$ npm install standard --save-dev
|
||||||
```
|
```
|
||||||
- Usage
|
- Usage
|
||||||
```
|
```
|
||||||
$ standard
|
$ standard MyFile.js // if that fails, try: npx standard MyFile.js
|
||||||
```
|
```
|
||||||
|
|
||||||
- Use camelCase for identifier names (variables and functions)
|
- Use camelCase for identifier names (variables and functions)
|
||||||
|
Reference in New Issue
Block a user