From 579b1c4c725572420117371ee3ce33a796985d8f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 4 Apr 2024 21:43:51 +0800 Subject: [PATCH] chore(deps): update dependency eslint-plugin-unicorn to v52 (#16201) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: fisker --- eslint.config.js | 13 ------------- package.json | 2 +- scripts/release/steps/lint-files.js | 4 +++- yarn.lock | 10 +++++----- 4 files changed, 9 insertions(+), 20 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 74f0d9afa..c9db0d4e8 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -150,19 +150,6 @@ export default [ ], }, ], - "import/no-anonymous-default-export": [ - "error", - { - allowArray: true, - allowArrowFunction: true, - allowAnonymousClass: false, - allowAnonymousFunction: false, - allowCallExpression: true, - allowNew: true, - allowLiteral: true, - allowObject: true, - }, - ], // eslint-plugin-n "n/no-path-concat": "error", diff --git a/package.json b/package.json index 044751d21..66e8ae74e 100644 --- a/package.json +++ b/package.json @@ -137,7 +137,7 @@ "eslint-plugin-react": "7.34.1", "eslint-plugin-regexp": "2.4.0", "eslint-plugin-simple-import-sort": "12.0.0", - "eslint-plugin-unicorn": "51.0.1", + "eslint-plugin-unicorn": "52.0.0", "esm-utils": "4.2.1", "execa": "7.2.0", "jest": "30.0.0-alpha.3", diff --git a/scripts/release/steps/lint-files.js b/scripts/release/steps/lint-files.js index b92c69c21..8442d66f2 100644 --- a/scripts/release/steps/lint-files.js +++ b/scripts/release/steps/lint-files.js @@ -1,3 +1,5 @@ import { runYarn } from "../utils.js"; -export default () => runYarn("lint"); +const lintFiles = () => runYarn("lint"); + +export default lintFiles; diff --git a/yarn.lock b/yarn.lock index adb3d759c..62798f448 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3973,9 +3973,9 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-unicorn@npm:51.0.1": - version: 51.0.1 - resolution: "eslint-plugin-unicorn@npm:51.0.1" +"eslint-plugin-unicorn@npm:52.0.0": + version: 52.0.0 + resolution: "eslint-plugin-unicorn@npm:52.0.0" dependencies: "@babel/helper-validator-identifier": "npm:^7.22.20" "@eslint-community/eslint-utils": "npm:^4.4.0" @@ -3995,7 +3995,7 @@ __metadata: strip-indent: "npm:^3.0.0" peerDependencies: eslint: ">=8.56.0" - checksum: 10/cea770332423d49d0cd86ca96055be7f14895e1d0a9fb24c8ed4f18a6e1eeff362d4881c46e85d85c37938bb85a6eeae7e347bcf7a3bb7307a8dd309651e0adf + checksum: 10/69b8aeee04806b808a534fe5484ad75ee9feec6078aad90651d7ce7216e2bd14980fec5a2e05fd800b874406a54240af66f04ab83023a7f1fe67397b6dc4c032 languageName: node linkType: hard @@ -7438,7 +7438,7 @@ __metadata: eslint-plugin-react: "npm:7.34.1" eslint-plugin-regexp: "npm:2.4.0" eslint-plugin-simple-import-sort: "npm:12.0.0" - eslint-plugin-unicorn: "npm:51.0.1" + eslint-plugin-unicorn: "npm:52.0.0" esm-utils: "npm:4.2.1" espree: "npm:10.0.1" execa: "npm:7.2.0"