diff options
author | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2024-04-13 20:12:32 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-13 20:12:32 -0600 |
commit | d7b3e036a552b460bdbd65696438899344dfff60 (patch) | |
tree | f198fca5ff57b1bf83275877e1d7f288cfc5283e | |
parent | 6.7.3-nightly.9 [skip ci] (diff) | |
download | ferdium-app-d7b3e036a552b460bdbd65696438899344dfff60.tar.gz ferdium-app-d7b3e036a552b460bdbd65696438899344dfff60.tar.zst ferdium-app-d7b3e036a552b460bdbd65696438899344dfff60.zip |
chore: upgrade eslint-plugin-unicorn to v52 (#1681)
- upgrade `eslint-plugin-unicorn` from 51.0.1 to 52.0.0
- disable problematic rules that violate codebase pattern
-rw-r--r-- | .eslintrc.js | 12 | ||||
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | pnpm-lock.yaml | 34 |
3 files changed, 20 insertions, 28 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 50b511d0c..ed473c21b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js | |||
@@ -134,17 +134,9 @@ module.exports = { | |||
134 | 'unicorn/no-null': 0, | 134 | 'unicorn/no-null': 0, |
135 | 'unicorn/prefer-module': 0, | 135 | 'unicorn/prefer-module': 0, |
136 | 'unicorn/prevent-abbreviations': 0, | 136 | 'unicorn/prevent-abbreviations': 0, |
137 | 'unicorn/import-style': [ | 137 | 'unicorn/import-style': 0, |
138 | 2, | ||
139 | { | ||
140 | styles: { | ||
141 | path: { | ||
142 | named: true, | ||
143 | }, | ||
144 | }, | ||
145 | }, | ||
146 | ], | ||
147 | 'unicorn/consistent-destructuring': 0, | 138 | 'unicorn/consistent-destructuring': 0, |
139 | 'unicorn/no-anonymous-default-export': 0, | ||
148 | // eslint-plugin-sonar | 140 | // eslint-plugin-sonar |
149 | 'sonar/function-name': 0, | 141 | 'sonar/function-name': 0, |
150 | }, | 142 | }, |
diff --git a/package.json b/package.json index 9baeb457c..e4f2878c5 100644 --- a/package.json +++ b/package.json | |||
@@ -182,7 +182,7 @@ | |||
182 | "eslint-plugin-react": "7.34.1", | 182 | "eslint-plugin-react": "7.34.1", |
183 | "eslint-plugin-react-hooks": "4.6.0", | 183 | "eslint-plugin-react-hooks": "4.6.0", |
184 | "eslint-plugin-sonar": "0.13.2", | 184 | "eslint-plugin-sonar": "0.13.2", |
185 | "eslint-plugin-unicorn": "51.0.1", | 185 | "eslint-plugin-unicorn": "52.0.0", |
186 | "gulp-livereload": "4.0.2", | 186 | "gulp-livereload": "4.0.2", |
187 | "husky": "9.0.11", | 187 | "husky": "9.0.11", |
188 | "is-ci": "3.0.1", | 188 | "is-ci": "3.0.1", |
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f040d792b..c35cf7f6e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml | |||
@@ -406,8 +406,8 @@ devDependencies: | |||
406 | specifier: 0.13.2 | 406 | specifier: 0.13.2 |
407 | version: 0.13.2(@babel/core@7.24.4)(@typescript-eslint/parser@7.6.0)(eslint@8.57.0)(typescript@5.4.5) | 407 | version: 0.13.2(@babel/core@7.24.4)(@typescript-eslint/parser@7.6.0)(eslint@8.57.0)(typescript@5.4.5) |
408 | eslint-plugin-unicorn: | 408 | eslint-plugin-unicorn: |
409 | specifier: 51.0.1 | 409 | specifier: 52.0.0 |
410 | version: 51.0.1(eslint@8.57.0) | 410 | version: 52.0.0(eslint@8.57.0) |
411 | gulp-livereload: | 411 | gulp-livereload: |
412 | specifier: 4.0.2 | 412 | specifier: 4.0.2 |
413 | version: 4.0.2 | 413 | version: 4.0.2 |
@@ -3104,8 +3104,8 @@ packages: | |||
3104 | dependencies: | 3104 | dependencies: |
3105 | undici-types: 5.26.5 | 3105 | undici-types: 5.26.5 |
3106 | 3106 | ||
3107 | /@types/normalize-package-data@2.4.1: | 3107 | /@types/normalize-package-data@2.4.4: |
3108 | resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} | 3108 | resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} |
3109 | dev: true | 3109 | dev: true |
3110 | 3110 | ||
3111 | /@types/parse-json@4.0.0: | 3111 | /@types/parse-json@4.0.0: |
@@ -5323,8 +5323,8 @@ packages: | |||
5323 | engines: {node: '>=0.10.0'} | 5323 | engines: {node: '>=0.10.0'} |
5324 | dev: false | 5324 | dev: false |
5325 | 5325 | ||
5326 | /core-js-compat@3.34.0: | 5326 | /core-js-compat@3.36.1: |
5327 | resolution: {integrity: sha512-4ZIyeNbW/Cn1wkMMDy+mvrRUxrwFNjKwbhCfQpDd+eLgYipDqp8oGFGtLmhh18EDPKA0g3VUBYOxQGGwvWLVpA==} | 5327 | resolution: {integrity: sha512-Dk997v9ZCt3X/npqzyGdTlq6t7lDBhZwGvV94PKzDArjp7BTRm7WlDAXYd/OWdeFHO8OChQYRJNJvUCqCbrtKA==} |
5328 | dependencies: | 5328 | dependencies: |
5329 | browserslist: 4.23.0 | 5329 | browserslist: 4.23.0 |
5330 | dev: true | 5330 | dev: true |
@@ -6790,8 +6790,8 @@ packages: | |||
6790 | eslint: 8.57.0 | 6790 | eslint: 8.57.0 |
6791 | dev: true | 6791 | dev: true |
6792 | 6792 | ||
6793 | /eslint-plugin-unicorn@51.0.1(eslint@8.57.0): | 6793 | /eslint-plugin-unicorn@52.0.0(eslint@8.57.0): |
6794 | resolution: {integrity: sha512-MuR/+9VuB0fydoI0nIn2RDA5WISRn4AsJyNSaNKLVwie9/ONvQhxOBbkfSICBPnzKrB77Fh6CZZXjgTt/4Latw==} | 6794 | resolution: {integrity: sha512-1Yzm7/m+0R4djH0tjDjfVei/ju2w3AzUGjG6q8JnuNIL5xIwsflyCooW5sfBvQp2pMYQFSWWCFONsjCax1EHng==} |
6795 | engines: {node: '>=16'} | 6795 | engines: {node: '>=16'} |
6796 | peerDependencies: | 6796 | peerDependencies: |
6797 | eslint: '>=8.56.0' | 6797 | eslint: '>=8.56.0' |
@@ -6801,7 +6801,7 @@ packages: | |||
6801 | '@eslint/eslintrc': 2.1.4 | 6801 | '@eslint/eslintrc': 2.1.4 |
6802 | ci-info: 4.0.0 | 6802 | ci-info: 4.0.0 |
6803 | clean-regexp: 1.0.0 | 6803 | clean-regexp: 1.0.0 |
6804 | core-js-compat: 3.34.0 | 6804 | core-js-compat: 3.36.1 |
6805 | eslint: 8.57.0 | 6805 | eslint: 8.57.0 |
6806 | esquery: 1.5.0 | 6806 | esquery: 1.5.0 |
6807 | indent-string: 4.0.0 | 6807 | indent-string: 4.0.0 |
@@ -11910,7 +11910,7 @@ packages: | |||
11910 | resolution: {integrity: sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==} | 11910 | resolution: {integrity: sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==} |
11911 | engines: {node: '>=8'} | 11911 | engines: {node: '>=8'} |
11912 | dependencies: | 11912 | dependencies: |
11913 | '@types/normalize-package-data': 2.4.1 | 11913 | '@types/normalize-package-data': 2.4.4 |
11914 | normalize-package-data: 2.5.0 | 11914 | normalize-package-data: 2.5.0 |
11915 | parse-json: 5.2.0 | 11915 | parse-json: 5.2.0 |
11916 | type-fest: 0.6.0 | 11916 | type-fest: 0.6.0 |
@@ -12866,22 +12866,22 @@ packages: | |||
12866 | resolution: {integrity: sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==} | 12866 | resolution: {integrity: sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==} |
12867 | dependencies: | 12867 | dependencies: |
12868 | spdx-expression-parse: 3.0.1 | 12868 | spdx-expression-parse: 3.0.1 |
12869 | spdx-license-ids: 3.0.13 | 12869 | spdx-license-ids: 3.0.17 |
12870 | dev: true | 12870 | dev: true |
12871 | 12871 | ||
12872 | /spdx-exceptions@2.3.0: | 12872 | /spdx-exceptions@2.5.0: |
12873 | resolution: {integrity: sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==} | 12873 | resolution: {integrity: sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==} |
12874 | dev: true | 12874 | dev: true |
12875 | 12875 | ||
12876 | /spdx-expression-parse@3.0.1: | 12876 | /spdx-expression-parse@3.0.1: |
12877 | resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==} | 12877 | resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==} |
12878 | dependencies: | 12878 | dependencies: |
12879 | spdx-exceptions: 2.3.0 | 12879 | spdx-exceptions: 2.5.0 |
12880 | spdx-license-ids: 3.0.13 | 12880 | spdx-license-ids: 3.0.17 |
12881 | dev: true | 12881 | dev: true |
12882 | 12882 | ||
12883 | /spdx-license-ids@3.0.13: | 12883 | /spdx-license-ids@3.0.17: |
12884 | resolution: {integrity: sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==} | 12884 | resolution: {integrity: sha512-sh8PWc/ftMqAAdFiBu6Fy6JUOYjqDJBJvIhpfDMyHrr0Rbp5liZqd4TjtQ/RgfLjKFZb+LMx5hpml5qOWy0qvg==} |
12885 | dev: true | 12885 | dev: true |
12886 | 12886 | ||
12887 | /split-string@3.1.0: | 12887 | /split-string@3.1.0: |