diff --git a/eslint.config.mjs b/eslint.config.mjs index ad2c0ac3b6..fbb623bbcc 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -113,6 +113,8 @@ export default [ 'unicorn/no-anonymous-default-export': 'off', // disabled because of false positives related to `EmberArray` 'unicorn/no-array-for-each': 'off', + // disabled because `toReversed` is not "widely supported" yet + 'unicorn/no-array-reverse': 'off', // disabled because it is annoying in some cases... 'unicorn/no-await-expression-member': 'off', // disabled because we need `null` since JSON has no `undefined` diff --git a/package.json b/package.json index 2d3d9deb1d..53cb7e1f7e 100644 --- a/package.json +++ b/package.json @@ -124,7 +124,7 @@ "eslint-plugin-prettier": "5.5.3", "eslint-plugin-qunit": "8.2.4", "eslint-plugin-qunit-dom": "0.2.0", - "eslint-plugin-unicorn": "59.0.1", + "eslint-plugin-unicorn": "60.0.0", "globals": "16.3.0", "globby": "14.1.0", "loader.js": "4.7.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 880f4ce132..8de797a1e0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -261,8 +261,8 @@ importers: specifier: 0.2.0 version: 0.2.0(eslint@9.31.0) eslint-plugin-unicorn: - specifier: 59.0.1 - version: 59.0.1(eslint@9.31.0) + specifier: 60.0.0 + version: 60.0.0(eslint@9.31.0) globals: specifier: 16.3.0 version: 16.3.0 @@ -1538,10 +1538,6 @@ packages: resolution: {integrity: sha512-ViuymvFmcJi04qdZeDc2whTHryouGcDlaxPqarTD0ZE10ISpxGUVZGZDx4w01upyIynL3iu6IXH2bS1NhclQMw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/core@0.13.0': - resolution: {integrity: sha512-yfkgDw1KR66rkT5A8ci4irzDysN7FRpq3ttJolR88OqQikAWqwA8j5VZyas+vjyBNFIJ7MfybJ9plMILI2UrCw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/core@0.15.1': resolution: {integrity: sha512-bkOp+iumZCCbt1K1CmWf0R9pM5yKpDv+ZXtvSyQpudrI9kuFLp+bM2WOPXImuD/ceQuaa8f5pj93Y7zyECIGNA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -1558,10 +1554,6 @@ packages: resolution: {integrity: sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/plugin-kit@0.2.8': - resolution: {integrity: sha512-ZAoA40rNMPwSm+AeHpCq8STiNAwzWLJuP8Xv4CHIc9wv/PSuExjMrmjfYNj682vW0OOiZ1HKxzvjQr9XZIisQA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/plugin-kit@0.3.3': resolution: {integrity: sha512-1+WqvgNMhmlAambTvT3KPtCl/Ibr68VldY2XY40SL1CE0ZXiakFR/cbTspaF5HsnpDMvcYYoJHfl4980NBjGag==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -3114,6 +3106,9 @@ packages: resolution: {integrity: sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==} engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + change-case@5.4.4: + resolution: {integrity: sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==} + chardet@0.7.0: resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==} @@ -4526,11 +4521,11 @@ packages: resolution: {integrity: sha512-rKlLQ/AIKFBNd9Ga8Cg058+iS0xqx2SE5rByyhAga2/ORDAHArfvc3tatAxUvaHzqUsDL0gIez3l2zcFQ9x7Vg==} engines: {node: ^16.0.0 || ^18.0.0 || >=20.0.0} - eslint-plugin-unicorn@59.0.1: - resolution: {integrity: sha512-EtNXYuWPUmkgSU2E7Ttn57LbRREQesIP1BiLn7OZLKodopKfDXfBUkC/0j6mpw2JExwf43Uf3qLSvrSvppgy8Q==} - engines: {node: ^18.20.0 || ^20.10.0 || >=21.0.0} + eslint-plugin-unicorn@60.0.0: + resolution: {integrity: sha512-QUzTefvP8stfSXsqKQ+vBQSEsXIlAiCduS/V1Em+FKgL9c21U/IIm20/e3MFy1jyCf14tHAhqC1sX8OTy6VUCg==} + engines: {node: ^20.10.0 || >=21.0.0} peerDependencies: - eslint: '>=9.22.0' + eslint: '>=9.29.0' eslint-scope@5.1.1: resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==} @@ -10025,10 +10020,6 @@ snapshots: '@eslint/config-helpers@0.3.0': {} - '@eslint/core@0.13.0': - dependencies: - '@types/json-schema': 7.0.15 - '@eslint/core@0.15.1': dependencies: '@types/json-schema': 7.0.15 @@ -10051,11 +10042,6 @@ snapshots: '@eslint/object-schema@2.1.6': {} - '@eslint/plugin-kit@0.2.8': - dependencies: - '@eslint/core': 0.13.0 - levn: 0.4.1 - '@eslint/plugin-kit@0.3.3': dependencies: '@eslint/core': 0.15.1 @@ -12176,6 +12162,8 @@ snapshots: chalk@5.4.1: {} + change-case@5.4.4: {} + chardet@0.7.0: {} charenc@0.0.2: {} @@ -14073,11 +14061,12 @@ snapshots: transitivePeerDependencies: - eslint - eslint-plugin-unicorn@59.0.1(eslint@9.31.0): + eslint-plugin-unicorn@60.0.0(eslint@9.31.0): dependencies: '@babel/helper-validator-identifier': 7.27.1 '@eslint-community/eslint-utils': 4.7.0(eslint@9.31.0) - '@eslint/plugin-kit': 0.2.8 + '@eslint/plugin-kit': 0.3.3 + change-case: 5.4.4 ci-info: 4.3.0 clean-regexp: 1.0.0 core-js-compat: 3.44.0