Fix: switch to LINTER_DEFAULTS

This commit is contained in:
eight 2018-09-02 16:38:57 +08:00
parent 44cb9e03a0
commit 8676fbf9fe

View File

@ -1,4 +1,4 @@
/* global memoize editorWorker stylelint csslint showCodeMirrorPopup loadScript messageBox */ /* global memoize editorWorker showCodeMirrorPopup loadScript messageBox LINTER_DEFAULTS*/
'use strict'; 'use strict';
(() => { (() => {
@ -30,7 +30,7 @@
editorWorker.getStylelintRules : editorWorker.getCsslintRules); editorWorker.getStylelintRules : editorWorker.getCsslintRules);
const linterTitle = linter === 'stylelint' ? 'Stylelint' : 'CSSLint'; const linterTitle = linter === 'stylelint' ? 'Stylelint' : 'CSSLint';
const defaultConfig = stringifyConfig( const defaultConfig = stringifyConfig(
linter === 'stylelint' ? stylelint.DEFAULT : csslint.DEFAULT linter === 'stylelint' ? LINTER_DEFAULTS.STYLELINT : LINTER_DEFAULTS.CSSLINT
); );
const title = t('linterConfigPopupTitle', linterTitle); const title = t('linterConfigPopupTitle', linterTitle);
const popup = showCodeMirrorPopup(title, null, { const popup = showCodeMirrorPopup(title, null, {