fisker Cheung

Results 335 issues of fisker Cheung

Currently, when use ```vue import { defineComponent } from 'vue'; export default defineComponent({}); n-input(:ref="(el:any)=>pinRefs[index]=el", @change="(val:string)=>val") ``` the template will be formatted by [`@prettier/plugin-pug`](https://github.com/prettier/plugin-pug), but it don't have the information about...

lang:vue

**Prettier 3.5.3** [Playground link](https://prettier.io/playground/#N4Igxg9gdgLgprEAuEBDA7qgljABFgWwAcIAnGACgB0pdcB6e3SAghGGuqkAMwgm4AaAJQ0M2PIRLlqtBkxZtYnXNwB09PhDUArAM7QhuYOhwALJMZgBPInCTd9hkAF8XIkIJAQiMLND1kUFRSUgh0AAUQhECUVAAbTGtArwAjUlQwAGs4GABlVDYAGSwoOGQeBL04LwhUnTgwGAB1DKJkECJSOGrSADdytIzs3LyiTNKAc2QYUgBXGpBqgiwZ+cW4AA87UkJ2BIB5HdQYMgiIPRx-KA6EABNPEC2dvdgEgBU4UigQrB6KqqLS5QSbxOAARTmEHgAPi1S8+k2eSmYMh0PKSEqcMWAEcofAImEiLE0HoALRlOB3KmPWbYeJTADCEFYqA6CXij2BoLgAEEYLMsKk5gSviUyrD4SAzDACPFmmYcD1xmA4HkYlc+jhrB0wHoUiA+gsAJJQamwPJgXa+XlmvI2MGSxZdC5wVqodooLo9L4DR6lXowQmoSYENmYwFecakXodVKoVJwTlR3awZpYO4wMzIAAcAAYvN08VhusHQ+GsVKYAn05ns0gAExeObVd4J2KVjYERN3al3IqoEFzENwABiZDDAqm7JFEFcLiAA) ```sh --parser babel ``` **Input:** ```jsx await import( // comment "foo",) await import( // comment "./foo.json", {with: {type:"json"}},) ``` **Output:** ```jsx await import( // comment "foo"...

lang:javascript

In this file https://github.com/prettier/prettier/blob/6f4c89f8f93dbfd8650bcc26a2d81f3fdac21c23/src/config/prettier-config/load-external-config.js#L10-L34 As mentioned in the comment, when loading external config 1. It can be a package with the main entry points to a JSON file 1. It...

## Description Fixes #8303 ## Checklist - [ ] I’ve added tests to confirm my change works. - [ ] (If changing the API or CLI) I’ve documented the changes...

## Description In #17133, it took me a while to find out that `startIndex` should be smaller than `endIndex`, I don't think the order matters. ## Checklist - [ ]...

### Version 30.0.0 ### Steps to reproduce 1. Clone https://github.com/fisker/vitest-snapshot-test-bug-line-break-in-title 2. Run `yarn` 3. Run `yarn jest` 4. You should see ``` >yarn jest yarn run v1.22.19 $ node --experimental-vm-modules...

Needs Triage
Bug Report

## Summary I noticed logic for Prettier 2 and 3 are not living together and seems there are differences (not touched in this PR). ## Test plan

## Description ## Steps to reproduce 1. Add custom registry to `.npmrc` 2. Add `publishConfig` with NPM registry `https://registry.npmjs.org/` 3. Run `np` ``` You must be logged in. Use `npm...

## Description ## Steps to reproduce 1. Add custom registry to `.npmrc` 2. Add `publishConfig` with NPM registry `https://registry.npmjs.org/` 3. Run `np` ``` × Error: Command failed with exit code...

### 💻 - [ ] Would you like to work on this feature? ### What problem are you trying to solve? I think top level `using` in CommonJS module is...