gecko-dev/devtools/client/netmonitor/.eslintrc.js
Alexandre Poirot 89cc513122 Bug 1408182 - Replace ImmutableJS by plain JS code; r=rickychien
MozReview-Commit-ID: FFUNk97n4zS

--HG--
extra : rebase_source : af2847e867f7a5a2fa453d6f81ca46f7e8775f35
2017-10-11 17:35:09 +02:00

30 lines
923 B
JavaScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
module.exports = {
"env": {
"browser": true,
},
// Extend from the devtools eslintrc.
"extends": "../../.eslintrc.js",
"rules": {
// The netmonitor is being migrated to HTML and cleaned of
// chrome-privileged code, so this rule disallows requiring chrome
// code. Some files in the netmonitor disable this rule still. The
// goal is to enable the rule globally on all files.
/* eslint-disable max-len */
"mozilla/reject-some-requires": ["error", "^(chrome|chrome:.*|resource:.*|devtools/server/.*|.*\\.jsm|devtools/shared/platform/(chome|content)/.*)$"],
},
"parserOptions": {
"ecmaFeatures": {
experimentalObjectRestSpread: true,
},
},
};