Skip to content

Commit

Permalink
fix: update eslint-plugin-sonarjs to v2.0.3, @trivago/prettier-plugin…
Browse files Browse the repository at this point in the history
…-sort-imports to v4.3.0
  • Loading branch information
antongolub committed Oct 10, 2024
1 parent fa934fa commit a72897c
Show file tree
Hide file tree
Showing 6 changed files with 1,591 additions and 2,191 deletions.
10 changes: 5 additions & 5 deletions packages/eslint-config-qiwi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@typescript-eslint/parser": "^7.16.0",
"eslint-plugin-react": "^7.37.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-sonarjs": "^2.0.0",
"eslint-plugin-sonarjs": "^2.0.3",
"eslint-plugin-unicorn": "^47.0.0"
},
"peerDependencies": {
Expand All @@ -46,11 +46,11 @@
"devDependencies": {
"@qiwi/lint-config-infra": "2.1.1",
"@qiwi/stdstream-snapshot": "^1.2.9",
"@swissquote/crafty-preset-jest": "^1.22.3",
"@types/jest": "^29.5.1",
"@swissquote/crafty-preset-jest": "^1.27.0",
"@types/jest": "^29.5.13",
"eslint": "^8.56.0",
"jest": "^29.5.0",
"ts-jest": "^29.1.0",
"jest": "^29.7.0",
"ts-jest": "^29.2.5",
"typescript": "^5.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ exports[`eslint-config-qiwi (TypeScript) config works as expected 1`] = `
19:5 error This case's code block is the same as the block for the case on line 17 sonarjs/no-duplicated-branches
19:5 error Expected a 'break' statement before 'case' no-fallthrough
27:7 error Do not use the '===' operator to compare against -0 no-compare-neg-zero
28:10 error This number literal will lose precision at runtime @typescript-eslint/no-loss-of-precision
28:10 error Octal literals should not be used no-octal
29:5 error Move function declaration to function body root no-inner-declarations
29:14 warning 'declaration' is defined but never used @typescript-eslint/no-unused-vars
29:28 error Unexpected empty function 'declaration' @typescript-eslint/no-empty-function
Expand All @@ -56,7 +54,7 @@ exports[`eslint-config-qiwi (TypeScript) config works as expected 1`] = `
64:33 error Empty block statement no-empty
67:1 error Read-only global 'window' should not be modified no-global-assign
46 problems (38 errors, 8 warnings)
44 problems (36 errors, 8 warnings)
10 errors and 0 warnings potentially fixable with the \`--fix\` option.",
}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const bar = (foo) => {
}

if (sw === -0) {
sw = 071
sw = 0o71
function declaration() { }
}

Expand Down
12 changes: 6 additions & 6 deletions packages/infra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
"typedoc": "../../node_modules/.bin/typedoc"
},
"devDependencies": {
"@types/jest": "^29.5.1",
"@types/node": "^20.0.0",
"buildstamp": "^3.0.0",
"@types/jest": "^29.5.13",
"@types/node": "^22.7.5",
"buildstamp": "^3.5.0",
"eslint": "^8.39.0",
"eslint-plugin-disable": "^2.0.3",
"jest": "^29.5.0",
"jest": "^29.7.0",
"prettier": "^2.8.8",
"typedoc": "^0.26.0",
"typescript": "^5.0.4"
"typedoc": "^0.26.8",
"typescript": "^5.6.3"
},
"license": "MIT",
"repository": {
Expand Down
10 changes: 5 additions & 5 deletions packages/prettier-config-qiwi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@
"author": "QIWI <[email protected]>",
"license": "MIT",
"dependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.1.1"
"@trivago/prettier-plugin-sort-imports": "^4.3.0"
},
"peerDependencies": {
"prettier": "^2.0.0",
"typescript": "^5.0.0"
},
"devDependencies": {
"@qiwi/lint-config-infra": "2.1.1",
"@swissquote/crafty-preset-jest": "^1.22.3",
"jest": "^29.5.0",
"@swissquote/crafty-preset-jest": "^1.27.0",
"jest": "^29.7.0",
"prettier": "^2.8.8",
"stdstream-snapshot": "^1.2.9",
"ts-jest": "^29.1.0",
"typescript": "^5.0.4"
"ts-jest": "^29.2.5",
"typescript": "^5.6.3"
}
}
Loading

0 comments on commit a72897c

Please sign in to comment.