diff --git a/bin/index.js b/bin/index.js index 89382f88f1..26c58dca15 100755 --- a/bin/index.js +++ b/bin/index.js @@ -1,3 +1,3 @@ #!/usr/bin/env node - +// eslint-disable-next-line antfu/no-import-dist import '../dist/cli.js' diff --git a/package.json b/package.json index 73b30e3d17..d5e3b794f4 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "@typescript-eslint/parser": "^6.15.0", "eslint-config-flat-gitignore": "^0.1.2", "eslint-merge-processors": "^0.1.0", - "eslint-plugin-antfu": "^2.0.0", + "eslint-plugin-antfu": "^2.1.0", "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-i": "^2.29.1", "eslint-plugin-jsdoc": "^46.9.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5e583ec6b6..900e86ee08 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -39,8 +39,8 @@ importers: specifier: ^0.1.0 version: 0.1.0(eslint-ts-patch@8.55.0-1) eslint-plugin-antfu: - specifier: ^2.0.0 - version: 2.0.0(eslint-ts-patch@8.55.0-1) + specifier: ^2.1.0 + version: 2.1.0(eslint-ts-patch@8.55.0-1) eslint-plugin-eslint-comments: specifier: ^3.2.0 version: 3.2.0(eslint-ts-patch@8.55.0-1) @@ -85,7 +85,7 @@ importers: version: 1.11.0(eslint-ts-patch@8.55.0-1) eslint-processor-vue-blocks: specifier: ^0.1.1 - version: 0.1.1(@vue/compiler-sfc@3.3.11)(eslint-ts-patch@8.55.0-1) + version: 0.1.1(@vue/compiler-sfc@3.3.13)(eslint-ts-patch@8.55.0-1) globals: specifier: ^13.24.0 version: 13.24.0 @@ -1344,15 +1344,6 @@ packages: loupe: 2.3.7 pretty-format: 29.7.0 - /@vue/compiler-core@3.3.11: - resolution: {integrity: sha512-h97/TGWBilnLuRaj58sxNrsUU66fwdRKLOLQ9N/5iNDfp+DZhYH9Obhe0bXxhedl8fjAgpRANpiZfbgWyruQ0w==} - dependencies: - '@babel/parser': 7.23.5 - '@vue/shared': 3.3.11 - estree-walker: 2.0.2 - source-map-js: 1.0.2 - dev: false - /@vue/compiler-core@3.3.13: resolution: {integrity: sha512-bwi9HShGu7uaZLOErZgsH2+ojsEdsjerbf2cMXPwmvcgZfVPZ2BVZzCVnwZBxTAYd6Mzbmf6izcUNDkWnBBQ6A==} dependencies: @@ -1360,36 +1351,12 @@ packages: '@vue/shared': 3.3.13 estree-walker: 2.0.2 source-map-js: 1.0.2 - dev: true - - /@vue/compiler-dom@3.3.11: - resolution: {integrity: sha512-zoAiUIqSKqAJ81WhfPXYmFGwDRuO+loqLxvXmfUdR5fOitPoUiIeFI9cTTyv9MU5O1+ZZglJVTusWzy+wfk5hw==} - dependencies: - '@vue/compiler-core': 3.3.11 - '@vue/shared': 3.3.11 - dev: false /@vue/compiler-dom@3.3.13: resolution: {integrity: sha512-EYRDpbLadGtNL0Gph+HoKiYqXLqZ0xSSpR5Dvnu/Ep7ggaCbjRDIus1MMxTS2Qm0koXED4xSlvTZaTnI8cYAsw==} dependencies: '@vue/compiler-core': 3.3.13 '@vue/shared': 3.3.13 - dev: true - - /@vue/compiler-sfc@3.3.11: - resolution: {integrity: sha512-U4iqPlHO0KQeK1mrsxCN0vZzw43/lL8POxgpzcJweopmqtoYy9nljJzWDIQS3EfjiYhfdtdk9Gtgz7MRXnz3GA==} - dependencies: - '@babel/parser': 7.23.5 - '@vue/compiler-core': 3.3.11 - '@vue/compiler-dom': 3.3.11 - '@vue/compiler-ssr': 3.3.11 - '@vue/reactivity-transform': 3.3.11 - '@vue/shared': 3.3.11 - estree-walker: 2.0.2 - magic-string: 0.30.5 - postcss: 8.4.32 - source-map-js: 1.0.2 - dev: false /@vue/compiler-sfc@3.3.13: resolution: {integrity: sha512-DQVmHEy/EKIgggvnGRLx21hSqnr1smUS9Aq8tfxiiot8UR0/pXKHN9k78/qQ7etyQTFj5em5nruODON7dBeumw==} @@ -1404,31 +1371,12 @@ packages: magic-string: 0.30.5 postcss: 8.4.32 source-map-js: 1.0.2 - dev: true - - /@vue/compiler-ssr@3.3.11: - resolution: {integrity: sha512-Zd66ZwMvndxRTgVPdo+muV4Rv9n9DwQ4SSgWWKWkPFebHQfVYRrVjeygmmDmPewsHyznCNvJ2P2d6iOOhdv8Qg==} - dependencies: - '@vue/compiler-dom': 3.3.11 - '@vue/shared': 3.3.11 - dev: false /@vue/compiler-ssr@3.3.13: resolution: {integrity: sha512-d/P3bCeUGmkJNS1QUZSAvoCIW4fkOKK3l2deE7zrp0ypJEy+En2AcypIkqvcFQOcw3F0zt2VfMvNsA9JmExTaw==} dependencies: '@vue/compiler-dom': 3.3.13 '@vue/shared': 3.3.13 - dev: true - - /@vue/reactivity-transform@3.3.11: - resolution: {integrity: sha512-fPGjH0wqJo68A0wQ1k158utDq/cRyZNlFoxGwNScE28aUFOKFEnCBsvyD8jHn+0kd0UKVpuGuaZEQ6r9FJRqCg==} - dependencies: - '@babel/parser': 7.23.5 - '@vue/compiler-core': 3.3.11 - '@vue/shared': 3.3.11 - estree-walker: 2.0.2 - magic-string: 0.30.5 - dev: false /@vue/reactivity-transform@3.3.13: resolution: {integrity: sha512-oWnydGH0bBauhXvh5KXUy61xr9gKaMbtsMHk40IK9M4gMuKPJ342tKFarY0eQ6jef8906m35q37wwA8DMZOm5Q==} @@ -1438,7 +1386,6 @@ packages: '@vue/shared': 3.3.13 estree-walker: 2.0.2 magic-string: 0.30.5 - dev: true /@vue/reactivity@3.3.13: resolution: {integrity: sha512-fjzCxceMahHhi4AxUBzQqqVhuA21RJ0COaWTbIBl1PruGW1CeY97louZzLi4smpYx+CHfFPPU/CS8NybbGvPKQ==} @@ -1471,13 +1418,8 @@ packages: vue: 3.3.13(typescript@5.3.3) dev: true - /@vue/shared@3.3.11: - resolution: {integrity: sha512-u2G8ZQ9IhMWTMXaWqZycnK4UthG1fA238CD+DP4Dm4WJi5hdUKKLg0RMRaRpDPNMdkTwIDkp7WtD0Rd9BH9fLw==} - dev: false - /@vue/shared@3.3.13: resolution: {integrity: sha512-/zYUwiHD8j7gKx2argXEMCUXVST6q/21DFU0sTfNX0URJroCe3b1UF6vLJ3lQDfLNIiiRl2ONp7Nh5UVWS6QnA==} - dev: true /acorn-jsx@5.3.2(acorn@8.11.2): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} @@ -2354,8 +2296,8 @@ packages: resolution: {integrity: sha512-oOeA6FWU0UJT/Rxc3XF5Cq0nbIZbylm7j8+plqq0CZoE6m4u32OXJrR+9iy4srGMmF6v6pmgvP1zPxSRIGh3sg==} dev: true - /eslint-plugin-antfu@2.0.0(eslint-ts-patch@8.55.0-1): - resolution: {integrity: sha512-jbJqri3bDxZ3Eel//ncXI3NXRNYbY0ckckmaWxk4I+nxR5PorOVyLHu/QL69UaPI7qvqAlI0B9GmlAA3hypoHQ==} + /eslint-plugin-antfu@2.1.0(eslint-ts-patch@8.55.0-1): + resolution: {integrity: sha512-f9bKXsclnEHYA1GlJBESl9kzM4PFrKs05atq81fUKwpVfUDFa0Tp2Myx26Ik4v+U2vcq7vm/Z1Uke42iuYE62w==} peerDependencies: eslint: '*' dependencies: @@ -2705,13 +2647,13 @@ packages: - supports-color dev: false - /eslint-processor-vue-blocks@0.1.1(@vue/compiler-sfc@3.3.11)(eslint-ts-patch@8.55.0-1): + /eslint-processor-vue-blocks@0.1.1(@vue/compiler-sfc@3.3.13)(eslint-ts-patch@8.55.0-1): resolution: {integrity: sha512-9+dU5lU881log570oBwpelaJmOfOzSniben7IWEDRYQPPWwlvaV7NhOtsTuUWDqpYT+dtKKWPsgz4OkOi+aZnA==} peerDependencies: '@vue/compiler-sfc': ^3.3.0 eslint: ^8.50.0 dependencies: - '@vue/compiler-sfc': 3.3.11 + '@vue/compiler-sfc': 3.3.13 eslint: /eslint-ts-patch@8.55.0-1 dev: false diff --git a/src/configs/imports.ts b/src/configs/imports.ts index 80ffdaec64..2491b36cc0 100644 --- a/src/configs/imports.ts +++ b/src/configs/imports.ts @@ -15,6 +15,7 @@ export async function imports(options: OptionsStylistic = {}): Promise