From cf1d8157be741209cf347c4e830fac5c01d61818 Mon Sep 17 00:00:00 2001 From: AndreaPontrandolfo Date: Tue, 6 Aug 2024 23:56:42 +0200 Subject: [PATCH 1/4] feat(deps): Update to latest Closes #182 --- apps/sheriff-webservices/package.json | 2 +- apps/sheriff-webservices/src/getAllRules.ts | 2 +- packages/eslint-config-sheriff/package.json | 2 +- .../src/handledModules.d.ts | 1 - .../handpickedRules/jsdocHandPickedRules.ts | 1 + pnpm-lock.yaml | 92 ++++++++++++------- 6 files changed, 61 insertions(+), 39 deletions(-) diff --git a/apps/sheriff-webservices/package.json b/apps/sheriff-webservices/package.json index cc70a044..4ea2215f 100644 --- a/apps/sheriff-webservices/package.json +++ b/apps/sheriff-webservices/package.json @@ -37,7 +37,7 @@ "eslint-plugin-fsecond": "^1.1.1", "eslint-plugin-import": "^2.27.5", "eslint-plugin-jest": "^27.2.1", - "eslint-plugin-jsdoc": "^46.4.3", + "eslint-plugin-jsdoc": "^48.11.0", "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-lodash-f": "^7.5.3", "eslint-plugin-playwright": "^0.12.0", diff --git a/apps/sheriff-webservices/src/getAllRules.ts b/apps/sheriff-webservices/src/getAllRules.ts index e004d976..9c896184 100644 --- a/apps/sheriff-webservices/src/getAllRules.ts +++ b/apps/sheriff-webservices/src/getAllRules.ts @@ -3,7 +3,7 @@ import astro from 'eslint-plugin-astro'; import fsecond from 'eslint-plugin-fsecond'; import pluginImport from 'eslint-plugin-import'; import jest from 'eslint-plugin-jest'; -import jsdoc from 'eslint-plugin-jsdoc'; // eslint-disable-line +import jsdoc from 'eslint-plugin-jsdoc'; import reactAccessibility from 'eslint-plugin-jsx-a11y'; import lodashPlugin from 'eslint-plugin-lodash-f'; import playwright from 'eslint-plugin-playwright'; diff --git a/packages/eslint-config-sheriff/package.json b/packages/eslint-config-sheriff/package.json index 6f2ac8d7..e49b35a1 100644 --- a/packages/eslint-config-sheriff/package.json +++ b/packages/eslint-config-sheriff/package.json @@ -68,7 +68,7 @@ "eslint-plugin-fsecond": "^1.1.1", "eslint-plugin-import": "^2.27.5", "eslint-plugin-jest": "^27.2.1", - "eslint-plugin-jsdoc": "^46.4.3", + "eslint-plugin-jsdoc": "^48.11.0", "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-lodash-f": "^7.5.3", "eslint-plugin-playwright": "^0.12.0", diff --git a/packages/eslint-config-sheriff/src/handledModules.d.ts b/packages/eslint-config-sheriff/src/handledModules.d.ts index 20658014..1c7fb449 100644 --- a/packages/eslint-config-sheriff/src/handledModules.d.ts +++ b/packages/eslint-config-sheriff/src/handledModules.d.ts @@ -2,7 +2,6 @@ declare module '@eslint/js'; declare module '@next/eslint-plugin-next'; declare module '@regru/eslint-plugin-prefer-early-return'; declare module 'eslint-plugin-playwright'; -declare module 'eslint-plugin-jsdoc'; declare module 'eslint-plugin-lodash-f'; declare module 'eslint-plugin-import'; declare module 'eslint-plugin-jest'; diff --git a/packages/eslint-config-sheriff/src/handpickedRules/jsdocHandPickedRules.ts b/packages/eslint-config-sheriff/src/handpickedRules/jsdocHandPickedRules.ts index edbc9c96..c6371ac1 100644 --- a/packages/eslint-config-sheriff/src/handpickedRules/jsdocHandPickedRules.ts +++ b/packages/eslint-config-sheriff/src/handpickedRules/jsdocHandPickedRules.ts @@ -18,4 +18,5 @@ export const jsdocHandPickedRules = { ], 'jsdoc/sort-tags': 2, 'jsdoc/tag-lines': [2, 'any', { startLines: 1 }], + 'jsdoc/convert-to-jsdoc-comments': 2, }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1ef26a68..e19418bf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -94,7 +94,7 @@ importers: version: 3.4.0(@docusaurus/types@3.4.0)(eslint@8.57.0)(react-dom@18.3.1)(react@18.3.1)(typescript@5.5.3) '@docusaurus/preset-classic': specifier: 3.4.0 - version: 3.4.0(@algolia/client-search@4.24.0)(@types/react@18.3.3)(eslint@8.57.0)(react-dom@18.3.1)(react@18.3.1)(search-insights@2.15.0)(typescript@5.5.3) + version: 3.4.0(@algolia/client-search@4.24.0)(@types/react@18.3.3)(eslint@8.57.0)(react-dom@18.3.1)(react@18.3.1)(search-insights@2.16.0)(typescript@5.5.3) '@docusaurus/remark-plugin-npm2yarn': specifier: ^3.4.0 version: 3.4.0 @@ -223,8 +223,8 @@ importers: specifier: ^27.2.1 version: 27.9.0(eslint@8.57.0)(typescript@5.5.3) eslint-plugin-jsdoc: - specifier: ^46.4.3 - version: 46.10.1(eslint@8.57.0) + specifier: ^48.11.0 + version: 48.11.0(eslint@8.57.0) eslint-plugin-jsx-a11y: specifier: ^6.7.1 version: 6.8.0(eslint@8.57.0) @@ -402,8 +402,8 @@ importers: specifier: ^27.2.1 version: 27.9.0(eslint@8.57.0)(typescript@5.5.3) eslint-plugin-jsdoc: - specifier: ^46.4.3 - version: 46.10.1(eslint@8.57.0) + specifier: ^48.11.0 + version: 48.11.0(eslint@8.57.0) eslint-plugin-jsx-a11y: specifier: ^6.7.1 version: 6.8.0(eslint@8.57.0) @@ -567,10 +567,10 @@ importers: packages: - /@algolia/autocomplete-core@1.9.3(@algolia/client-search@4.24.0)(algoliasearch@4.23.3)(search-insights@2.15.0): + /@algolia/autocomplete-core@1.9.3(@algolia/client-search@4.24.0)(algoliasearch@4.23.3)(search-insights@2.16.0): resolution: {integrity: sha512-009HdfugtGCdC4JdXUbVJClA0q0zh24yyePn+KUGk3rP7j8FEe/m5Yo/z65gn6nP/cM39PxpzqKrL7A6fP6PPw==} dependencies: - '@algolia/autocomplete-plugin-algolia-insights': 1.9.3(@algolia/client-search@4.24.0)(algoliasearch@4.23.3)(search-insights@2.15.0) + '@algolia/autocomplete-plugin-algolia-insights': 1.9.3(@algolia/client-search@4.24.0)(algoliasearch@4.23.3)(search-insights@2.16.0) '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.24.0)(algoliasearch@4.23.3) transitivePeerDependencies: - '@algolia/client-search' @@ -578,13 +578,13 @@ packages: - search-insights dev: false - /@algolia/autocomplete-plugin-algolia-insights@1.9.3(@algolia/client-search@4.24.0)(algoliasearch@4.23.3)(search-insights@2.15.0): + /@algolia/autocomplete-plugin-algolia-insights@1.9.3(@algolia/client-search@4.24.0)(algoliasearch@4.23.3)(search-insights@2.16.0): resolution: {integrity: sha512-a/yTUkcO/Vyy+JffmAnTWbr4/90cLzw+CC3bRbhnULr/EM0fGNvM13oQQ14f2moLMcVDyAx/leczLlAOovhSZg==} peerDependencies: search-insights: '>= 1 < 3' dependencies: '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.24.0)(algoliasearch@4.23.3) - search-insights: 2.15.0 + search-insights: 2.16.0 transitivePeerDependencies: - '@algolia/client-search' - algoliasearch @@ -958,7 +958,7 @@ packages: '@babel/core': 7.24.9 '@babel/helper-compilation-targets': 7.24.8 '@babel/helper-plugin-utils': 7.24.8 - debug: 4.3.5 + debug: 4.3.6 lodash.debounce: 4.0.8 resolve: 1.22.8 transitivePeerDependencies: @@ -2399,7 +2399,7 @@ packages: resolution: {integrity: sha512-+sbxb71sWre+PwDK7X2T8+bhS6clcVMLwBPznX45Qu6opJcgRjAp7gYSDzVFp187J+feSj5dNBN1mJoi6ckkUQ==} dev: false - /@docsearch/react@3.6.0(@algolia/client-search@4.24.0)(@types/react@18.3.3)(react-dom@18.3.1)(react@18.3.1)(search-insights@2.15.0): + /@docsearch/react@3.6.0(@algolia/client-search@4.24.0)(@types/react@18.3.3)(react-dom@18.3.1)(react@18.3.1)(search-insights@2.16.0): resolution: {integrity: sha512-HUFut4ztcVNmqy9gp/wxNbC7pTOHhgVVkHVGCACTuLhUKUhKAF9KYHJtMiLUJxEqiFLQiuri1fWF8zqwM/cu1w==} peerDependencies: '@types/react': '>= 16.8.0 < 19.0.0' @@ -2416,14 +2416,14 @@ packages: search-insights: optional: true dependencies: - '@algolia/autocomplete-core': 1.9.3(@algolia/client-search@4.24.0)(algoliasearch@4.23.3)(search-insights@2.15.0) + '@algolia/autocomplete-core': 1.9.3(@algolia/client-search@4.24.0)(algoliasearch@4.23.3)(search-insights@2.16.0) '@algolia/autocomplete-preset-algolia': 1.9.3(@algolia/client-search@4.24.0)(algoliasearch@4.23.3) '@docsearch/css': 3.6.0 '@types/react': 18.3.3 algoliasearch: 4.23.3 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - search-insights: 2.15.0 + search-insights: 2.16.0 transitivePeerDependencies: - '@algolia/client-search' dev: false @@ -2916,7 +2916,7 @@ packages: - webpack-cli dev: false - /@docusaurus/preset-classic@3.4.0(@algolia/client-search@4.24.0)(@types/react@18.3.3)(eslint@8.57.0)(react-dom@18.3.1)(react@18.3.1)(search-insights@2.15.0)(typescript@5.5.3): + /@docusaurus/preset-classic@3.4.0(@algolia/client-search@4.24.0)(@types/react@18.3.3)(eslint@8.57.0)(react-dom@18.3.1)(react@18.3.1)(search-insights@2.16.0)(typescript@5.5.3): resolution: {integrity: sha512-Ohj6KB7siKqZaQhNJVMBBUzT3Nnp6eTKqO+FXO3qu/n1hJl3YLwVKTWBg28LF7MWrKu46UuYavwMRxud0VyqHg==} engines: {node: '>=18.0'} peerDependencies: @@ -2934,7 +2934,7 @@ packages: '@docusaurus/plugin-sitemap': 3.4.0(eslint@8.57.0)(react-dom@18.3.1)(react@18.3.1)(typescript@5.5.3) '@docusaurus/theme-classic': 3.4.0(@types/react@18.3.3)(eslint@8.57.0)(react-dom@18.3.1)(react@18.3.1)(typescript@5.5.3) '@docusaurus/theme-common': 3.4.0(@docusaurus/types@3.4.0)(eslint@8.57.0)(react-dom@18.3.1)(react@18.3.1)(typescript@5.5.3) - '@docusaurus/theme-search-algolia': 3.4.0(@algolia/client-search@4.24.0)(@docusaurus/types@3.4.0)(@types/react@18.3.3)(eslint@8.57.0)(react-dom@18.3.1)(react@18.3.1)(search-insights@2.15.0)(typescript@5.5.3) + '@docusaurus/theme-search-algolia': 3.4.0(@algolia/client-search@4.24.0)(@docusaurus/types@3.4.0)(@types/react@18.3.3)(eslint@8.57.0)(react-dom@18.3.1)(react@18.3.1)(search-insights@2.16.0)(typescript@5.5.3) '@docusaurus/types': 3.4.0(react-dom@18.3.1)(react@18.3.1) react: 18.3.1 react-dom: 18.3.1(react@18.3.1) @@ -3079,14 +3079,14 @@ packages: - webpack-cli dev: false - /@docusaurus/theme-search-algolia@3.4.0(@algolia/client-search@4.24.0)(@docusaurus/types@3.4.0)(@types/react@18.3.3)(eslint@8.57.0)(react-dom@18.3.1)(react@18.3.1)(search-insights@2.15.0)(typescript@5.5.3): + /@docusaurus/theme-search-algolia@3.4.0(@algolia/client-search@4.24.0)(@docusaurus/types@3.4.0)(@types/react@18.3.3)(eslint@8.57.0)(react-dom@18.3.1)(react@18.3.1)(search-insights@2.16.0)(typescript@5.5.3): resolution: {integrity: sha512-aiHFx7OCw4Wck1z6IoShVdUWIjntC8FHCw9c5dR8r3q4Ynh+zkS8y2eFFunN/DL6RXPzpnvKCg3vhLQYJDmT9Q==} engines: {node: '>=18.0'} peerDependencies: react: ^18.0.0 react-dom: ^18.0.0 dependencies: - '@docsearch/react': 3.6.0(@algolia/client-search@4.24.0)(@types/react@18.3.3)(react-dom@18.3.1)(react@18.3.1)(search-insights@2.15.0) + '@docsearch/react': 3.6.0(@algolia/client-search@4.24.0)(@types/react@18.3.3)(react-dom@18.3.1)(react@18.3.1)(search-insights@2.16.0) '@docusaurus/core': 3.4.0(@docusaurus/types@3.4.0)(eslint@8.57.0)(react-dom@18.3.1)(react@18.3.1)(typescript@5.5.3) '@docusaurus/logger': 3.4.0 '@docusaurus/plugin-content-docs': 3.4.0(eslint@8.57.0)(react-dom@18.3.1)(react@18.3.1)(typescript@5.5.3) @@ -3356,12 +3356,12 @@ packages: /@emotion/weak-memoize@0.3.1: resolution: {integrity: sha512-EsBwpc7hBUJWAsNPBmJy4hxWx12v6bshQsldrVmjxJoc3isbxhOrF2IcCpaXxfvq03NwkI7sbsOLXbYuqF/8Ww==} - /@es-joy/jsdoccomment@0.41.0: - resolution: {integrity: sha512-aKUhyn1QI5Ksbqcr3fFJj16p99QdjUxXAEuFst1Z47DRyoiMwivIH9MV/ARcJOCXVjPfjITciej8ZD2O/6qUmw==} + /@es-joy/jsdoccomment@0.46.0: + resolution: {integrity: sha512-C3Axuq1xd/9VqFZpW4YAzOx5O9q/LP46uIQy/iNDpHG3fmPa6TBtvfglMCs3RBiBxAIi0Go97r8+jvTt55XMyQ==} engines: {node: '>=16'} dependencies: comment-parser: 1.4.1 - esquery: 1.5.0 + esquery: 1.6.0 jsdoc-type-pratt-parser: 4.0.0 dev: false @@ -9174,22 +9174,24 @@ packages: - typescript dev: false - /eslint-plugin-jsdoc@46.10.1(eslint@8.57.0): - resolution: {integrity: sha512-x8wxIpv00Y50NyweDUpa+58ffgSAI5sqe+zcZh33xphD0AVh+1kqr1ombaTRb7Fhpove1zfUuujlX9DWWBP5ag==} - engines: {node: '>=16'} + /eslint-plugin-jsdoc@48.11.0(eslint@8.57.0): + resolution: {integrity: sha512-d12JHJDPNo7IFwTOAItCeJY1hcqoIxE0lHA8infQByLilQ9xkqrRa6laWCnsuCrf+8rUnvxXY1XuTbibRBNylA==} + engines: {node: '>=18'} peerDependencies: eslint: ^7.0.0 || ^8.0.0 || ^9.0.0 || 8.57.0 || 8.57.0-0 dependencies: - '@es-joy/jsdoccomment': 0.41.0 + '@es-joy/jsdoccomment': 0.46.0 are-docs-informative: 0.0.2 comment-parser: 1.4.1 - debug: 4.3.5 + debug: 4.3.6 escape-string-regexp: 4.0.0 eslint: 8.57.0 - esquery: 1.5.0 - is-builtin-module: 3.2.1 - semver: 7.6.2 + espree: 10.1.0 + esquery: 1.6.0 + parse-imports: 2.1.1 + semver: 7.6.3 spdx-expression-parse: 4.0.0 + synckit: 0.9.1 transitivePeerDependencies: - supports-color dev: false @@ -13701,6 +13703,14 @@ packages: engines: {node: '>=14'} dev: false + /parse-imports@2.1.1: + resolution: {integrity: sha512-TDT4HqzUiTMO1wJRwg/t/hYk8Wdp3iF/ToMIlAoVQfL1Xs/sTxq1dKWSMjMbQmIarfWKymOyly40+zmPHXMqCA==} + engines: {node: '>= 18'} + dependencies: + es-module-lexer: 1.5.4 + slashes: 3.0.12 + dev: false + /parse-json@5.2.0: resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} engines: {node: '>=8'} @@ -15511,8 +15521,8 @@ packages: resolution: {integrity: sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==} dev: false - /search-insights@2.15.0: - resolution: {integrity: sha512-ch2sPCUDD4sbPQdknVl9ALSi9H7VyoeVbsxznYz6QV55jJ8CI3EtwpO1i84keN4+hF5IeHWIeGvc08530JkVXQ==} + /search-insights@2.16.0: + resolution: {integrity: sha512-6ukNTOkN2OvJ8SJRmWionpn39OHOov1rx72kyGDYk60CaGrDfmT8wXYzgKLW9VFk+dVVXlUmWQVvrkRvx/x3Mg==} dev: false /section-matter@1.0.0: @@ -15826,6 +15836,10 @@ packages: engines: {node: '>=12'} dev: false + /slashes@3.0.12: + resolution: {integrity: sha512-Q9VME8WyGkc7pJf6QEkj3wE+2CnvZMI+XJhwdTPR8Z/kWQRXi7boAWLDibRPyHRTUTPx5FaU7MsyrjI3yLB4HA==} + dev: false + /smart-buffer@4.2.0: resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==} engines: {node: '>= 6.0.0', npm: '>= 3.0.0'} @@ -15924,7 +15938,7 @@ packages: resolution: {integrity: sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==} dependencies: spdx-expression-parse: 3.0.1 - spdx-license-ids: 3.0.17 + spdx-license-ids: 3.0.18 /spdx-exceptions@2.5.0: resolution: {integrity: sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==} @@ -15933,17 +15947,17 @@ packages: resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==} dependencies: spdx-exceptions: 2.5.0 - spdx-license-ids: 3.0.17 + spdx-license-ids: 3.0.18 /spdx-expression-parse@4.0.0: resolution: {integrity: sha512-Clya5JIij/7C6bRR22+tnGXbc4VKlibKSVj2iHvVeX5iMW7s1SIQlqu699JkODJJIhh/pUu8L0/VLh8xflD+LQ==} dependencies: spdx-exceptions: 2.5.0 - spdx-license-ids: 3.0.17 + spdx-license-ids: 3.0.18 dev: false - /spdx-license-ids@3.0.17: - resolution: {integrity: sha512-sh8PWc/ftMqAAdFiBu6Fy6JUOYjqDJBJvIhpfDMyHrr0Rbp5liZqd4TjtQ/RgfLjKFZb+LMx5hpml5qOWy0qvg==} + /spdx-license-ids@3.0.18: + resolution: {integrity: sha512-xxRs31BqRYHwiMzudOrpSiHtZ8i/GeionCBDSilhYRj+9gIcI8wCZTlXZKu9vZIVqViP3dcp9qE5G6AlIaD+TQ==} /spdy-transport@3.0.0: resolution: {integrity: sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==} @@ -16310,6 +16324,14 @@ packages: '@pkgr/core': 0.1.1 tslib: 2.6.3 + /synckit@0.9.1: + resolution: {integrity: sha512-7gr8p9TQP6RAHusBOSLs46F4564ZrjV8xFmw5zCmgmhGUcw2hxsShhJ6CEiHQMgPDwAQ1fWHPM0ypc4RMAig4A==} + engines: {node: ^14.18.0 || >=16.0.0} + dependencies: + '@pkgr/core': 0.1.1 + tslib: 2.6.3 + dev: false + /tapable@1.1.3: resolution: {integrity: sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==} engines: {node: '>=6'} From dd616246f967b933094f7272f29c81b410cec015 Mon Sep 17 00:00:00 2001 From: AndreaPontrandolfo Date: Wed, 7 Aug 2024 00:01:24 +0200 Subject: [PATCH 2/4] added changeset --- .changeset/loud-dryers-boil.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/loud-dryers-boil.md diff --git a/.changeset/loud-dryers-boil.md b/.changeset/loud-dryers-boil.md new file mode 100644 index 00000000..efb1bfa9 --- /dev/null +++ b/.changeset/loud-dryers-boil.md @@ -0,0 +1,6 @@ +--- +'eslint-config-sheriff': minor +'sheriff-webservices': patch +--- + +feat(deps): Update eslint-plugin-jsdoc to latest. Closes #182 From 8a01931f301ee09f21c575f7af0c9c2d9e896105 Mon Sep 17 00:00:00 2001 From: AndreaPontrandolfo Date: Wed, 7 Aug 2024 00:31:43 +0200 Subject: [PATCH 3/4] feat(deps): added @types/eslint-plugin-jsx-a11y --- .../src/samples/basic.ts | 16 ++- apps/sheriff-webservices/package.json | 1 + package.json | 4 +- packages/eslint-config-sheriff/package.json | 1 + .../src/handledModules.d.ts | 1 - pnpm-lock.yaml | 114 +++++++++++------- 6 files changed, 87 insertions(+), 50 deletions(-) diff --git a/apps/config-validation-playground/src/samples/basic.ts b/apps/config-validation-playground/src/samples/basic.ts index 8ecb03ef..c77cc03a 100644 --- a/apps/config-validation-playground/src/samples/basic.ts +++ b/apps/config-validation-playground/src/samples/basic.ts @@ -1,12 +1,18 @@ -// Function to add two numbers +/** + * Function to add two numbers. + */ export const addNumbers = function (a: number, b: number): number { return a + b; }; -// Function to check if a number is even +/** + * Function to check if a number is even. + */ export const isEven = (num: number): boolean => num % 2 === 0; -// Function to calculate the factorial of a number +/** + * Function to calculate the factorial of a number. + */ export const factorial = (num: number): number => { if (num === 0 || num === 1) { return 1; @@ -15,6 +21,8 @@ export const factorial = (num: number): number => { return num * factorial(num - 1); }; -// Function to calculate the sum of a list of numbers +/** + * Function to calculate the sum of a list of numbers. + */ export const sum = (numbers: number[]): number => numbers.reduce((acc, curr) => acc + curr, 0); diff --git a/apps/sheriff-webservices/package.json b/apps/sheriff-webservices/package.json index 4ea2215f..4eb2e107 100644 --- a/apps/sheriff-webservices/package.json +++ b/apps/sheriff-webservices/package.json @@ -16,6 +16,7 @@ "devDependencies": { "@sherifforg/types": "workspace:*", "@tsconfig/node-lts": "^18.12.5", + "@types/eslint-plugin-jsx-a11y": "^6.9.0", "@types/lodash": "^4.17.6", "@types/node": "^20.14.10", "eslint-define-config": "^2.1.0", diff --git a/package.json b/package.json index 33ba0275..58764b2c 100644 --- a/package.json +++ b/package.json @@ -34,11 +34,11 @@ "knip": "^5.25.1", "prettier": "^3.3.2", "turbo": "^2.0.9", - "typesync": "^0.12.2" + "typesync": "^0.13.0" }, "packageManager": "pnpm@8.14.0", "engines": { - "node": ">=18.17.1" + "node": ">=20.10.0" }, "pnpm": { "peerDependencyRules": { diff --git a/packages/eslint-config-sheriff/package.json b/packages/eslint-config-sheriff/package.json index e49b35a1..ecff961d 100644 --- a/packages/eslint-config-sheriff/package.json +++ b/packages/eslint-config-sheriff/package.json @@ -96,6 +96,7 @@ "@arethetypeswrong/cli": "^0.9.0", "@sherifforg/constants": "workspace:*", "@sherifforg/types": "workspace:*", + "@types/eslint-plugin-jsx-a11y": "^6.9.0", "@types/lodash": "^4.17.6", "@types/node": "^20.14.10", "@typescript-eslint/utils": "^7.3.1", diff --git a/packages/eslint-config-sheriff/src/handledModules.d.ts b/packages/eslint-config-sheriff/src/handledModules.d.ts index 1c7fb449..a80bdda5 100644 --- a/packages/eslint-config-sheriff/src/handledModules.d.ts +++ b/packages/eslint-config-sheriff/src/handledModules.d.ts @@ -7,7 +7,6 @@ declare module 'eslint-plugin-import'; declare module 'eslint-plugin-jest'; declare module 'eslint-plugin-storybook'; declare module 'eslint-plugin-react*'; -declare module 'eslint-plugin-jsx-a11y'; declare module 'eslint-plugin-react-hooks'; declare module 'eslint-plugin-react-refresh'; declare module 'eslint-plugin-fsecond'; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e19418bf..516033a8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,13 +16,13 @@ importers: version: 0.21.4 '@turbo/gen': specifier: ^2.0.9 - version: 2.0.9(@types/node@22.1.0)(typescript@5.5.4) + version: 2.0.9(@types/node@20.14.10)(typescript@5.5.4) create-sheriff-config: specifier: workspace:* version: link:packages/create-sheriff-config knip: specifier: ^5.25.1 - version: 5.26.0(@types/node@22.1.0)(typescript@5.5.4) + version: 5.26.0(@types/node@20.14.10)(typescript@5.5.4) prettier: specifier: ^3.3.2 version: 3.3.3 @@ -30,8 +30,8 @@ importers: specifier: ^2.0.9 version: 2.0.9 typesync: - specifier: ^0.12.2 - version: 0.12.2(typescript@5.5.4) + specifier: ^0.13.0 + version: 0.13.0(typescript@5.5.4) apps/cli-playground: {} @@ -277,6 +277,9 @@ importers: '@tsconfig/node-lts': specifier: ^18.12.5 version: 18.12.5 + '@types/eslint-plugin-jsx-a11y': + specifier: ^6.9.0 + version: 6.9.0 '@types/lodash': specifier: ^4.17.6 version: 4.17.6 @@ -456,6 +459,9 @@ importers: '@sherifforg/types': specifier: workspace:* version: link:../sheriff-types + '@types/eslint-plugin-jsx-a11y': + specifier: ^6.9.0 + version: 6.9.0 '@types/lodash': specifier: ^4.17.6 version: 4.17.6 @@ -4646,9 +4652,9 @@ packages: dependencies: agent-base: 7.1.1 http-proxy-agent: 7.0.2 - https-proxy-agent: 7.0.4 + https-proxy-agent: 7.0.5 lru-cache: 10.4.3 - socks-proxy-agent: 8.0.3 + socks-proxy-agent: 8.0.4 transitivePeerDependencies: - supports-color dev: false @@ -4669,11 +4675,11 @@ packages: - bluebird dev: true - /@npmcli/fs@3.1.0: - resolution: {integrity: sha512-7kZUAaLscfgbwBQRbvdMYaZOWyMEcPTH/tJjnyAWJ/dvvs9Ef+CERx/qJb9GExJpl1qipaDGn7KqHnFGGixd0w==} + /@npmcli/fs@3.1.1: + resolution: {integrity: sha512-q9CRWjpHCMIh5sVyefoD1cA7PkvILqCZsnSOEUUivORLjxCO/Irmue2DprETiNgEqktDBZaM1Bi+jrarx1XdCg==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - semver: 7.6.2 + semver: 7.6.3 dev: false /@npmcli/git@5.0.8: @@ -5418,7 +5424,7 @@ packages: resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} dev: false - /@turbo/gen@2.0.9(@types/node@22.1.0)(typescript@5.5.4): + /@turbo/gen@2.0.9(@types/node@20.14.10)(typescript@5.5.4): resolution: {integrity: sha512-IVCBa/+qxsO7srAvFpto0AF09Zei+zpDoosUsHSEwgn/22rVuZ6hdcJdxcQ9kHeMafJpxqLK9iHNSdXUctJ0Vw==} hasBin: true dependencies: @@ -5430,7 +5436,7 @@ packages: node-plop: 0.26.3 picocolors: 1.0.1 proxy-agent: 6.4.0 - ts-node: 10.9.2(@types/node@22.1.0)(typescript@5.5.4) + ts-node: 10.9.2(@types/node@20.14.10)(typescript@5.5.4) update-check: 1.5.4 validate-npm-package-name: 5.0.0 transitivePeerDependencies: @@ -5536,6 +5542,12 @@ packages: resolution: {integrity: sha512-AjwI4MvWx3HAOaZqYsjKWyEObT9lcVV0Y0V8nXo6cXzN8ZiMxVhf6F3d/UNvXVGKrEzL/Dluc5p+y9GkzlTWig==} dev: true + /@types/eslint-plugin-jsx-a11y@6.9.0: + resolution: {integrity: sha512-5nw0sPyYGCsFibwjOXftxends8Nrh/JLgDtBWj6aJVcN14kHwy1yIy0o1MGLKfCcR27pvUFGgYG+hX2HSX16uA==} + dependencies: + '@types/eslint': 8.56.10 + dev: true + /@types/eslint-scope@3.7.7: resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==} dependencies: @@ -5722,12 +5734,6 @@ packages: dependencies: undici-types: 5.26.5 - /@types/node@22.1.0: - resolution: {integrity: sha512-AOmuRF0R2/5j1knA3c6G3HOk523Ga+l+ZXltX8SF1+5oqcXijjfTd8fY3XRZqSihEu9XhtQnKYLmkFaoxgsJHw==} - dependencies: - undici-types: 6.13.0 - dev: false - /@types/normalize-package-data@2.4.4: resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} dev: false @@ -6173,7 +6179,7 @@ packages: globby: 11.1.0 is-glob: 4.0.3 minimatch: 9.0.5 - semver: 7.6.2 + semver: 7.6.3 ts-api-utils: 1.3.0(typescript@5.5.3) typescript: 5.5.3 transitivePeerDependencies: @@ -7281,11 +7287,11 @@ packages: resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} engines: {node: '>=8'} - /cacache@18.0.3: - resolution: {integrity: sha512-qXCd4rh6I07cnDqh8V48/94Tc/WSfj+o3Gn6NZ0aZovS255bUx8O13uKxRFd2eWG0xgsco7+YItQNPaa5E85hg==} + /cacache@18.0.4: + resolution: {integrity: sha512-B+L5iIa9mgcjLbliir2th36yEwPftrzteHYujzsx3dFP/31GCHcIeS8f5MGd80odLOjaOvSpU3EEAmRQptkxLQ==} engines: {node: ^16.14.0 || >=18.0.0} dependencies: - '@npmcli/fs': 3.1.0 + '@npmcli/fs': 3.1.1 fs-minipass: 3.0.3 glob: 10.4.5 lru-cache: 10.4.3 @@ -10032,8 +10038,8 @@ packages: dependencies: is-callable: 1.2.7 - /foreground-child@3.1.1: - resolution: {integrity: sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==} + /foreground-child@3.2.1: + resolution: {integrity: sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA==} engines: {node: '>=14'} dependencies: cross-spawn: 7.0.3 @@ -10306,7 +10312,7 @@ packages: resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} hasBin: true dependencies: - foreground-child: 3.1.1 + foreground-child: 3.2.1 jackspeak: 3.4.3 minimatch: 9.0.5 minipass: 7.1.2 @@ -10935,6 +10941,16 @@ packages: - supports-color dev: false + /https-proxy-agent@7.0.5: + resolution: {integrity: sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==} + engines: {node: '>= 14'} + dependencies: + agent-base: 7.1.1 + debug: 4.3.6 + transitivePeerDependencies: + - supports-color + dev: false + /human-id@1.0.2: resolution: {integrity: sha512-UNopramDEhHJD+VR+ehk8rOslwSfByxPIZyJRfV739NDhN5LF1fa1MqnzKm2lGTQRjNrjK19Q5fhkgIfjlVUKw==} dev: false @@ -11778,7 +11794,7 @@ packages: resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} engines: {node: '>=6'} - /knip@5.26.0(@types/node@22.1.0)(typescript@5.5.4): + /knip@5.26.0(@types/node@20.14.10)(typescript@5.5.4): resolution: {integrity: sha512-vOp+Wk86aqlPwElrUpxXyg6Q8w+j0j6wuzyu5p6k/mBWUI8iP91PCAz1Jzz9PGq5JYdptV7rFBYB9vHr7AFgqg==} engines: {node: '>=18.6.0'} hasBin: true @@ -11788,7 +11804,7 @@ packages: dependencies: '@nodelib/fs.walk': 1.2.8 '@snyk/github-codeowners': 1.1.0 - '@types/node': 22.1.0 + '@types/node': 20.14.10 easy-table: 1.2.0 fast-glob: 3.3.2 jiti: 1.21.6 @@ -12086,7 +12102,7 @@ packages: engines: {node: ^16.14.0 || >=18.0.0} dependencies: '@npmcli/agent': 2.2.2 - cacache: 18.0.3 + cacache: 18.0.4 http-cache-semantics: 4.1.1 is-lambda: 1.0.1 minipass: 7.1.2 @@ -13181,7 +13197,7 @@ packages: dependencies: hosted-git-info: 4.1.0 is-core-module: 2.13.1 - semver: 7.6.2 + semver: 7.6.3 validate-npm-package-license: 3.0.4 dev: false @@ -13232,14 +13248,14 @@ packages: engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dev: true - /npm-package-arg@11.0.2: - resolution: {integrity: sha512-IGN0IAwmhDJwy13Wc8k+4PEbTPhpJnMtfR53ZbOyjkvmEcLS4nCwp6mvMWjS5sUjeiW3mpx6cHmuhKEu9XmcQw==} + /npm-package-arg@11.0.3: + resolution: {integrity: sha512-sHGJy8sOC1YraBywpzQlIKBE4pBbGbiF95U6Auspzyem956E0+FtDtsx1ZxlOJkQCZ1AFXAY/yuvtFYrOxF+Bw==} engines: {node: ^16.14.0 || >=18.0.0} dependencies: hosted-git-info: 7.0.2 proc-log: 4.2.0 - semver: 7.6.2 - validate-npm-package-name: 5.0.0 + semver: 7.6.3 + validate-npm-package-name: 5.0.1 /npm-packlist@5.1.3: resolution: {integrity: sha512-263/0NGrn32YFYi4J533qzrQ/krmmrWwhKkzwTuM4f/07ug51odoaNjUexxO4vxlzURHcmYMH1QjvHjsNDKLVg==} @@ -13258,7 +13274,7 @@ packages: dependencies: npm-install-checks: 6.3.0 npm-normalize-package-bin: 3.0.1 - npm-package-arg: 11.0.2 + npm-package-arg: 11.0.3 semver: 7.6.3 dev: true @@ -13272,7 +13288,7 @@ packages: minipass: 7.1.2 minipass-fetch: 3.0.5 minizlib: 2.1.2 - npm-package-arg: 11.0.2 + npm-package-arg: 11.0.3 proc-log: 4.2.0 transitivePeerDependencies: - supports-color @@ -15882,6 +15898,17 @@ packages: - supports-color dev: false + /socks-proxy-agent@8.0.4: + resolution: {integrity: sha512-GNAq/eg8Udq2x0eNiFkr9gRg5bA7PXEWagQdeRX4cPSG+X/8V38v637gim9bjFptMk1QWsCTr0ttrJEiXbNnRw==} + engines: {node: '>= 14'} + dependencies: + agent-base: 7.1.1 + debug: 4.3.6 + socks: 2.8.3 + transitivePeerDependencies: + - supports-color + dev: false + /socks@2.8.3: resolution: {integrity: sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==} engines: {node: '>= 10.0.0', npm: '>= 3.0.0'} @@ -16524,7 +16551,7 @@ packages: /ts-interface-checker@0.1.13: resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} - /ts-node@10.9.2(@types/node@22.1.0)(typescript@5.5.4): + /ts-node@10.9.2(@types/node@20.14.10)(typescript@5.5.4): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -16543,7 +16570,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 22.1.0 + '@types/node': 20.14.10 acorn: 8.12.1 acorn-walk: 8.3.2 arg: 4.1.3 @@ -16835,8 +16862,8 @@ packages: hasBin: true dev: false - /typesync@0.12.2(typescript@5.5.4): - resolution: {integrity: sha512-PdjWi2vk/gEsZvBFa3CNKeapbjo3fYo/olwxJq7M10JVy9oPvM7ULIUYV/Xtohezouz63NBZdoD+ncTVQUBw2A==} + /typesync@0.13.0(typescript@5.5.4): + resolution: {integrity: sha512-t5+DHmXqNHJyX9PSocEEB6c5gQlO0j0LLxEiZ/HMz0lWJWBf+bKEXTORkquAuUgjMZ7U5Hx8w63Qmebx7bK2FA==} engines: {node: '>=16.0.0'} hasBin: true dependencies: @@ -16845,9 +16872,10 @@ packages: cosmiconfig: 9.0.0(typescript@5.5.4) detect-indent: 6.1.0 glob: 10.4.5 + js-yaml: 4.1.0 npm-registry-fetch: 17.1.0 ora: 5.4.1 - semver: 7.6.2 + semver: 7.6.3 transitivePeerDependencies: - supports-color - typescript @@ -16876,10 +16904,6 @@ packages: /undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - /undici-types@6.13.0: - resolution: {integrity: sha512-xtFJHudx8S2DSoujjMd1WeWvn7KKWFRESZTMeL1RptAYERu29D6jphMjjY+vn96jvN3kVPDNxU/E13VTaXj6jg==} - dev: false - /unicode-canonical-property-names-ecmascript@2.0.0: resolution: {integrity: sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==} engines: {node: '>=4'} @@ -17230,6 +17254,10 @@ packages: dependencies: builtins: 5.1.0 + /validate-npm-package-name@5.0.1: + resolution: {integrity: sha512-OljLrQ9SQdOUqTaQxqL5dEfZWrXExyyWsozYlAWFawPVNuD83igl7uJD2RTkNMbniIYgt8l81eCJGIdQF7avLQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + /value-equal@1.0.1: resolution: {integrity: sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw==} dev: false From 76dcc6af8a8ca92a9cc4222cd8d62ef547c74ca5 Mon Sep 17 00:00:00 2001 From: AndreaPontrandolfo Date: Wed, 7 Aug 2024 00:33:04 +0200 Subject: [PATCH 4/4] added changeset --- .changeset/violet-eyes-cover.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/violet-eyes-cover.md diff --git a/.changeset/violet-eyes-cover.md b/.changeset/violet-eyes-cover.md new file mode 100644 index 00000000..fe8003ed --- /dev/null +++ b/.changeset/violet-eyes-cover.md @@ -0,0 +1,6 @@ +--- +'eslint-config-sheriff': patch +'sheriff-webservices': patch +--- + +feat(deps): added @types/eslint-plugin-jsx-a11y