mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-12 20:19:55 -05:00
fix: fix severity config in ui (#5242)
* fix: fix severity config in ui closes #5175 * test: update test
This commit is contained in:
@@ -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"]]')
|
||||
})
|
||||
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user