Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 36c6c2e

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

File tree

Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed

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

Copy file name to clipboardExpand all lines: packages/@vue/cli-plugin-eslint/__tests__/ui.spec.js
+2-2Lines changed: 2 additions & 2 deletions
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

Copy file name to clipboardExpand all lines: packages/@vue/cli-plugin-eslint/ui/configDescriptor.js
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.