gecko-dev/devtools/.eslintrc.xpcshell.js
Mark Banner f7fca8642f Bug 1240165 - Expand the eslint rule 'mark-test-function-used' to cover xpcshell tests as well as gecko tests and apply to the whole tree. r=miker
MozReview-Commit-ID: FlbJ8yzWXlw

--HG--
extra : rebase_source : 3f9a2997b36ef8f019e38e4af61a0c44e0e7283c
2016-10-26 09:46:40 +01:00

20 lines
679 B
JavaScript

// Parent config file for all devtools xpcshell files.
module.exports = {
"extends": [
"../testing/xpcshell/xpcshell.eslintrc.js"
],
"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,
// Tests can always import anything.
"mozilla/reject-some-requires": 0,
}
};