From cbe6decb03c908e0c67da527ced6cb585dd376a3 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Fri, 25 Aug 2017 14:09:48 -0500 Subject: [PATCH] Assign `stylelint` to global, not `lint` --- vendor-overwrites/codemirror/addon/lint/css-lint.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor-overwrites/codemirror/addon/lint/css-lint.js b/vendor-overwrites/codemirror/addon/lint/css-lint.js index cc43f35e..0f8195ac 100644 --- a/vendor-overwrites/codemirror/addon/lint/css-lint.js +++ b/vendor-overwrites/codemirror/addon/lint/css-lint.js @@ -71,14 +71,14 @@ CodeMirror.registerHelper('lint', 'stylelint', text => { const found = []; - window.stylelint = require('stylelint').lint; + window.stylelint = require('stylelint'); if (window.stylelint) { return BG.chromeLocal.getValue('editorStylelintRules').then((rules = stylelintDefaultConfig.rules) => { // stylelintDefaultConfig stored in stylelint-config.js & loaded by edit/lint.js if (Object.keys(rules).length === 0) { rules = stylelintDefaultConfig.rules; } - return stylelint({ + return stylelint.lint({ code: text, config: { syntax: stylelintDefaultConfig.syntax,