130
edits
(Added section with a list of advice for when removing eslint errors) |
(Added bullet point for using template strings) |
||
| Line 107: | Line 107: | ||
** <code>const { foo, bar } = require("foo/bar");</code>, | ** <code>const { foo, bar } = require("foo/bar");</code>, | ||
** <code>const { foo, bar } = Cu.import("…", {});</code>, | ** <code>const { foo, bar } = Cu.import("…", {});</code>, | ||
* use Maps, Sets, WeakMaps when possible. | * use Maps, Sets, WeakMaps when possible, | ||
* use [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals <code>`template strings`</code>] whenever possible to avoid concatenation, allow multi-line strings, and interpolation | |||
== Advice to patch authors == | == Advice to patch authors == | ||
edits