DevTools/CodingStandards: Difference between revisions

link to main .eslintrc
(added code formatting to use strict)
(link to main .eslintrc)
Line 29: Line 29:
Probably the best piece advice there is when talking about the code style is '''be consistent with the rest of the code in the file'''.
Probably the best piece advice there is when talking about the code style is '''be consistent with the rest of the code in the file'''.


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:


* lines should be 80 characters maximum (go longer if wrapping hurts readability),
* lines should be 80 characters maximum (go longer if wrapping hurts readability),
10

edits