Skip to content

Commit 36c6c2e

Browse files
authored
fix: fix severity config in ui (vuejs#5242)
* fix: fix severity config in ui closes vuejs#5175 * test: update test
1 parent 41cf5e1 commit 36c6c2e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/@vue/cli-plugin-eslint/__tests__/ui.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ describe('getEslintPrompts', () => {
8484
extends: 'plugin:vue/recommended',
8585
rules: {
8686
'vue/lorem': ['error', ['asd']], // custom setting
87-
'vue/ipsum': 'warning'
87+
'vue/ipsum': 'warn'
8888
}
8989
}
9090
}
@@ -146,7 +146,7 @@ describe('getEslintPrompts', () => {
146146
})
147147

148148
it('sets value on prompt item, if the rule was set in project\'s eslint config', () => {
149-
expect(prompts[1].value).toBe('"warning"')
149+
expect(prompts[1].value).toBe('"warn"')
150150
expect(prompts[2].value).toBe('["error",["asd"]]')
151151
})
152152

packages/@vue/cli-plugin-eslint/ui/configDescriptor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const CATEGORIES = [
1010
const DEFAULT_CATEGORY = 'essential'
1111
const RULE_SETTING_OFF = 'off'
1212
const RULE_SETTING_ERROR = 'error'
13-
const RULE_SETTING_WARNING = 'warning'
13+
const RULE_SETTING_WARNING = 'warn'
1414
const RULE_SETTINGS = [RULE_SETTING_OFF, RULE_SETTING_ERROR, RULE_SETTING_WARNING]
1515

1616
const defaultChoices = [

0 commit comments

Comments
 (0)