Skip to content
Permalink
Browse files

Chore: Change Severity `enum` values

Close #3344
  • Loading branch information
sarvaje authored and molant committed Nov 14, 2019
1 parent 5d08ae5 commit d3cd39bb2fb7aea7db7ba36dba056baaccd0b63c
Showing with 6 additions and 6 deletions.
  1. +4 −4 packages/hint/tests/lib/config/config-hints.ts
  2. +2 −2 packages/utils-types/src/severity.ts
@@ -61,8 +61,8 @@ class HintWithSchema implements IHint {
test('getSeverity with an string should return the right value', (t) => {
const data = new Map([
['off', 0],
['hint', 1],
['information', 2],
['information', 1],
['hint', 2],
['warning', 3],
['error', 4],
['invalid', null],
@@ -96,8 +96,8 @@ test('getSeverity with a number should return the right value', (t) => {
test('getSeverity with an array should return the right value', (t) => {
const data: Map<HintConfig, number | null> = new Map([
[(['off', {}] as HintConfig), 0],
[(['hint', {}] as HintConfig), 1],
[(['information', {}] as HintConfig), 2],
[(['information', {}] as HintConfig), 1],
[(['hint', {}] as HintConfig), 2],
[(['warning', {}] as HintConfig), 3],
[(['error', {}] as HintConfig), 4],
[(['invalid' as any, {}] as HintConfig), null],
@@ -1,8 +1,8 @@
/** The severity configuration of a hint */
export enum Severity {
off = 0,
hint = 1,
information = 2,
information = 1,
hint = 2,
warning = 3,
error = 4,
default = 5

0 comments on commit d3cd39b

Please sign in to comment.
You can’t perform that action at this time.