Skip to content

Commit

Permalink
fix: fix severity config in ui (#5242)
Browse files Browse the repository at this point in the history
* fix: fix severity config in ui

closes #5175

* test: update test
  • Loading branch information
sodatea committed Mar 19, 2020
1 parent 41cf5e1 commit 36c6c2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/@vue/cli-plugin-eslint/__tests__/ui.spec.js
Expand Up @@ -84,7 +84,7 @@ describe('getEslintPrompts', () => {
extends: 'plugin:vue/recommended',
rules: {
'vue/lorem': ['error', ['asd']], // custom setting
'vue/ipsum': 'warning'
'vue/ipsum': 'warn'
}
}
}
Expand Down Expand Up @@ -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"]]')
})

Expand Down
2 changes: 1 addition & 1 deletion packages/@vue/cli-plugin-eslint/ui/configDescriptor.js
Expand Up @@ -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 = [
Expand Down

0 comments on commit 36c6c2e

Please sign in to comment.