2016-10-13 23:43:16 +03:00
|
|
|
"use strict";
|
2017-10-24 23:11:31 +03:00
|
|
|
/* eslint-env node */
|
2016-10-13 23:43:16 +03:00
|
|
|
|
|
|
|
module.exports = {
|
2017-03-13 17:30:50 +03:00
|
|
|
"root": true,
|
|
|
|
|
|
|
|
// We would like the same base rules as provided by
|
|
|
|
// mozilla/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js
|
|
|
|
"extends": [
|
|
|
|
"plugin:mozilla/recommended"
|
|
|
|
],
|
|
|
|
|
2016-06-20 15:22:18 +03:00
|
|
|
// When adding items to this file please check for effects on sub-directories.
|
|
|
|
"plugins": [
|
|
|
|
"mozilla"
|
|
|
|
],
|
2017-03-13 17:30:50 +03:00
|
|
|
|
2018-02-08 12:43:53 +03:00
|
|
|
"rules": {
|
|
|
|
// XXX We are waiting for m-c to create a script to fix these in bug 1433175.
|
|
|
|
// Disabling this rule as part of bug 1436605 until that is the case.
|
2018-07-26 13:57:39 +03:00
|
|
|
"mozilla/use-cc-etc": "off",
|
|
|
|
"no-multi-spaces": ["error", { ignoreEOLComments: true }],
|
2018-02-08 12:43:53 +03:00
|
|
|
},
|
|
|
|
|
2017-03-13 17:30:50 +03:00
|
|
|
// The html plugin is enabled via a command line option on eslint. To avoid
|
|
|
|
// bad interactions with the xml preprocessor in eslint-plugin-mozilla, we
|
|
|
|
// turn off processing of the html plugin for .xml files.
|
|
|
|
"settings": {
|
|
|
|
"html/xml-extensions": [ ".xhtml" ]
|
2016-06-20 15:22:18 +03:00
|
|
|
},
|
2017-11-15 17:24:49 +03:00
|
|
|
|
|
|
|
"overrides": [{
|
|
|
|
// eslint-plugin-html handles eol-last slightly different - it applies to
|
|
|
|
// each set of script tags, so we turn it off here.
|
|
|
|
"files": "**/*.*html",
|
|
|
|
"rules": {
|
|
|
|
"eol-last": "off",
|
|
|
|
}
|
|
|
|
}]
|
2016-10-13 23:43:16 +03:00
|
|
|
};
|