Fix: unused getName
This commit is contained in:
parent
45da3ff50e
commit
9dddbbba9f
12
edit/lint.js
12
edit/lint.js
|
@ -41,18 +41,6 @@ var linterConfig = {
|
|||
} : false;
|
||||
},
|
||||
|
||||
getName(cmLintOption) {
|
||||
if (!cmLintOption) {
|
||||
return null;
|
||||
}
|
||||
for (const linter of ['csslint', 'stylelint']) {
|
||||
if (cmLintOption.getAnnotations === CodeMirror.lint[linter]) {
|
||||
return linter;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
},
|
||||
|
||||
fallbackToDefaults(config, linter = linterConfig.getDefault()) {
|
||||
if (config && Object.keys(config).length) {
|
||||
if (linter === 'stylelint') {
|
||||
|
|
Loading…
Reference in New Issue
Block a user