summaryrefslogtreecommitdiffstats
path: root/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/general-test.js
blob: 2ed45ff621f837eb878bf6ce16aff341b0a9f9c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Parent config file for all xpcshell files.
"use strict";

module.exports = {
  rules: {
    "mozilla/import-headjs-globals": "error",
    "mozilla/mark-test-function-used": "error",
    "mozilla/no-arbitrary-setTimeout": "error",

    // Bug 1883707 - Turn off no-console in tests at the moment.
    "no-console": "off",
    // Turn off no-unsanitized for tests, as we do want to be able to use
    // these for testing.
    "no-unsanitized/method": "off",
    "no-unsanitized/property": "off",
  },
};