Fix: switch to LINTER_DEFAULTS
This commit is contained in:
parent
44cb9e03a0
commit
8676fbf9fe
|
@ -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, {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user