Skip to content

Commit a72897c

Browse files
committed
fix: update eslint-plugin-sonarjs to v2.0.3, @trivago/prettier-plugin-sort-imports to v4.3.0
1 parent fa934fa commit a72897c

File tree

6 files changed

+1591
-2191
lines changed

6 files changed

+1591
-2191
lines changed

packages/eslint-config-qiwi/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@typescript-eslint/parser": "^7.16.0",
3737
"eslint-plugin-react": "^7.37.1",
3838
"eslint-plugin-react-hooks": "^4.6.2",
39-
"eslint-plugin-sonarjs": "^2.0.0",
39+
"eslint-plugin-sonarjs": "^2.0.3",
4040
"eslint-plugin-unicorn": "^47.0.0"
4141
},
4242
"peerDependencies": {
@@ -46,11 +46,11 @@
4646
"devDependencies": {
4747
"@qiwi/lint-config-infra": "2.1.1",
4848
"@qiwi/stdstream-snapshot": "^1.2.9",
49-
"@swissquote/crafty-preset-jest": "^1.22.3",
50-
"@types/jest": "^29.5.1",
49+
"@swissquote/crafty-preset-jest": "^1.27.0",
50+
"@types/jest": "^29.5.13",
5151
"eslint": "^8.56.0",
52-
"jest": "^29.5.0",
53-
"ts-jest": "^29.1.0",
52+
"jest": "^29.7.0",
53+
"ts-jest": "^29.2.5",
5454
"typescript": "^5.0.0"
5555
}
5656
}

packages/eslint-config-qiwi/src/test/ts/__snapshots__/index.ts.snap

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ exports[`eslint-config-qiwi (TypeScript) config works as expected 1`] = `
3737
19:5 error This case's code block is the same as the block for the case on line 17 sonarjs/no-duplicated-branches
3838
19:5 error Expected a 'break' statement before 'case' no-fallthrough
3939
27:7 error Do not use the '===' operator to compare against -0 no-compare-neg-zero
40-
28:10 error This number literal will lose precision at runtime @typescript-eslint/no-loss-of-precision
41-
28:10 error Octal literals should not be used no-octal
4240
29:5 error Move function declaration to function body root no-inner-declarations
4341
29:14 warning 'declaration' is defined but never used @typescript-eslint/no-unused-vars
4442
29:28 error Unexpected empty function 'declaration' @typescript-eslint/no-empty-function
@@ -56,7 +54,7 @@ exports[`eslint-config-qiwi (TypeScript) config works as expected 1`] = `
5654
64:33 error Empty block statement no-empty
5755
67:1 error Read-only global 'window' should not be modified no-global-assign
5856
59-
46 problems (38 errors, 8 warnings)
57+
44 problems (36 errors, 8 warnings)
6058
10 errors and 0 warnings potentially fixable with the \`--fix\` option.",
6159
}
6260
`;

packages/eslint-config-qiwi/src/test/ts/rules/some-rules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const bar = (foo) => {
2525
}
2626

2727
if (sw === -0) {
28-
sw = 071
28+
sw = 0o71
2929
function declaration() { }
3030
}
3131

packages/infra/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
"typedoc": "../../node_modules/.bin/typedoc"
2121
},
2222
"devDependencies": {
23-
"@types/jest": "^29.5.1",
24-
"@types/node": "^20.0.0",
25-
"buildstamp": "^3.0.0",
23+
"@types/jest": "^29.5.13",
24+
"@types/node": "^22.7.5",
25+
"buildstamp": "^3.5.0",
2626
"eslint": "^8.39.0",
2727
"eslint-plugin-disable": "^2.0.3",
28-
"jest": "^29.5.0",
28+
"jest": "^29.7.0",
2929
"prettier": "^2.8.8",
30-
"typedoc": "^0.26.0",
31-
"typescript": "^5.0.4"
30+
"typedoc": "^0.26.8",
31+
"typescript": "^5.6.3"
3232
},
3333
"license": "MIT",
3434
"repository": {

packages/prettier-config-qiwi/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@
2929
"author": "QIWI <[email protected]>",
3030
"license": "MIT",
3131
"dependencies": {
32-
"@trivago/prettier-plugin-sort-imports": "^4.1.1"
32+
"@trivago/prettier-plugin-sort-imports": "^4.3.0"
3333
},
3434
"peerDependencies": {
3535
"prettier": "^2.0.0",
3636
"typescript": "^5.0.0"
3737
},
3838
"devDependencies": {
3939
"@qiwi/lint-config-infra": "2.1.1",
40-
"@swissquote/crafty-preset-jest": "^1.22.3",
41-
"jest": "^29.5.0",
40+
"@swissquote/crafty-preset-jest": "^1.27.0",
41+
"jest": "^29.7.0",
4242
"prettier": "^2.8.8",
4343
"stdstream-snapshot": "^1.2.9",
44-
"ts-jest": "^29.1.0",
45-
"typescript": "^5.0.4"
44+
"ts-jest": "^29.2.5",
45+
"typescript": "^5.6.3"
4646
}
4747
}

0 commit comments

Comments
 (0)