gecko-dev/devtools/client/inspector/.eslintrc.js
Julian Descottes 3d17d318b3 Bug 1335768 - add linting to prevent regressions for inspector webpack workflow;r=gl
MozReview-Commit-ID: GkKK8V1MZ2e

--HG--
extra : rebase_source : 98bd646fc547d8a4b4dac88553225c09bdd79f01
2017-02-14 11:59:37 +01:00

27 lines
885 B
JavaScript

"use strict";
module.exports = {
// Extend from the devtools eslintrc.
"extends": "../../.eslintrc.js",
"rules": {
// The inspector is being migrated to HTML and cleaned of
// chrome-privileged code, so this rule disallows requiring chrome
// code. Some files in the inspector 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)/.*)$"],
// The webpack bundle does not support trailing commas in functions, so disabled it
// explicitly with linting here.
"comma-dangle": ["error", {
"arrays": "ignore",
"objects": "ignore",
"imports": "ignore",
"exports": "ignore",
"functions": "never",
}]
},
};