Confirmed users
45
edits
(add emacs instructions) |
Ednapiranha (talk | contribs) m (Added comment about using browser globals such as window and document) |
||
Line 47: | Line 47: | ||
The primary source for the style guide is the [https://dxr.mozilla.org/mozilla-central/source/browser/devtools/.eslintrc .eslintrc]; but for quick reference here are some of the main code style rules: | The primary source for the style guide is the [https://dxr.mozilla.org/mozilla-central/source/browser/devtools/.eslintrc .eslintrc]; but for quick reference here are some of the main code style rules: | ||
* file references to browser globals such as <code>window</code> and <code>document</code> need <code>/* eslint-env browser */</code> at the top of the file | |||
* lines should be 80 characters maximum (go longer if wrapping hurts readability), | * lines should be 80 characters maximum (go longer if wrapping hurts readability), | ||
* indent with 2 spaces (no tabs!), | * indent with 2 spaces (no tabs!), |