mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
9f564cd9e1
MozReview-Commit-ID: 3lv0K1unAc --HG-- extra : rebase_source : 4e4ef0f40f377298013dc17ca0f077890d32669c
29 lines
783 B
JavaScript
29 lines
783 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",
|
|
},
|
|
"env": {
|
|
"es6": true
|
|
},
|
|
"parserOptions": {
|
|
"ecmaVersion": 8,
|
|
},
|
|
};
|