mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
777b70a929
MozReview-Commit-ID: KdmpXq2rg1q --HG-- extra : rebase_source : fc89233a590604e1035be4aebfee9cda894ee07e
31 lines
895 B
JavaScript
31 lines
895 B
JavaScript
"use strict";
|
|
|
|
module.exports = {
|
|
// When adding items to this file please check for effects on sub-directories.
|
|
"plugins": [
|
|
"mozilla"
|
|
],
|
|
"rules": {
|
|
"mozilla/avoid-removeChild": "error",
|
|
"mozilla/avoid-nsISupportsString-preferences": "error",
|
|
"mozilla/import-browser-window-globals": "error",
|
|
"mozilla/import-globals": "warn",
|
|
"mozilla/no-import-into-var-and-global": "error",
|
|
"mozilla/no-useless-parameters": "error",
|
|
"mozilla/no-useless-removeEventListener": "error",
|
|
"mozilla/use-default-preference-values": "error",
|
|
"mozilla/use-ownerGlobal": "error",
|
|
|
|
// No (!foo in bar) or (!object instanceof Class)
|
|
"no-unsafe-negation": "error",
|
|
// No eval() and no strings in the first param of setTimeout or setInterval
|
|
"no-implied-eval": "error",
|
|
},
|
|
"env": {
|
|
"es6": true
|
|
},
|
|
"parserOptions": {
|
|
"ecmaVersion": 8,
|
|
},
|
|
};
|