fix: fix severity config in ui (#5242)

* fix: fix severity config in ui

closes #5175

* test: update test
This commit is contained in:
Haoqun Jiang
2020-03-19 16:44:16 +08:00
committed by GitHub
parent 41cf5e1059
commit 36c6c2e8e5
2 changed files with 3 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ describe('getEslintPrompts', () => {
extends: 'plugin:vue/recommended',
rules: {
'vue/lorem': ['error', ['asd']], // custom setting
'vue/ipsum': 'warning'
'vue/ipsum': 'warn'
}
}
}
@@ -146,7 +146,7 @@ describe('getEslintPrompts', () => {
})
it('sets value on prompt item, if the rule was set in project\'s eslint config', () => {
expect(prompts[1].value).toBe('"warning"')
expect(prompts[1].value).toBe('"warn"')
expect(prompts[2].value).toBe('["error",["asd"]]')
})

View File

@@ -10,7 +10,7 @@ const CATEGORIES = [
const DEFAULT_CATEGORY = 'essential'
const RULE_SETTING_OFF = 'off'
const RULE_SETTING_ERROR = 'error'
const RULE_SETTING_WARNING = 'warning'
const RULE_SETTING_WARNING = 'warn'
const RULE_SETTINGS = [RULE_SETTING_OFF, RULE_SETTING_ERROR, RULE_SETTING_WARNING]
const defaultChoices = [