summaryrefslogtreecommitdiff
path: root/devtools/.eslintrc.xpcshell.js
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /devtools/.eslintrc.xpcshell.js
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloaduxp-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
Add m-esr52 at 52.6.0
Diffstat (limited to 'devtools/.eslintrc.xpcshell.js')
-rw-r--r--devtools/.eslintrc.xpcshell.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/devtools/.eslintrc.xpcshell.js b/devtools/.eslintrc.xpcshell.js
new file mode 100644
index 0000000000..a9c8faf824
--- /dev/null
+++ b/devtools/.eslintrc.xpcshell.js
@@ -0,0 +1,19 @@
+// 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,
+ }
+};