mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
Bug 1578679 - Remove unnecessary section from .eslintrc.js now that the xml files it references have been removed. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D44640 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
21ac75bbc5
commit
98c51594e4
37
.eslintrc.js
37
.eslintrc.js
@ -43,34 +43,19 @@ module.exports = {
|
||||
"mozilla"
|
||||
],
|
||||
"overrides": [{
|
||||
"files": [
|
||||
"*.html",
|
||||
"*.xhtml",
|
||||
"*.xul",
|
||||
"*.xml",
|
||||
"js/src/builtin/**/*.js",
|
||||
"js/src/shell/**/*.js"
|
||||
],
|
||||
"rules": {
|
||||
// Curly brackets are required for all the tree via recommended.js,
|
||||
// however these files aren't auto-fixable at the moment.
|
||||
"curly": "off"
|
||||
},
|
||||
}, {
|
||||
// These xbl bindings are assumed to be in the browser-window environment,
|
||||
// we would mark it in the files, but ESLint made this more difficult with
|
||||
// our xml processor, so we list them here. Bug 1397874 & co are working
|
||||
// towards removing these files completely.
|
||||
"files": [
|
||||
"browser/base/content/tabbrowser.xml",
|
||||
"browser/base/content/urlbarBindings.xml",
|
||||
"browser/components/search/content/search.xml",
|
||||
"browser/components/translation/translation-infobar.xml",
|
||||
"toolkit/components/prompts/content/tabprompts.xml"
|
||||
"*.html",
|
||||
"*.xhtml",
|
||||
"*.xul",
|
||||
"*.xml",
|
||||
"js/src/builtin/**/*.js",
|
||||
"js/src/shell/**/*.js"
|
||||
],
|
||||
"env": {
|
||||
"mozilla/browser-window": true
|
||||
}
|
||||
"rules": {
|
||||
// Curly brackets are required for all the tree via recommended.js,
|
||||
// however these files aren't auto-fixable at the moment.
|
||||
"curly": "off"
|
||||
},
|
||||
}, {
|
||||
// TODO: Bug 1515949. Enable no-undef for gfx/
|
||||
"files": "gfx/layers/apz/test/mochitest/**",
|
||||
|
Loading…
Reference in New Issue
Block a user