@@ -12,71 +12,72 @@ Object {
1212 1 :1 error Run autofix to sort these imports ! simple - import - sort / imports
1313
1414/ packages / eslint - config - qiwi / src / test / ts / rules / some - rules .ts
15- 1 :20 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
16- 1:21 warning Argument 'foo' should be typed @typescript-eslint/explicit-module-boundary-types
17- 3:7 error 'name' is assigned a value but never used @typescript-eslint/no-unused-vars
18- 4:7 error It's not necessary to initialize 'namefoo' to undefined no-undef-init
19- 4:7 error 'namefoo' is assigned a value but never used @typescript-eslint/no-unused-vars
20- 4:7 error 'namefoo' is never reassigned. Use 'const' instead prefer-const
21- 4:17 error Do not use useless \`undefined\` unicorn/no-useless-undefined
22- 5:7 error 'message' is assigned a value but never used @typescript-eslint/no-unused-vars
23- 5:7 error 'message' is never reassigned. Use 'const' instead prefer-const
24- 5:22 error Unnecessary escape character: \\\\o no-useless-escape
25- 6:3 error Unexpected var, use let or const instead no-var
26- 6:7 error 'pattern1' is assigned a value but never used @typescript-eslint/no-unused-vars
27- 6:18 error Use Unicode escapes instead of hexadecimal escapes unicorn/no-hex-escape
28- 6:18 error Unexpected control character(s ) in regular expression: \\\\x1f no-control-regex
29- 6:18 error Use uppercase characters for the value of the escape sequence unicorn/escape-case
30- 6:24 error Extra semicolon semi
31- 7:3 error Unexpected var, use let or const instead no-var
32- 7:7 error 'pattern2' is assigned a value but never used @typescript-eslint/no-unused-vars
33- 7:18 error Use a regular expression literal instead of the 'RegExp' constructor prefer-regex-literals
34- 7:29 error Use uppercase characters for the value of the escape sequence unicorn/escape-case
35- 7:29 error Use Unicode escapes instead of hexadecimal escapes unicorn/no-hex-escape
36- 7:29 error Unexpected control character(s ) in regular expression: \\\\x1f no-control-regex
37- 7:29 error Strings must use singlequote quotes
38- 7:36 error Extra semicolon semi
39- 9:9 error 'myRegex' is assigned a value but never used @typescript-eslint/no-unused-vars
40- 9:19 error Empty class no-empty-character-class
41- 10:3 error Object prototype is read only, properties should not be added no-extend-native
42- 11:3 error Unexpected var, use let or const instead no-var
43- 15:5 error This case's code block is the same as the block for the case on line 13 sonarjs/no-duplicated-branches
44- 15:5 error Duplicate case label no-duplicate-case
45- 15:5 error Expected a 'break' statement before 'case' no-fallthrough
46- 17:5 error This case's code block is the same as the block for the case on line 15 sonarjs/no-duplicated-branches
47- 17:5 error Expected a 'break' statement before 'case' no-fallthrough
48- 21:10 error Expected '===' and instead saw '==' eqeqeq
49- 25:7 error Do not use the '===' operator to compare against -0 no-compare-neg-zero
50- 26:10 error This number literal will lose precision at runtime no-loss-of-precision
51- 26:10 error Octal literals should not be used no-octal
52- 27:5 error Move function declaration to function body root no-inner-declarations
53- 27:14 error 'declaration' is defined but never used @typescript-eslint/no-unused-vars
54- 27:25 error Missing space before function parentheses space-before-function -paren
55- 27:28 error Unexpected empty function 'declaration' @typescript-eslint/no-empty-function
56- 30:3 error Expected space(s ) after \\"if\\" keyword-spacing
57- 30:6 error There should be no space after this paren space-in-parens
58- 30:7 error Unexpected constant condition no-constant-condition
59- 30:11 error There should be no space before this paren space-in-parens
60- 31:9 error Expected a conditional expression and instead saw an assignment no-cond-assign
61- 31:9 error Unexpected constant condition no-constant-condition
62- 37:11 error 'z' is assigned a value but never used @typescript-eslint/no-unused-vars
63- 42:45 error Missing space before => arrow-spacing
64- 42:48 error Missing space after => arrow-spacing
65- 45:8 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
66- 45:26 error Missing space before function parentheses space-before-function -paren
67- 46:10 error Redundant use of \`await\` on a return value no-return-await
68- 46:21 error Extra semicolon semi
69- 50:18 error Unexpected empty constructor @typescript-eslint/no-empty-function
70- 55:16 warning Argument 'value' should be typed @typescript-eslint/explicit-module-boundary-types
71- 56:17 error Extra semicolon semi
72- 60:8 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
73- 61:3 error The update clause in this loop moves the variable in the wrong direction for-direction
74- 61:8 error Unexpected var, use let or const instead no-var
75- 61:32 error Empty block statement no-empty
76- 62:3 error The update clause in this loop moves the variable in the wrong direction for-direction
77- 62:8 error Unexpected var, use let or const instead no-var
78- 62:33 error Empty block statement no-empty
79- 65:1 error Read-only global 'window' should not be modified no-global-assign
15+ 1 :20 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
16+ 1:21 warning Argument 'foo' should be typed @typescript-eslint/explicit-module-boundary-types
17+ 3:7 error 'name' is assigned a value but never used @typescript-eslint/no-unused-vars
18+ 4:7 error It's not necessary to initialize 'namefoo' to undefined no-undef-init
19+ 4:7 error 'namefoo' is assigned a value but never used @typescript-eslint/no-unused-vars
20+ 4:7 error 'namefoo' is never reassigned. Use 'const' instead prefer-const
21+ 4:17 error Do not use useless \`undefined\` unicorn/no-useless-undefined
22+ 5:7 error 'message' is assigned a value but never used @typescript-eslint/no-unused-vars
23+ 5:7 error 'message' is never reassigned. Use 'const' instead prefer-const
24+ 5:22 error Unnecessary escape character: \\\\o no-useless-escape
25+ 6:3 error Unexpected var, use let or const instead no-var
26+ 6:7 error 'pattern1' is assigned a value but never used @typescript-eslint/no-unused-vars
27+ 6:18 error Use Unicode escapes instead of hexadecimal escapes unicorn/no-hex-escape
28+ 6:18 error Unexpected control character(s ) in regular expression: \\\\x1f no-control-regex
29+ 6:18 error Use uppercase characters for the value of the escape sequence unicorn/escape-case
30+ 6:24 error Extra semicolon semi
31+ 7:3 error Unexpected var, use let or const instead no-var
32+ 7:7 error 'pattern2' is assigned a value but never used @typescript-eslint/no-unused-vars
33+ 7:18 error Use a regular expression literal instead of the 'RegExp' constructor prefer-regex-literals
34+ 7:29 error Use uppercase characters for the value of the escape sequence unicorn/escape-case
35+ 7:29 error Use Unicode escapes instead of hexadecimal escapes unicorn/no-hex-escape
36+ 7:29 error Unexpected control character(s ) in regular expression: \\\\x1f no-control-regex
37+ 7:29 error Strings must use singlequote quotes
38+ 7:36 error Extra semicolon semi
39+ 9:9 error 'myRegex' is assigned a value but never used @typescript-eslint/no-unused-vars
40+ 9:19 error Empty class no-empty-character-class
41+ 10:3 error Object prototype is read only, properties should not be added no-extend-native
42+ 11:3 error Unexpected var, use let or const instead no-var
43+ 15:5 error This case's code block is the same as the block for the case on line 13 sonarjs/no-duplicated-branches
44+ 15:5 error Duplicate case label no-duplicate-case
45+ 15:5 error Expected a 'break' statement before 'case' no-fallthrough
46+ 17:5 error This case's code block is the same as the block for the case on line 15 sonarjs/no-duplicated-branches
47+ 17:5 error Expected a 'break' statement before 'case' no-fallthrough
48+ 21:10 error Expected '===' and instead saw '==' eqeqeq
49+ 25:7 error Do not use the '===' operator to compare against -0 no-compare-neg-zero
50+ 26:10 error This number literal will lose precision at runtime no-loss-of-precision
51+ 26:10 error Octal literals should not be used no-octal
52+ 27:5 error Move function declaration to function body root no-inner-declarations
53+ 27:14 error 'declaration' is defined but never used @typescript-eslint/no-unused-vars
54+ 27:25 error Missing space before function parentheses space-before-function -paren
55+ 27:28 error Unexpected empty function 'declaration' @typescript-eslint/no-empty-function
56+ 30:3 error Expected space(s ) after \\"if\\" keyword-spacing
57+ 30:6 error There should be no space after this paren space-in-parens
58+ 30:7 error {\\" message\\ " :\\" This always evaluates to truthy. Consider refactoring this code.\\ " ,\\" secondaryLocations\\ " :]} sonarjs / no - gratuitous - expressions
59+ 30 :7 error Unexpected constant condition no - constant - condition
60+ 30 :11 error There should be no space before this paren space - in - parens
61+ 31 :9 error Expected a conditional expression and instead saw an assignment no - cond - assign
62+ 31 :9 error Unexpected constant condition no - constant - condition
63+ 37 :11 error ' z' is assigned a value but never used @typescript - eslint / no - unused - vars
64+ 42 :45 error Missing space before => arrow - spacing
65+ 42 :48 error Missing space after => arrow - spacing
66+ 45 :8 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
67+ 45:26 error Missing space before function parentheses space-before-function -paren
68+ 46:10 error Redundant use of \`await\` on a return value no-return-await
69+ 46:21 error Extra semicolon semi
70+ 50:18 error Unexpected empty constructor @typescript-eslint/no-empty-function
71+ 55:16 warning Argument 'value' should be typed @typescript-eslint/explicit-module-boundary-types
72+ 56:17 error Extra semicolon semi
73+ 60:8 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
74+ 61:3 error The update clause in this loop moves the variable in the wrong direction for-direction
75+ 61:8 error Unexpected var, use let or const instead no-var
76+ 61:32 error Empty block statement no-empty
77+ 62:3 error The update clause in this loop moves the variable in the wrong direction for-direction
78+ 62:8 error Unexpected var, use let or const instead no-var
79+ 62:33 error Empty block statement no-empty
80+ 65:1 error Read-only global 'window' should not be modified no-global-assign
8081
8182/packages/eslint-config-qiwi/src/test/ts/rules/trailing-comma-fail.ts
8283 3:7 error Missing trailing comma comma-dangle
@@ -86,7 +87,7 @@ Object {
8687/packages/eslint-config-qiwi/src/test/ts/rules/trailing-comma.ts
8788 6:27 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
8889
89- ✖ 70 problems (63 errors , 7 warnings )
90+ ✖ 71 problems (64 errors , 7 warnings )
9091 26 errors and 0 warnings potentially fixable with the \`--fix\` option.",
9192}
9293` ;
0 commit comments