From 8676fbf9fee32c0c46f5722fc61a128ae59bd8a9 Mon Sep 17 00:00:00 2001 From: eight Date: Sun, 2 Sep 2018 16:38:57 +0800 Subject: [PATCH] Fix: switch to LINTER_DEFAULTS --- edit/linter-config-dialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edit/linter-config-dialog.js b/edit/linter-config-dialog.js index 752e5c7f..c1ccf51f 100644 --- a/edit/linter-config-dialog.js +++ b/edit/linter-config-dialog.js @@ -1,4 +1,4 @@ -/* global memoize editorWorker stylelint csslint showCodeMirrorPopup loadScript messageBox */ +/* global memoize editorWorker showCodeMirrorPopup loadScript messageBox LINTER_DEFAULTS*/ 'use strict'; (() => { @@ -30,7 +30,7 @@ editorWorker.getStylelintRules : editorWorker.getCsslintRules); const linterTitle = linter === 'stylelint' ? 'Stylelint' : 'CSSLint'; const defaultConfig = stringifyConfig( - linter === 'stylelint' ? stylelint.DEFAULT : csslint.DEFAULT + linter === 'stylelint' ? LINTER_DEFAULTS.STYLELINT : LINTER_DEFAULTS.CSSLINT ); const title = t('linterConfigPopupTitle', linterTitle); const popup = showCodeMirrorPopup(title, null, {