diff --git a/package.json b/package.json index 7da3e57e519..392d7df448c 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ }, "author": "Openverse ", "scripts": { - "postinstall": "pnpm --filter ./packages/* run build", - "preeslint": "pnpm --filter eslint-plugin run build", + "postinstall": "pnpm --filter './packages/*' run build", + "preeslint": "pnpm --filter '@openverse/eslint-plugin' run build", "eslint": "eslint --ext .js,.ts,.vue,.json,.json5 --ignore-path .gitignore --ignore-path .eslintignore --max-warnings=0 frontend automations/js packages .pnpmfile.cjs .eslintrc.js prettier.config.js tsconfig.base.json" }, "packageManager": "pnpm@8.12.1", diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index e26f78b8b88..ec2586a94d2 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -5,7 +5,7 @@ "version": "0.0.0", "main": "dist/index.js", "scripts": { - "build": "swc ./src -d ./dist", + "build": "swc ./src -d ./dist --strip-leading-paths --delete-dir-on-start", "test:unit": "pnpm run build && jest", "types": "tsc -p ." }, @@ -20,7 +20,7 @@ "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-import": "^2.28.1", "eslint-plugin-jest": "^27.2.3", - "eslint-plugin-playwright": "^0.21.0", + "eslint-plugin-playwright": "^0.22.0", "eslint-plugin-tsdoc": "^0.2.17", "eslint-plugin-unicorn": "^48.0.1", "eslint-plugin-vue": "^9.17.0", @@ -30,7 +30,7 @@ }, "devDependencies": { "@eslint/eslintrc": "^2.1.2", - "@swc/cli": "^0.1.62", + "@swc/cli": "^0.3.0", "@swc/core": "^1.3.82", "@swc/jest": "^0.2.29", "@typescript-eslint/rule-tester": "^6.5.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c6d9084a62f..22cbd83d756 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -344,8 +344,8 @@ importers: specifier: ^27.2.3 version: 27.2.3(@typescript-eslint/eslint-plugin@6.5.0)(eslint@8.48.0)(jest@29.6.4)(typescript@5.2.2) eslint-plugin-playwright: - specifier: ^0.21.0 - version: 0.21.0(eslint-plugin-jest@27.2.3)(eslint@8.48.0) + specifier: ^0.22.0 + version: 0.22.2(eslint-plugin-jest@27.2.3)(eslint@8.48.0) eslint-plugin-tsdoc: specifier: ^0.2.17 version: 0.2.17 @@ -369,8 +369,8 @@ importers: specifier: ^2.1.2 version: 2.1.2 '@swc/cli': - specifier: ^0.1.62 - version: 0.1.62(@swc/core@1.3.82) + specifier: ^0.3.0 + version: 0.3.9(@swc/core@1.3.82) '@swc/core': specifier: ^1.3.82 version: 1.3.82 @@ -3937,7 +3937,7 @@ packages: ajv: 6.12.6 debug: 4.3.4 espree: 9.6.1 - globals: 13.21.0 + globals: 13.24.0 ignore: 5.2.4 import-fresh: 3.3.0 js-yaml: 4.1.0 @@ -7013,9 +7013,9 @@ packages: - webpack-command dev: true - /@swc/cli@0.1.62(@swc/core@1.3.82): - resolution: {integrity: sha512-kOFLjKY3XH1DWLfXL1/B5MizeNorHR8wHKEi92S/Zi9Md/AK17KSqR8MgyRJ6C1fhKHvbBCl8wboyKAFXStkYw==} - engines: {node: '>= 12.13'} + /@swc/cli@0.3.9(@swc/core@1.3.82): + resolution: {integrity: sha512-e5grxGEyNT0fYZEFmhSrRYL1kFAZAXlv+WjfQ35J6J9Hl0EtrMVymAEbGabetg2Q/2FX6HiRcjgc9LrdUCBk4A==} + engines: {node: '>= 16.14.0'} hasBin: true peerDependencies: '@swc/core': ^1.2.66 @@ -7026,8 +7026,11 @@ packages: dependencies: '@mole-inc/bin-wrapper': 8.0.1 '@swc/core': 1.3.82 + '@swc/counter': 0.1.3 commander: 7.2.0 fast-glob: 3.3.1 + minimatch: 9.0.3 + piscina: 4.3.1 semver: 7.5.4 slash: 3.0.0 source-map: 0.7.3 @@ -7147,6 +7150,10 @@ packages: '@swc/core-win32-x64-msvc': 1.3.82 dev: true + /@swc/counter@0.1.3: + resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==} + dev: true + /@swc/jest@0.2.29(@swc/core@1.3.82): resolution: {integrity: sha512-8reh5RvHBsSikDC3WGCd5ZTd2BXKkyOdK7QwynrCH58jk2cQFhhHhFBg/jvnWZehUQe/EoOImLENc9/DwbBFow==} engines: {npm: '>= 7.0.0'} @@ -11911,8 +11918,8 @@ packages: natural-compare: 1.4.0 dev: true - /eslint-plugin-playwright@0.21.0(eslint-plugin-jest@27.2.3)(eslint@8.48.0): - resolution: {integrity: sha512-Y6qwguE9L6LB1JCsnPKaHbo+Z4X8/MngD82N0NkwiZ0ch0UVc4Oc2ZqmxanFxftIddnvwtNNlzUezglLlzUzKA==} + /eslint-plugin-playwright@0.22.2(eslint-plugin-jest@27.2.3)(eslint@8.48.0): + resolution: {integrity: sha512-LtOB9myIX1O7HHqg9vtvBLjvXq1MXKuXIcD1nS+qZiMUJV6s9HBdilURAr9pIFc9kEelbVF54hOJ8pMxHvJP7g==} peerDependencies: eslint: '>=7' eslint-plugin-jest: '>=25' @@ -16195,6 +16202,16 @@ packages: resolution: {integrity: sha512-AO81vsIO1k1sM4Zrd6Hu7regmJN1NSiAja10gc4bX3F0wd+9rQmcuHQaHVQCYIEC8iFXnE+mavh23GOt7wBgug==} dev: true + /nice-napi@1.0.2: + resolution: {integrity: sha512-px/KnJAJZf5RuBGcfD+Sp2pAKq0ytz8j+1NehvgIGFkvtvFrDM3T8E4x/JJODXK9WZow8RRGrbA9QQ3hs+pDhA==} + os: ['!win32'] + requiresBuild: true + dependencies: + node-addon-api: 3.2.1 + node-gyp-build: 4.8.0 + dev: true + optional: true + /nice-try@1.0.5: resolution: {integrity: sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==} dev: true @@ -16215,6 +16232,12 @@ packages: resolution: {integrity: sha512-ibPK3iA+vaY1eEjESkQkM0BbCqFOaZMiXRTtdB0u7b4djtY6JnsjvPdUHVMg6xQt3B8fpTTWHI9A+ADjM9frzg==} dev: true + /node-addon-api@3.2.1: + resolution: {integrity: sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==} + requiresBuild: true + dev: true + optional: true + /node-cache@4.2.1: resolution: {integrity: sha512-BOb67bWg2dTyax5kdef5WfU3X8xu4wPg+zHzkvls0Q/QpYycIFRLEEIdAx9Wma43DxG6Qzn4illdZoYseKWa4A==} engines: {node: '>= 0.4.6'} @@ -16245,6 +16268,13 @@ packages: dependencies: whatwg-url: 5.0.0 + /node-gyp-build@4.8.0: + resolution: {integrity: sha512-u6fs2AEUljNho3EYTJNBfImO5QTo/J/1Etd+NVdCj7qWKUSN/bSLkZwhDv7I+w/MSC6qJ4cknepkAYykDdK8og==} + hasBin: true + requiresBuild: true + dev: true + optional: true + /node-html-parser@5.3.3: resolution: {integrity: sha512-ncg1033CaX9UexbyA7e1N0aAoAYRDiV8jkTvzEnfd1GDvzFdrsXLzR4p4ik8mwLgnaKP/jyUFWDy9q3jvRT2Jw==} dependencies: @@ -17107,6 +17137,12 @@ packages: resolution: {integrity: sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==} engines: {node: '>= 6'} + /piscina@4.3.1: + resolution: {integrity: sha512-MBj0QYm3hJQ/C/wIXTN1OCYC8uQ4BBJ4LVele2P4ZwVQAH04vkk8E1SpDbuemLAL1dZorbuOob9rYqJeWCcCRg==} + optionalDependencies: + nice-napi: 1.0.2 + dev: true + /pkg-dir@3.0.0: resolution: {integrity: sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==} engines: {node: '>=6'} @@ -22176,7 +22212,7 @@ packages: dependencies: imurmurhash: 0.1.4 is-typedarray: 1.0.0 - signal-exit: 3.0.6 + signal-exit: 3.0.7 typedarray-to-buffer: 3.1.5 dev: true