gecko-dev/devtools/.eslintrc.xpcshell
Tom Tromey 46650a73f4 Bug 1264649 - enable reject-some-requires rule for inspector; r=pbro
MozReview-Commit-ID: AX58XXecRcL

--HG--
extra : rebase_source : ec04a97c61a8cd5ba04e1f144df3f6799852d08b
2016-07-21 09:04:47 -06:00

22 lines
769 B
Plaintext

// Parent config file for all devtools xpcshell files.
{
"extends": [
"../testing/xpcshell/xpcshell.eslintrc"
],
"rules": {
// Allow non-camelcase so that run_test doesn't produce a warning.
"camelcase": 0,
// Allow using undefined variables so that tests can refer to functions
// and variables defined in head.js files, without having to maintain a
// list of globals in each .eslintrc file.
// Note that bug 1168340 will eventually help auto-registering globals
// from head.js files.
"no-undef": 0,
"block-scoped-var": 0,
// Allow run_test to be unused in xpcshell
"no-unused-vars": [2, { "varsIgnorePattern": "run_test" }],
// Tests can always import anything.
"mozilla/reject-some-requires": 0,
}
}