From 0de2f5df9c1251dec59d98f0152a15fe1b28e821 Mon Sep 17 00:00:00 2001 From: Andrey Sitnik Date: Wed, 24 Apr 2024 10:53:42 +0200 Subject: [PATCH] Move to ESLint flat config --- eslint.config.mjs | 12 + package.json | 7 +- pnpm-lock.yaml | 329 ++++++++++++++---- test/err/options/parser/.postcssrc.js | 2 +- test/err/options/stringifier/.postcssrc.js | 2 +- test/err/options/syntax/.postcssrc.js | 2 +- test/err/plugins/.postcssrc.js | 6 +- test/err/plugins/array/.postcssrc.js | 6 +- test/err/plugins/array/options/.postcssrc.js | 6 +- test/err/plugins/object/.postcssrc.js | 2 +- test/err/plugins/object/options/.postcssrc.js | 2 +- test/js/array/cjs/postcss.config.cjs | 10 +- test/js/array/esm-in-js/pnpm-lock.yaml | 6 +- test/js/array/esm/postcss.config.mjs | 12 +- test/js/object/cjs/postcss.config.cjs | 14 +- test/js/object/esm-in-js/pnpm-lock.yaml | 6 +- test/js/object/esm/postcss.config.mjs | 14 +- test/pkg/pnpm-lock.yaml | 6 +- test/plugins/postcss.config.mjs | 4 +- test/ts/array/esm-in-ts/pnpm-lock.yaml | 6 +- test/ts/object/esm-in-ts/pnpm-lock.yaml | 6 +- 21 files changed, 346 insertions(+), 114 deletions(-) create mode 100644 eslint.config.mjs diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..db2375c --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,12 @@ +import loguxConfig from '@logux/eslint-config' + +export default [ + ...loguxConfig, + { + files: ['test/**/*.js', 'test/**/*.cjs'], + rules: { + 'n/global-require': 'off', + 'n/no-missing-require': 'off' + } + } +] diff --git a/package.json b/package.json index 60f7546..5ca1082 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "yaml": "^2.4.1" }, "devDependencies": { - "@logux/eslint-config": "^52.0.2", + "@logux/eslint-config": "^53.0.1", "@types/node": "^20.12.7", "@types/postcss-import": "^14.0.3", "c8": "^9.1.0", @@ -42,7 +42,7 @@ "eslint": "^8.57.0", "eslint-config-standard": "^17.1.0", "eslint-plugin-import": "^2.29.1", - "eslint-plugin-n": "^16.6.2", + "eslint-plugin-n": "^17.2.1", "eslint-plugin-node-import": "^1.0.4", "eslint-plugin-perfectionist": "^2.9.0", "eslint-plugin-prefer-let": "^3.0.1", @@ -67,9 +67,6 @@ "optional": true } }, - "eslintConfig": { - "extends": "@logux/eslint-config" - }, "c8": { "exclude": [ "test/**/*" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 164244d..cb168d8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,8 +16,8 @@ importers: version: 2.4.1 devDependencies: '@logux/eslint-config': - specifier: ^52.0.2 - version: 52.0.2(eslint-config-standard@17.1.0(eslint-plugin-import@2.29.1(eslint@8.57.0))(eslint-plugin-n@16.6.2(eslint@8.57.0))(eslint-plugin-promise@6.1.1(eslint@8.57.0))(eslint@8.57.0))(eslint-plugin-import@2.29.1(eslint@8.57.0))(eslint-plugin-n@16.6.2(eslint@8.57.0))(eslint-plugin-node-import@1.0.4(eslint@8.57.0))(eslint-plugin-perfectionist@2.9.0(eslint@8.57.0)(typescript@5.4.5))(eslint-plugin-prefer-let@3.0.1)(eslint-plugin-promise@6.1.1(eslint@8.57.0))(eslint@8.57.0) + specifier: ^53.0.1 + version: 53.0.1(@typescript-eslint/parser@7.7.1(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0)(typescript@5.4.5) '@types/node': specifier: ^20.12.7 version: 20.12.7 @@ -38,13 +38,13 @@ importers: version: 8.57.0 eslint-config-standard: specifier: ^17.1.0 - version: 17.1.0(eslint-plugin-import@2.29.1(eslint@8.57.0))(eslint-plugin-n@16.6.2(eslint@8.57.0))(eslint-plugin-promise@6.1.1(eslint@8.57.0))(eslint@8.57.0) + version: 17.1.0(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.1(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0))(eslint-plugin-n@17.2.1(eslint@8.57.0))(eslint-plugin-promise@6.1.1(eslint@8.57.0))(eslint@8.57.0) eslint-plugin-import: specifier: ^2.29.1 - version: 2.29.1(eslint@8.57.0) + version: 2.29.1(@typescript-eslint/parser@7.7.1(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0) eslint-plugin-n: - specifier: ^16.6.2 - version: 16.6.2(eslint@8.57.0) + specifier: ^17.2.1 + version: 17.2.1(eslint@8.57.0) eslint-plugin-node-import: specifier: ^1.0.4 version: 1.0.4(eslint@8.57.0) @@ -119,6 +119,10 @@ packages: resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + '@eslint/eslintrc@3.0.2': + resolution: {integrity: sha512-wV19ZEGEMAC1eHgrS7UQPqsdEiCIbTKTasEfcXAigzoXICcqZSjBZEHlZwNVvKg6UBCjSlos84XiLqsRJnIcIg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/js@8.57.0': resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -152,18 +156,18 @@ packages: resolution: {integrity: sha512-5e+SFVavj1ORKlKaKr2BmTOekmXbelU7dC0cDkQLqag7xfuTPuGMUFx7KWJuv4bYZrTsoL2Z18VVCOKYxzoHcg==} engines: {node: '>=v12.0.0'} - '@logux/eslint-config@52.0.2': - resolution: {integrity: sha512-oD569Lqs5P/QvlkBLL9GWpKOmI3wXCKb+0VHuY41VVnP8cRpD0LzUbnEqV9pIeld8f9DJwWc+I6JgndtgotElw==} - engines: {node: '>=10.0.0'} + '@logux/eslint-config@53.0.1': + resolution: {integrity: sha512-TjbMVNjfsob/99Huw4cSXAQcfLw4cx9E89NmmiDfqLPF51nCJHgkFr6P4vLny1iM0uXnOXwyTaYF2WTGcygtJQ==} + engines: {node: '>=18.0.0'} peerDependencies: - eslint: ^8.53.0 - eslint-config-standard: ^17.1.0 - eslint-plugin-import: ^2.29.0 - eslint-plugin-n: ^16.3.1 - eslint-plugin-node-import: ^1.0.4 - eslint-plugin-perfectionist: ^2.4.0 - eslint-plugin-prefer-let: ^3.0.1 - eslint-plugin-promise: ^6.1.1 + eslint: ^8.57.0 || ^9.0.0 + eslint-plugin-svelte: ^2.35.1 + svelte: ^4.2.12 + peerDependenciesMeta: + eslint-plugin-svelte: + optional: true + svelte: + optional: true '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} @@ -208,14 +212,53 @@ packages: '@types/semver@7.5.8': resolution: {integrity: sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==} + '@typescript-eslint/eslint-plugin@7.7.1': + resolution: {integrity: sha512-KwfdWXJBOviaBVhxO3p5TJiLpNuh2iyXyjmWN0f1nU87pwyvfS0EmjC6ukQVYVFJd/K1+0NWGPDXiyEyQorn0Q==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + '@typescript-eslint/parser': ^7.0.0 + eslint: ^8.56.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + '@typescript-eslint/parser@7.7.1': + resolution: {integrity: sha512-vmPzBOOtz48F6JAGVS/kZYk4EkXao6iGrD838sp1w3NQQC0W8ry/q641KU4PrG7AKNAf56NOcR8GOpH8l9FPCw==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + eslint: ^8.56.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + '@typescript-eslint/scope-manager@6.21.0': resolution: {integrity: sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==} engines: {node: ^16.0.0 || >=18.0.0} + '@typescript-eslint/scope-manager@7.7.1': + resolution: {integrity: sha512-PytBif2SF+9SpEUKynYn5g1RHFddJUcyynGpztX3l/ik7KmZEv19WCMhUBkHXPU9es/VWGD3/zg3wg90+Dh2rA==} + engines: {node: ^18.18.0 || >=20.0.0} + + '@typescript-eslint/type-utils@7.7.1': + resolution: {integrity: sha512-ZksJLW3WF7o75zaBPScdW1Gbkwhd/lyeXGf1kQCxJaOeITscoSl0MjynVvCzuV5boUz/3fOI06Lz8La55mu29Q==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + eslint: ^8.56.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + '@typescript-eslint/types@6.21.0': resolution: {integrity: sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==} engines: {node: ^16.0.0 || >=18.0.0} + '@typescript-eslint/types@7.7.1': + resolution: {integrity: sha512-AmPmnGW1ZLTpWa+/2omPrPfR7BcbUU4oha5VIbSbS1a1Tv966bklvLNXxp3mrbc+P2j4MNOTfDffNsk4o0c6/w==} + engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/typescript-estree@6.21.0': resolution: {integrity: sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==} engines: {node: ^16.0.0 || >=18.0.0} @@ -225,16 +268,35 @@ packages: typescript: optional: true + '@typescript-eslint/typescript-estree@7.7.1': + resolution: {integrity: sha512-CXe0JHCXru8Fa36dteXqmH2YxngKJjkQLjxzoj6LYwzZ7qZvgsLSc+eqItCrqIop8Vl2UKoAi0StVWu97FQZIQ==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + '@typescript-eslint/utils@6.21.0': resolution: {integrity: sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 + '@typescript-eslint/utils@7.7.1': + resolution: {integrity: sha512-QUvBxPEaBXf41ZBbaidKICgVL8Hin0p6prQDu6bbetWo39BKbWJxRsErOzMNT1rXvTll+J7ChrbmMCXM9rsvOQ==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + eslint: ^8.56.0 + '@typescript-eslint/visitor-keys@6.21.0': resolution: {integrity: sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==} engines: {node: ^16.0.0 || >=18.0.0} + '@typescript-eslint/visitor-keys@7.7.1': + resolution: {integrity: sha512-gBL3Eq25uADw1LQ9kVpf3hRM+DWzs0uZknHYK3hq4jcTPqVCClHGDnB6UUUV2SFeBeA4KWHWbbLqmbGcZ4FYbw==} + engines: {node: ^18.18.0 || >=20.0.0} + '@ungap/structured-clone@1.2.0': resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} @@ -346,13 +408,6 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true - builtin-modules@3.3.0: - resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==} - engines: {node: '>=6'} - - builtins@5.1.0: - resolution: {integrity: sha512-SW9lzGTLvWTP1AY8xeAMZimqDrIaSdLQUcVr9DMef51niJ022Ri87SwRRKYm4A6iHfkPaiVUu/Duw2Wc4J7kKg==} - c8@9.1.0: resolution: {integrity: sha512-mBWcT5iqNir1zIkzSPyI3NCR9EZCVI3WUD+AVO17MVWTSFNyUueXE82qTeampNtTr+ilN/5Ua3j24LgbCKjDVg==} engines: {node: '>=14.14.0'} @@ -567,6 +622,10 @@ packages: emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + enhanced-resolve@5.16.0: + resolution: {integrity: sha512-O+QWCviPNSSLAD9Ucn8Awv+poAkqn3T1XY5/N7kR7rQO9yfSGWkYZDwpJ+iKF7B8rxaQKWngSqACpgzeapSyoA==} + engines: {node: '>=10.13.0'} + entities@2.1.0: resolution: {integrity: sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==} @@ -668,11 +727,11 @@ packages: '@typescript-eslint/parser': optional: true - eslint-plugin-n@16.6.2: - resolution: {integrity: sha512-6TyDmZ1HXoFQXnhCTUjVFULReoBPOAjpuiKELMkeP40yffI/1ZRO+d9ug/VC6fqISo2WkuIBk3cvuRPALaWlOQ==} - engines: {node: '>=16.0.0'} + eslint-plugin-n@17.2.1: + resolution: {integrity: sha512-uW1+df2bo06kR7ix6nB614RUlvjRPrYxlaX832O6e1MCJp4V7YozEdvMgCYuvn4ltnjPu1FVYhQ2KRrmTNoJfg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: - eslint: '>=7.0.0' + eslint: '>=8.23.0' eslint-plugin-node-import@1.0.4: resolution: {integrity: sha512-nn6EkM7+vJCDCXZiM0FDpYSekbhlk5LNoHJm9DlVSucGrsT9WoK+qOxIEm+SwoFBeH73cMHMavioDaHsu22b0Q==} @@ -716,11 +775,19 @@ packages: resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + eslint-visitor-keys@4.0.0: + resolution: {integrity: sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + eslint@8.57.0: resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true + espree@10.0.1: + resolution: {integrity: sha512-MWkrWZbJsL2UwnjxTX3gG8FneachS/Mwg7tdGXce011sJd5b0JG54vat5KHnfSBODZ3Wvzd2WnjxyzsRoVv+ww==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + espree@9.6.1: resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -838,6 +905,10 @@ packages: resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} engines: {node: '>=8'} + globals@14.0.0: + resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} + engines: {node: '>=18'} + globalthis@1.0.3: resolution: {integrity: sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==} engines: {node: '>= 0.4'} @@ -922,10 +993,6 @@ packages: resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==} engines: {node: '>= 0.4'} - is-builtin-module@3.2.1: - resolution: {integrity: sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==} - engines: {node: '>=6'} - is-callable@1.2.7: resolution: {integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==} engines: {node: '>= 0.4'} @@ -1642,6 +1709,10 @@ packages: resolution: {integrity: sha512-zTvf0mcggrGeTe/2jJ6ECkJHAQPIYEwDoqsiqBjI24mvRmQbInK5jq33fyypaCBxX08hMkfmdOqj6haT33EqWw==} engines: {node: '>=4.0.0'} + tapable@2.2.1: + resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==} + engines: {node: '>=6'} + temp-path@1.0.0: resolution: {integrity: sha512-TvmyH7kC6ZVTYkqCODjJIbgvu0FKiwQpZ4D1aknE7xpcDf/qEOB8KZEK5ef2pfbVoiBhNWs3yx4y+ESMtNYmlg==} @@ -1705,6 +1776,16 @@ packages: resolution: {integrity: sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g==} engines: {node: '>= 0.4'} + typescript-eslint@7.7.1: + resolution: {integrity: sha512-ykEBfa3xx3odjZy6GRED4SCPrjo0rgHwstLlEgLX4EMEuv7QeIDSmfV+S6Kk+XkbsYn4BDEcPvsci1X26lRpMQ==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + eslint: ^8.56.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + typescript@5.4.5: resolution: {integrity: sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==} engines: {node: '>=14.17'} @@ -1856,6 +1937,20 @@ snapshots: transitivePeerDependencies: - supports-color + '@eslint/eslintrc@3.0.2': + dependencies: + ajv: 6.12.6 + debug: 4.3.4 + espree: 10.0.1 + globals: 14.0.0 + ignore: 5.3.1 + import-fresh: 3.3.0 + js-yaml: 4.1.0 + minimatch: 3.1.2 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - supports-color + '@eslint/js@8.57.0': {} '@humanwhocodes/config-array@0.11.14': @@ -1885,16 +1980,26 @@ snapshots: dependencies: lodash: 4.17.21 - '@logux/eslint-config@52.0.2(eslint-config-standard@17.1.0(eslint-plugin-import@2.29.1(eslint@8.57.0))(eslint-plugin-n@16.6.2(eslint@8.57.0))(eslint-plugin-promise@6.1.1(eslint@8.57.0))(eslint@8.57.0))(eslint-plugin-import@2.29.1(eslint@8.57.0))(eslint-plugin-n@16.6.2(eslint@8.57.0))(eslint-plugin-node-import@1.0.4(eslint@8.57.0))(eslint-plugin-perfectionist@2.9.0(eslint@8.57.0)(typescript@5.4.5))(eslint-plugin-prefer-let@3.0.1)(eslint-plugin-promise@6.1.1(eslint@8.57.0))(eslint@8.57.0)': + '@logux/eslint-config@53.0.1(@typescript-eslint/parser@7.7.1(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0)(typescript@5.4.5)': dependencies: + '@eslint/eslintrc': 3.0.2 eslint: 8.57.0 - eslint-config-standard: 17.1.0(eslint-plugin-import@2.29.1(eslint@8.57.0))(eslint-plugin-n@16.6.2(eslint@8.57.0))(eslint-plugin-promise@6.1.1(eslint@8.57.0))(eslint@8.57.0) - eslint-plugin-import: 2.29.1(eslint@8.57.0) - eslint-plugin-n: 16.6.2(eslint@8.57.0) - eslint-plugin-node-import: 1.0.4(eslint@8.57.0) + eslint-config-standard: 17.1.0(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.1(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0))(eslint-plugin-n@17.2.1(eslint@8.57.0))(eslint-plugin-promise@6.1.1(eslint@8.57.0))(eslint@8.57.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.7.1(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0) + eslint-plugin-n: 17.2.1(eslint@8.57.0) eslint-plugin-perfectionist: 2.9.0(eslint@8.57.0)(typescript@5.4.5) eslint-plugin-prefer-let: 3.0.1 eslint-plugin-promise: 6.1.1(eslint@8.57.0) + typescript-eslint: 7.7.1(eslint@8.57.0)(typescript@5.4.5) + transitivePeerDependencies: + - '@typescript-eslint/parser' + - astro-eslint-parser + - eslint-import-resolver-typescript + - eslint-import-resolver-webpack + - supports-color + - svelte-eslint-parser + - typescript + - vue-eslint-parser '@nodelib/fs.scandir@2.1.5': dependencies: @@ -1935,13 +2040,65 @@ snapshots: '@types/semver@7.5.8': {} + '@typescript-eslint/eslint-plugin@7.7.1(@typescript-eslint/parser@7.7.1(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0)(typescript@5.4.5)': + dependencies: + '@eslint-community/regexpp': 4.10.0 + '@typescript-eslint/parser': 7.7.1(eslint@8.57.0)(typescript@5.4.5) + '@typescript-eslint/scope-manager': 7.7.1 + '@typescript-eslint/type-utils': 7.7.1(eslint@8.57.0)(typescript@5.4.5) + '@typescript-eslint/utils': 7.7.1(eslint@8.57.0)(typescript@5.4.5) + '@typescript-eslint/visitor-keys': 7.7.1 + debug: 4.3.4 + eslint: 8.57.0 + graphemer: 1.4.0 + ignore: 5.3.1 + natural-compare: 1.4.0 + semver: 7.6.0 + ts-api-utils: 1.3.0(typescript@5.4.5) + optionalDependencies: + typescript: 5.4.5 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/parser@7.7.1(eslint@8.57.0)(typescript@5.4.5)': + dependencies: + '@typescript-eslint/scope-manager': 7.7.1 + '@typescript-eslint/types': 7.7.1 + '@typescript-eslint/typescript-estree': 7.7.1(typescript@5.4.5) + '@typescript-eslint/visitor-keys': 7.7.1 + debug: 4.3.4 + eslint: 8.57.0 + optionalDependencies: + typescript: 5.4.5 + transitivePeerDependencies: + - supports-color + '@typescript-eslint/scope-manager@6.21.0': dependencies: '@typescript-eslint/types': 6.21.0 '@typescript-eslint/visitor-keys': 6.21.0 + '@typescript-eslint/scope-manager@7.7.1': + dependencies: + '@typescript-eslint/types': 7.7.1 + '@typescript-eslint/visitor-keys': 7.7.1 + + '@typescript-eslint/type-utils@7.7.1(eslint@8.57.0)(typescript@5.4.5)': + dependencies: + '@typescript-eslint/typescript-estree': 7.7.1(typescript@5.4.5) + '@typescript-eslint/utils': 7.7.1(eslint@8.57.0)(typescript@5.4.5) + debug: 4.3.4 + eslint: 8.57.0 + ts-api-utils: 1.3.0(typescript@5.4.5) + optionalDependencies: + typescript: 5.4.5 + transitivePeerDependencies: + - supports-color + '@typescript-eslint/types@6.21.0': {} + '@typescript-eslint/types@7.7.1': {} + '@typescript-eslint/typescript-estree@6.21.0(typescript@5.4.5)': dependencies: '@typescript-eslint/types': 6.21.0 @@ -1957,6 +2114,21 @@ snapshots: transitivePeerDependencies: - supports-color + '@typescript-eslint/typescript-estree@7.7.1(typescript@5.4.5)': + dependencies: + '@typescript-eslint/types': 7.7.1 + '@typescript-eslint/visitor-keys': 7.7.1 + debug: 4.3.4 + globby: 11.1.0 + is-glob: 4.0.3 + minimatch: 9.0.4 + semver: 7.6.0 + ts-api-utils: 1.3.0(typescript@5.4.5) + optionalDependencies: + typescript: 5.4.5 + transitivePeerDependencies: + - supports-color + '@typescript-eslint/utils@6.21.0(eslint@8.57.0)(typescript@5.4.5)': dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) @@ -1971,11 +2143,30 @@ snapshots: - supports-color - typescript + '@typescript-eslint/utils@7.7.1(eslint@8.57.0)(typescript@5.4.5)': + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@types/json-schema': 7.0.15 + '@types/semver': 7.5.8 + '@typescript-eslint/scope-manager': 7.7.1 + '@typescript-eslint/types': 7.7.1 + '@typescript-eslint/typescript-estree': 7.7.1(typescript@5.4.5) + eslint: 8.57.0 + semver: 7.6.0 + transitivePeerDependencies: + - supports-color + - typescript + '@typescript-eslint/visitor-keys@6.21.0': dependencies: '@typescript-eslint/types': 6.21.0 eslint-visitor-keys: 3.4.3 + '@typescript-eslint/visitor-keys@7.7.1': + dependencies: + '@typescript-eslint/types': 7.7.1 + eslint-visitor-keys: 3.4.3 + '@ungap/structured-clone@1.2.0': {} acorn-jsx@5.3.2(acorn@8.11.3): @@ -2099,12 +2290,6 @@ snapshots: node-releases: 2.0.14 update-browserslist-db: 1.0.13(browserslist@4.23.0) - builtin-modules@3.3.0: {} - - builtins@5.1.0: - dependencies: - semver: 7.6.0 - c8@9.1.0: dependencies: '@bcoe/v8-coverage': 0.2.3 @@ -2384,6 +2569,11 @@ snapshots: emoji-regex@8.0.0: {} + enhanced-resolve@5.16.0: + dependencies: + graceful-fs: 4.2.11 + tapable: 2.2.1 + entities@2.1.0: {} entities@4.5.0: {} @@ -2474,11 +2664,11 @@ snapshots: eslint: 8.57.0 semver: 7.6.0 - eslint-config-standard@17.1.0(eslint-plugin-import@2.29.1(eslint@8.57.0))(eslint-plugin-n@16.6.2(eslint@8.57.0))(eslint-plugin-promise@6.1.1(eslint@8.57.0))(eslint@8.57.0): + eslint-config-standard@17.1.0(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.1(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0))(eslint-plugin-n@17.2.1(eslint@8.57.0))(eslint-plugin-promise@6.1.1(eslint@8.57.0))(eslint@8.57.0): dependencies: eslint: 8.57.0 - eslint-plugin-import: 2.29.1(eslint@8.57.0) - eslint-plugin-n: 16.6.2(eslint@8.57.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.7.1(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0) + eslint-plugin-n: 17.2.1(eslint@8.57.0) eslint-plugin-promise: 6.1.1(eslint@8.57.0) eslint-import-resolver-node@0.3.9: @@ -2489,10 +2679,11 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.8.1(eslint-import-resolver-node@0.3.9)(eslint@8.57.0): + eslint-module-utils@2.8.1(@typescript-eslint/parser@7.7.1(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint@8.57.0): dependencies: debug: 3.2.7 optionalDependencies: + '@typescript-eslint/parser': 7.7.1(eslint@8.57.0)(typescript@5.4.5) eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 transitivePeerDependencies: @@ -2505,7 +2696,7 @@ snapshots: eslint: 8.57.0 eslint-compat-utils: 0.5.0(eslint@8.57.0) - eslint-plugin-import@2.29.1(eslint@8.57.0): + eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.1(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0): dependencies: array-includes: 3.1.8 array.prototype.findlastindex: 1.2.5 @@ -2515,7 +2706,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.8.1(eslint-import-resolver-node@0.3.9)(eslint@8.57.0) + eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.7.1(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint@8.57.0) hasown: 2.0.2 is-core-module: 2.13.1 is-glob: 4.0.3 @@ -2525,24 +2716,23 @@ snapshots: object.values: 1.2.0 semver: 6.3.1 tsconfig-paths: 3.15.0 + optionalDependencies: + '@typescript-eslint/parser': 7.7.1(eslint@8.57.0)(typescript@5.4.5) transitivePeerDependencies: - eslint-import-resolver-typescript - eslint-import-resolver-webpack - supports-color - eslint-plugin-n@16.6.2(eslint@8.57.0): + eslint-plugin-n@17.2.1(eslint@8.57.0): dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - builtins: 5.1.0 + enhanced-resolve: 5.16.0 eslint: 8.57.0 eslint-plugin-es-x: 7.6.0(eslint@8.57.0) get-tsconfig: 4.7.3 - globals: 13.24.0 + globals: 14.0.0 ignore: 5.3.1 - is-builtin-module: 3.2.1 - is-core-module: 2.13.1 - minimatch: 3.1.2 - resolve: 1.22.8 + minimatch: 9.0.4 semver: 7.6.0 eslint-plugin-node-import@1.0.4(eslint@8.57.0): @@ -2574,6 +2764,8 @@ snapshots: eslint-visitor-keys@3.4.3: {} + eslint-visitor-keys@4.0.0: {} + eslint@8.57.0: dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) @@ -2617,6 +2809,12 @@ snapshots: transitivePeerDependencies: - supports-color + espree@10.0.1: + dependencies: + acorn: 8.11.3 + acorn-jsx: 5.3.2(acorn@8.11.3) + eslint-visitor-keys: 4.0.0 + espree@9.6.1: dependencies: acorn: 8.11.3 @@ -2748,6 +2946,8 @@ snapshots: dependencies: type-fest: 0.20.2 + globals@14.0.0: {} + globalthis@1.0.3: dependencies: define-properties: 1.2.1 @@ -2836,10 +3036,6 @@ snapshots: call-bind: 1.0.7 has-tostringtag: 1.0.2 - is-builtin-module@3.2.1: - dependencies: - builtin-modules: 3.3.0 - is-callable@1.2.7: {} is-core-module@2.13.1: @@ -3533,6 +3729,8 @@ snapshots: typical: 2.6.1 wordwrapjs: 3.0.0 + tapable@2.2.1: {} + temp-path@1.0.0: {} test-exclude@6.0.0: @@ -3613,6 +3811,17 @@ snapshots: is-typed-array: 1.1.13 possible-typed-array-names: 1.0.0 + typescript-eslint@7.7.1(eslint@8.57.0)(typescript@5.4.5): + dependencies: + '@typescript-eslint/eslint-plugin': 7.7.1(@typescript-eslint/parser@7.7.1(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0)(typescript@5.4.5) + '@typescript-eslint/parser': 7.7.1(eslint@8.57.0)(typescript@5.4.5) + '@typescript-eslint/utils': 7.7.1(eslint@8.57.0)(typescript@5.4.5) + eslint: 8.57.0 + optionalDependencies: + typescript: 5.4.5 + transitivePeerDependencies: + - supports-color + typescript@5.4.5: {} typical@2.6.1: {} diff --git a/test/err/options/parser/.postcssrc.js b/test/err/options/parser/.postcssrc.js index b6a9703..bd0e075 100644 --- a/test/err/options/parser/.postcssrc.js +++ b/test/err/options/parser/.postcssrc.js @@ -1,4 +1,4 @@ -module.exports = function (ctx) { +module.exports = function () { return { parser: 'postcss-parser' } diff --git a/test/err/options/stringifier/.postcssrc.js b/test/err/options/stringifier/.postcssrc.js index f95f788..171c11d 100644 --- a/test/err/options/stringifier/.postcssrc.js +++ b/test/err/options/stringifier/.postcssrc.js @@ -1,4 +1,4 @@ -module.exports = function (ctx) { +module.exports = function () { return { stringifier: 'postcss-stringifier' } diff --git a/test/err/options/syntax/.postcssrc.js b/test/err/options/syntax/.postcssrc.js index 7f47a48..bec0e02 100644 --- a/test/err/options/syntax/.postcssrc.js +++ b/test/err/options/syntax/.postcssrc.js @@ -1,4 +1,4 @@ -module.exports = function (ctx) { +module.exports = function () { return { syntax: 'postcss-syntax' } diff --git a/test/err/plugins/.postcssrc.js b/test/err/plugins/.postcssrc.js index cc5ec15..e431528 100644 --- a/test/err/plugins/.postcssrc.js +++ b/test/err/plugins/.postcssrc.js @@ -1,7 +1,5 @@ -module.exports = function (ctx) { +module.exports = function () { return { - plugins: [ - require('./plugin') - ] + plugins: [require('./plugin')] } } diff --git a/test/err/plugins/array/.postcssrc.js b/test/err/plugins/array/.postcssrc.js index 4af9864..7bc6d20 100644 --- a/test/err/plugins/array/.postcssrc.js +++ b/test/err/plugins/array/.postcssrc.js @@ -1,7 +1,5 @@ -module.exports = function (ctx) { +module.exports = function () { return { - plugins: [ - require('postcss-plugin') - ] + plugins: [require('postcss-plugin')] } } diff --git a/test/err/plugins/array/options/.postcssrc.js b/test/err/plugins/array/options/.postcssrc.js index 4af9864..7bc6d20 100644 --- a/test/err/plugins/array/options/.postcssrc.js +++ b/test/err/plugins/array/options/.postcssrc.js @@ -1,7 +1,5 @@ -module.exports = function (ctx) { +module.exports = function () { return { - plugins: [ - require('postcss-plugin') - ] + plugins: [require('postcss-plugin')] } } diff --git a/test/err/plugins/object/.postcssrc.js b/test/err/plugins/object/.postcssrc.js index e448bac..e6bdce1 100644 --- a/test/err/plugins/object/.postcssrc.js +++ b/test/err/plugins/object/.postcssrc.js @@ -1,4 +1,4 @@ -module.exports = function (ctx) { +module.exports = function () { return { plugins: { 'postcss-plugin': {} diff --git a/test/err/plugins/object/options/.postcssrc.js b/test/err/plugins/object/options/.postcssrc.js index 2ed3c92..4dc8fb3 100644 --- a/test/err/plugins/object/options/.postcssrc.js +++ b/test/err/plugins/object/options/.postcssrc.js @@ -1,4 +1,4 @@ -module.exports = function (ctx) { +module.exports = function () { return { plugins: { 'postcss-plugin': { option: true } diff --git a/test/js/array/cjs/postcss.config.cjs b/test/js/array/cjs/postcss.config.cjs index dd76557..03c2115 100644 --- a/test/js/array/cjs/postcss.config.cjs +++ b/test/js/array/cjs/postcss.config.cjs @@ -1,14 +1,14 @@ module.exports = function (ctx) { return { - parser: ctx.parser ? 'sugarss' : false, - syntax: ctx.syntax ? 'sugarss' : false, - map: ctx.map ? 'inline' : false, from: './test/js/array/fixtures/index.css', - to: './test/js/array/expect/index.css', + map: ctx.map ? 'inline' : false, + parser: ctx.parser ? 'sugarss' : false, plugins: [ require('postcss-import')(), require('postcss-nested')(), ctx.env === 'production' ? require('cssnano')() : false - ] + ], + syntax: ctx.syntax ? 'sugarss' : false, + to: './test/js/array/expect/index.css' } } diff --git a/test/js/array/esm-in-js/pnpm-lock.yaml b/test/js/array/esm-in-js/pnpm-lock.yaml index 2b9f188..9b60ae1 100644 --- a/test/js/array/esm-in-js/pnpm-lock.yaml +++ b/test/js/array/esm-in-js/pnpm-lock.yaml @@ -1,5 +1,9 @@ -lockfileVersion: '6.0' +lockfileVersion: '9.0' settings: autoInstallPeers: true excludeLinksFromLockfile: false + +importers: + + .: {} diff --git a/test/js/array/esm/postcss.config.mjs b/test/js/array/esm/postcss.config.mjs index 47194ce..20a0e81 100644 --- a/test/js/array/esm/postcss.config.mjs +++ b/test/js/array/esm/postcss.config.mjs @@ -1,18 +1,18 @@ +import cssnano from 'cssnano' import postcssImport from 'postcss-import' import postcssNested from 'postcss-nested' -import cssnano from 'cssnano' export default function (ctx) { return { - parser: ctx.parser ? 'sugarss' : false, - syntax: ctx.syntax ? 'sugarss' : false, - map: ctx.map ? 'inline' : false, from: './test/js/array/fixtures/index.css', - to: './test/js/array/expect/index.css', + map: ctx.map ? 'inline' : false, + parser: ctx.parser ? 'sugarss' : false, plugins: [ postcssImport(), postcssNested(), ctx.env === 'production' ? cssnano() : false - ] + ], + syntax: ctx.syntax ? 'sugarss' : false, + to: './test/js/array/expect/index.css' } } diff --git a/test/js/object/cjs/postcss.config.cjs b/test/js/object/cjs/postcss.config.cjs index 85c4699..eebdfca 100644 --- a/test/js/object/cjs/postcss.config.cjs +++ b/test/js/object/cjs/postcss.config.cjs @@ -1,14 +1,14 @@ module.exports = function (ctx) { return { - parser: ctx.parser ? 'sugarss' : false, - syntax: ctx.syntax ? 'sugarss' : false, - map: ctx.map ? 'inline' : false, from: './test/js/object/fixtures/index.css', - to: './test/js/object/expect/index.css', + map: ctx.map ? 'inline' : false, + parser: ctx.parser ? 'sugarss' : false, plugins: { + cssnano: ctx.env === 'production' ? {} : false, 'postcss-import': {}, - 'postcss-nested': {}, - cssnano: ctx.env === 'production' ? {} : false - } + 'postcss-nested': {} + }, + syntax: ctx.syntax ? 'sugarss' : false, + to: './test/js/object/expect/index.css' } } diff --git a/test/js/object/esm-in-js/pnpm-lock.yaml b/test/js/object/esm-in-js/pnpm-lock.yaml index 2b9f188..9b60ae1 100644 --- a/test/js/object/esm-in-js/pnpm-lock.yaml +++ b/test/js/object/esm-in-js/pnpm-lock.yaml @@ -1,5 +1,9 @@ -lockfileVersion: '6.0' +lockfileVersion: '9.0' settings: autoInstallPeers: true excludeLinksFromLockfile: false + +importers: + + .: {} diff --git a/test/js/object/esm/postcss.config.mjs b/test/js/object/esm/postcss.config.mjs index 18035ed..b95b5f0 100644 --- a/test/js/object/esm/postcss.config.mjs +++ b/test/js/object/esm/postcss.config.mjs @@ -1,14 +1,14 @@ export default function (ctx) { return { - parser: ctx.parser ? 'sugarss' : false, - syntax: ctx.syntax ? 'sugarss' : false, - map: ctx.map ? 'inline' : false, from: './test/js/object/fixtures/index.css', - to: './test/js/object/expect/index.css', + map: ctx.map ? 'inline' : false, + parser: ctx.parser ? 'sugarss' : false, plugins: { + cssnano: ctx.env === 'production' ? {} : false, 'postcss-import': {}, - 'postcss-nested': {}, - cssnano: ctx.env === 'production' ? {} : false - } + 'postcss-nested': {} + }, + syntax: ctx.syntax ? 'sugarss' : false, + to: './test/js/object/expect/index.css' } } diff --git a/test/pkg/pnpm-lock.yaml b/test/pkg/pnpm-lock.yaml index 2b9f188..9b60ae1 100644 --- a/test/pkg/pnpm-lock.yaml +++ b/test/pkg/pnpm-lock.yaml @@ -1,5 +1,9 @@ -lockfileVersion: '6.0' +lockfileVersion: '9.0' settings: autoInstallPeers: true excludeLinksFromLockfile: false + +importers: + + .: {} diff --git a/test/plugins/postcss.config.mjs b/test/plugins/postcss.config.mjs index e2aa1f6..b36f929 100644 --- a/test/plugins/postcss.config.mjs +++ b/test/plugins/postcss.config.mjs @@ -1,9 +1,9 @@ const plugin = { - postcssPlugin: 'test', get postcss () { this.called = true return () => {} - } + }, + postcssPlugin: 'test' } const mod = {} diff --git a/test/ts/array/esm-in-ts/pnpm-lock.yaml b/test/ts/array/esm-in-ts/pnpm-lock.yaml index 2b9f188..9b60ae1 100644 --- a/test/ts/array/esm-in-ts/pnpm-lock.yaml +++ b/test/ts/array/esm-in-ts/pnpm-lock.yaml @@ -1,5 +1,9 @@ -lockfileVersion: '6.0' +lockfileVersion: '9.0' settings: autoInstallPeers: true excludeLinksFromLockfile: false + +importers: + + .: {} diff --git a/test/ts/object/esm-in-ts/pnpm-lock.yaml b/test/ts/object/esm-in-ts/pnpm-lock.yaml index 2b9f188..9b60ae1 100644 --- a/test/ts/object/esm-in-ts/pnpm-lock.yaml +++ b/test/ts/object/esm-in-ts/pnpm-lock.yaml @@ -1,5 +1,9 @@ -lockfileVersion: '6.0' +lockfileVersion: '9.0' settings: autoInstallPeers: true excludeLinksFromLockfile: false + +importers: + + .: {}