diff --git a/packages/eslint-config-qiwi/package.json b/packages/eslint-config-qiwi/package.json index 58e2d74..cba78bf 100644 --- a/packages/eslint-config-qiwi/package.json +++ b/packages/eslint-config-qiwi/package.json @@ -37,7 +37,7 @@ "eslint-plugin-react": "^7.37.1", "eslint-plugin-react-hooks": "^4.6.2", "eslint-plugin-sonarjs": "^2.0.3", - "eslint-plugin-unicorn": "^47.0.0" + "eslint-plugin-unicorn": "^56.0.0" }, "peerDependencies": { "eslint": "^8.0.0", diff --git a/packages/eslint-config-qiwi/src/test/js/__snapshots__/index.js.snap b/packages/eslint-config-qiwi/src/test/js/__snapshots__/index.js.snap index 5692604..8233efb 100644 --- a/packages/eslint-config-qiwi/src/test/js/__snapshots__/index.js.snap +++ b/packages/eslint-config-qiwi/src/test/js/__snapshots__/index.js.snap @@ -12,8 +12,8 @@ exports[`eslint-config-qiwi (JavaScript) config works as expected 1`] = ` 4:17 error Do not use useless \`undefined\` unicorn/no-useless-undefined 5:22 error Unnecessary escape character: \\o no-useless-escape 6:18 error Unexpected control character(s) in regular expression: \\x1f no-control-regex - 6:18 error Use Unicode escapes instead of hexadecimal escapes unicorn/no-hex-escape 6:18 error Use uppercase characters for the value of the escape sequence unicorn/escape-case + 6:18 error Use Unicode escapes instead of hexadecimal escapes unicorn/no-hex-escape 7:29 error Unexpected control character(s) in regular expression: \\x1f no-control-regex 7:29 error Use uppercase characters for the value of the escape sequence unicorn/escape-case 7:29 error Use Unicode escapes instead of hexadecimal escapes unicorn/no-hex-escape diff --git a/packages/eslint-config-qiwi/src/test/ts/__snapshots__/index.ts.snap b/packages/eslint-config-qiwi/src/test/ts/__snapshots__/index.ts.snap index 2317e3e..2239c35 100644 --- a/packages/eslint-config-qiwi/src/test/ts/__snapshots__/index.ts.snap +++ b/packages/eslint-config-qiwi/src/test/ts/__snapshots__/index.ts.snap @@ -20,8 +20,8 @@ exports[`eslint-config-qiwi (TypeScript) config works as expected 1`] = ` 8:3 error Unexpected var, use let or const instead no-var 8:7 warning 'pattern1' is assigned a value but never used @typescript-eslint/no-unused-vars 8:18 error Unexpected control character(s) in regular expression: \\x1f no-control-regex - 8:18 error Use Unicode escapes instead of hexadecimal escapes unicorn/no-hex-escape 8:18 error Use uppercase characters for the value of the escape sequence unicorn/escape-case + 8:18 error Use Unicode escapes instead of hexadecimal escapes unicorn/no-hex-escape 9:3 error Unexpected var, use let or const instead no-var 9:7 warning 'pattern2' is assigned a value but never used @typescript-eslint/no-unused-vars 9:29 error Unexpected control character(s) in regular expression: \\x1f no-control-regex diff --git a/yarn.lock b/yarn.lock index 3835a3a..a82d9ff 100644 --- a/yarn.lock +++ b/yarn.lock @@ -332,7 +332,7 @@ __metadata: languageName: node linkType: hard -"@babel/helper-validator-identifier@npm:^7.16.7, @babel/helper-validator-identifier@npm:^7.19.1, @babel/helper-validator-identifier@npm:^7.25.7": +"@babel/helper-validator-identifier@npm:^7.16.7, @babel/helper-validator-identifier@npm:^7.24.7, @babel/helper-validator-identifier@npm:^7.25.7": version: 7.25.7 resolution: "@babel/helper-validator-identifier@npm:7.25.7" checksum: 10/ec6934cc47fc35baaeb968414a372b064f14f7b130cf6489a014c9486b0fd2549b3c6c682cc1fc35080075e8e38d96aeb40342d63d09fc1a62510c8ce25cde1e @@ -3321,13 +3321,20 @@ __metadata: languageName: node linkType: hard -"ci-info@npm:^3.2.0, ci-info@npm:^3.8.0": +"ci-info@npm:^3.2.0": version: 3.9.0 resolution: "ci-info@npm:3.9.0" checksum: 10/75bc67902b4d1c7b435497adeb91598f6d52a3389398e44294f6601b20cfef32cf2176f7be0eb961d9e085bb333a8a5cae121cb22f81cf238ae7f58eb80e9397 languageName: node linkType: hard +"ci-info@npm:^4.0.0": + version: 4.0.0 + resolution: "ci-info@npm:4.0.0" + checksum: 10/c983bb7ff1b06648f4a47432201abbd58291147d8ab5043dbb5c03e1a0e3fb2347f40d29b66a3044f28ffeb5dade01ac35aa6bd4e7464a44d9a49a3d7532415a + languageName: node + linkType: hard + "cjs-module-lexer@npm:^1.0.0": version: 1.4.1 resolution: "cjs-module-lexer@npm:1.4.1" @@ -3438,7 +3445,7 @@ __metadata: languageName: node linkType: hard -"core-js-compat@npm:^3.37.1, core-js-compat@npm:^3.38.0": +"core-js-compat@npm:^3.37.1, core-js-compat@npm:^3.38.0, core-js-compat@npm:^3.38.1": version: 3.38.1 resolution: "core-js-compat@npm:3.38.1" dependencies: @@ -4018,7 +4025,7 @@ __metadata: eslint-plugin-react: "npm:^7.37.1" eslint-plugin-react-hooks: "npm:^4.6.2" eslint-plugin-sonarjs: "npm:^2.0.3" - eslint-plugin-unicorn: "npm:^47.0.0" + eslint-plugin-unicorn: "npm:^56.0.0" jest: "npm:^29.7.0" ts-jest: "npm:^29.2.5" typescript: "npm:^5.0.0" @@ -4187,29 +4194,29 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-unicorn@npm:^47.0.0": - version: 47.0.0 - resolution: "eslint-plugin-unicorn@npm:47.0.0" +"eslint-plugin-unicorn@npm:^56.0.0": + version: 56.0.0 + resolution: "eslint-plugin-unicorn@npm:56.0.0" dependencies: - "@babel/helper-validator-identifier": "npm:^7.19.1" + "@babel/helper-validator-identifier": "npm:^7.24.7" "@eslint-community/eslint-utils": "npm:^4.4.0" - ci-info: "npm:^3.8.0" + ci-info: "npm:^4.0.0" clean-regexp: "npm:^1.0.0" - esquery: "npm:^1.5.0" + core-js-compat: "npm:^3.38.1" + esquery: "npm:^1.6.0" + globals: "npm:^15.9.0" indent-string: "npm:^4.0.0" is-builtin-module: "npm:^3.2.1" jsesc: "npm:^3.0.2" - lodash: "npm:^4.17.21" pluralize: "npm:^8.0.0" read-pkg-up: "npm:^7.0.1" - regexp-tree: "npm:^0.1.24" + regexp-tree: "npm:^0.1.27" regjsparser: "npm:^0.10.0" - safe-regex: "npm:^2.1.1" - semver: "npm:^7.3.8" + semver: "npm:^7.6.3" strip-indent: "npm:^3.0.0" peerDependencies: - eslint: ">=8.38.0" - checksum: 10/382fa54f819164746c6b29c5ef306a262c5ce53548ef8212c10a12d87d94d8efed3ecb27dd51747aea7d5f5d58052897e4f751a600774c0462ef615a9aa38f1b + eslint: ">=8.56.0" + checksum: 10/142c66c65b2fd53136727a434b0fc77e9a9f9614aebe09330aeab83b021c842c3a5f9dafe3130c0f39fbd3562e91aadcc55a9de4312639e70fe7efb475cd358e languageName: node linkType: hard @@ -4326,7 +4333,7 @@ __metadata: languageName: node linkType: hard -"esquery@npm:^1.4.0, esquery@npm:^1.4.2, esquery@npm:^1.5.0": +"esquery@npm:^1.4.0, esquery@npm:^1.4.2, esquery@npm:^1.6.0": version: 1.6.0 resolution: "esquery@npm:1.6.0" dependencies: @@ -4749,6 +4756,13 @@ __metadata: languageName: node linkType: hard +"globals@npm:^15.9.0": + version: 15.11.0 + resolution: "globals@npm:15.11.0" + checksum: 10/14009ef1906ac929d930ed1c896a47159e7d11b4d201901ca5f3827766519191a3f5fb45124de43c4511fee04018704e7ed5a097fb37d23abf39523d1d41c85f + languageName: node + linkType: hard + "globalthis@npm:^1.0.3, globalthis@npm:^1.0.4": version: 1.0.4 resolution: "globalthis@npm:1.0.4" @@ -7212,7 +7226,7 @@ __metadata: languageName: node linkType: hard -"regexp-tree@npm:^0.1.24, regexp-tree@npm:~0.1.1": +"regexp-tree@npm:^0.1.27": version: 0.1.27 resolution: "regexp-tree@npm:0.1.27" bin: @@ -7429,15 +7443,6 @@ __metadata: languageName: node linkType: hard -"safe-regex@npm:^2.1.1": - version: 2.1.1 - resolution: "safe-regex@npm:2.1.1" - dependencies: - regexp-tree: "npm:~0.1.1" - checksum: 10/180d264110cdac9935877e5c37d17b89bd7e3a9bac982439e61517e4e0dfb0821e89ed49cb84c2d9690d18b33a0edf46d4decc6989e295ba2c866c08ed8b441a - languageName: node - linkType: hard - "safer-buffer@npm:>= 2.1.2 < 3.0.0": version: 2.1.2 resolution: "safer-buffer@npm:2.1.2" @@ -7474,7 +7479,7 @@ __metadata: languageName: node linkType: hard -"semver@npm:7.6.3, semver@npm:^7.3.5, semver@npm:^7.3.6, semver@npm:^7.3.8, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0, semver@npm:^7.6.3": +"semver@npm:7.6.3, semver@npm:^7.3.5, semver@npm:^7.3.6, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0, semver@npm:^7.6.3": version: 7.6.3 resolution: "semver@npm:7.6.3" bin: