diff options
Diffstat (limited to 'testing/talos/talos/tests/devtools/addon/content/.eslintrc.js')
-rw-r--r-- | testing/talos/talos/tests/devtools/addon/content/.eslintrc.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/talos/talos/tests/devtools/addon/content/.eslintrc.js b/testing/talos/talos/tests/devtools/addon/content/.eslintrc.js new file mode 100644 index 0000000000..e2b9246fbb --- /dev/null +++ b/testing/talos/talos/tests/devtools/addon/content/.eslintrc.js @@ -0,0 +1,26 @@ +"use strict"; + +module.exports = { + plugins: ["react"], + globals: { + exports: true, + isWorker: true, + loader: true, + module: true, + reportError: true, + require: true, + dampWindow: true, + }, + rules: { + "no-unused-vars": ["error", { args: "none", vars: "all" }], + // These are the rules that have been configured so far to match the + // devtools coding style. + + // Rules from the mozilla plugin + "mozilla/no-aArgs": "error", + "mozilla/no-define-cc-etc": "off", + // See bug 1224289. + "mozilla/reject-importGlobalProperties": ["error", "everything"], + "mozilla/var-only-at-top-level": "error", + }, +}; |