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
commitad18d877ddd2a44d98fa12ccd3dbbcf4d0ac4299 (patch)
tree10027f336435511475e392454359edea8e25895d /devtools/.eslintrc.xpcshell.js
parent15477ed9af4859dacb069040b5d4de600803d3bc (diff)
downloaduxp-ad18d877ddd2a44d98fa12ccd3dbbcf4d0ac4299.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,
+ }
+};