Bug 1593921 - Use eslint-disable-next-line to disable complexity checks in DevTools r=pbro
Using next-line is less error prone for refactorings than wrapping methods with enable/disable blocks. Differential Revision: https://phabricator.services.mozilla.com/D51782
This commit is contained in:
@@ -207,7 +207,7 @@ function getLineCountInComments(text) {
|
||||
* // between the original source and prettified source
|
||||
* }
|
||||
*/
|
||||
/* eslint-disable complexity */
|
||||
// eslint-disable-next-line complexity
|
||||
function prettifyCSS(text, ruleCount) {
|
||||
if (prettifyCSS.LINE_SEPARATOR == null) {
|
||||
const os = Services.appinfo.OS;
|
||||
@@ -475,7 +475,6 @@ function prettifyCSS(text, ruleCount) {
|
||||
|
||||
return { result, mappings };
|
||||
}
|
||||
/* eslint-enable complexity */
|
||||
|
||||
exports.prettifyCSS = prettifyCSS;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user