Updated Style Guide (markdown)
parent
cda85235a7
commit
a819cc9f6e
@ -1,6 +1,6 @@
|
||||
This page outlines the style conventions that PDF.js follows to maintain a consistent code base. We ask each contributor that creates a pull request to adhere to these conventions.
|
||||
|
||||
Many of these conventions will be checked automatically by a linter after each push to a branch of a pull request. Please refer to https://github.com/mozilla/pdf.js/wiki/Contributing#4-run-lint-and-testing for information about running the linter locally.
|
||||
Most of these conventions ware checked automatically by a linter (Prettier) after each push to a branch of a pull request. Refer to https://github.com/mozilla/pdf.js/wiki/Contributing#4-run-lint-and-testing for information about running the linter locally.
|
||||
|
||||
## General
|
||||
* Indentation: 2 spaces
|
||||
@ -68,7 +68,7 @@ var ClassName = (function ClassNameClosure() {
|
||||
})();
|
||||
```
|
||||
|
||||
However, we are in the process of converting the codebase to ES6 syntax since classes are generally available in browsers and well optimized nowadays, so for new code we prefer the following way of creating classes.
|
||||
However, we are in the process of converting our code to ES6 syntax since classes are generally available in browsers and well optimized nowadays, so for new code we prefer the following way of creating classes.
|
||||
|
||||
```javascript
|
||||
class ClassName {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user