Confirmed users
1,158
edits
No edit summary |
|||
Line 20: | Line 20: | ||
ESLint will enforce most of these rules. | ESLint will enforce most of these rules. | ||
== Code Guidelines == | |||
For Chrome APIs we'll support the callback interface to maintain compatibility. For new APIs, not Chrome ones, we'll use the promise interface to all APIs. See the [https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API#Callbacks_and_promises MDN docs] for the difference. | |||
== Checking your code with ESLint == | == Checking your code with ESLint == |