Bug 1403519: reset SCHEDULES.exclusive if set multiple times; r=gps
[gecko.git] / .eslintrc.js
blobc7e6f6487149ac0491af7525add77e60699fb47a
1 "use strict";
3 module.exports = {
4   // New rules and configurations should generally be added in
5   // tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js to
6   // allow external repositories that use the plugin to pick them up as well.
7   "extends": [
8     "plugin:mozilla/recommended"
9   ],
10   "plugins": [
11     "mozilla"
12   ],
13   // The html plugin is enabled via a command line option on eslint. To avoid
14   // bad interactions with the xml preprocessor in eslint-plugin-mozilla, we
15   // turn off processing of the html plugin for .xml files.
16   "settings": {
17     "html/xml-extensions": [ ".xhtml" ]
18   },
20   "overrides": [{
21     // eslint-plugin-html handles eol-last slightly different - it applies to
22     // each set of script tags, so we turn it off here.
23     "files": "**/*.*html",
24     "rules": {
25       "eol-last": "off",
26     }
27   }, {
28     // XXX Bug 1421969. These files/directories are still being fixed,
29     // so turn off mozilla/use-services for them for now.
30     "files": [
31       // Browser: Bug 1421379
32       "browser/extensions/shield-recipe-client/test/browser/head.js",
33       "browser/modules/offlineAppCache.jsm",
34       "devtools/**",
35       "extensions/pref/**",
36       "mobile/android/**",
37       "testing/**",
38     ],
39     "rules": {
40       "mozilla/use-services": "off",
41     }
42   }]