Bug 1335768 - add linting to prevent regressions for inspector webpack workflow;r=gl

MozReview-Commit-ID: GkKK8V1MZ2e

--HG--
extra : rebase_source : 98bd646fc547d8a4b4dac88553225c09bdd79f01
This commit is contained in:
Julian Descottes 2017-02-14 11:59:37 +01:00
Родитель 64660d1cc7
Коммит 3d17d318b3
3 изменённых файлов: 18 добавлений и 8 удалений

Просмотреть файл

@ -10,6 +10,17 @@ module.exports = {
// code. Some files in the inspector disable this rule still. The
// goal is to enable the rule globally on all files.
/* eslint-disable max-len */
"mozilla/reject-some-requires": ["error", "^(chrome|chrome:.*|resource:.*|devtools/server/.*|.*\\.jsm|devtools/shared/platform/(chome|content)/.*)$"],
"mozilla/reject-some-requires": ["error",
"^(chrome|chrome:.*|resource:.*|devtools/server/.*|.*\\.jsm|devtools/shared/platform/(chome|content)/.*)$"],
// The webpack bundle does not support trailing commas in functions, so disabled it
// explicitly with linting here.
"comma-dangle": ["error", {
"arrays": "ignore",
"objects": "ignore",
"imports": "ignore",
"exports": "ignore",
"functions": "never",
}]
},
};

Просмотреть файл

@ -54,8 +54,7 @@ module.exports = createClass({
boxModel,
})
:
null,
null
);
},
});

Просмотреть файл

@ -65,15 +65,15 @@ module.exports = createClass({
className: "boxmodel-properties-expander theme-twisty",
open: this.state.isOpen,
onClick: this.onToggleExpander,
},
}
),
dom.span(
{
className: "boxmodel-properties-label",
title: BOXMODEL_L10N.getStr("boxmodel.propertiesLabel"),
},
BOXMODEL_L10N.getStr("boxmodel.propertiesLabel"),
),
BOXMODEL_L10N.getStr("boxmodel.propertiesLabel")
)
),
dom.div(
{
@ -81,8 +81,8 @@ module.exports = createClass({
hidden: !this.state.isOpen,
tabIndex: 0,
},
properties,
),
properties
)
);
},