fisker Cheung

Results 1279 comments of fisker Cheung

FYI: There is also an ESLint plugin can do this job, [eslint-plugin-prettier-doc](https://github.com/fisker/eslint-plugin-prettier-doc).

Consider use `HTMLImageElement.decode()`(https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/decode)?

after checking `lib/compile.js`, I might wrong about this, because we still need traverse AST

I don't really know what `vue-compile` does, I mean to use `lit-html` to get rid of `.vue` file, just `.js` no `compiler`. Not sure if we can do that Sorry,...

I need fix the test, and update how to get builtin parsers after we decide what the `.parsers` should look like.

> > They still importing UMD version > > Sorry, what do you mean? We can import esm version after we merge this ```diff -import("./parser-graphql.js") +import("./esm/parser-graphql.mjs") ```

I'm going to merge this, so I can continue work on migrate the bundle to ESM. @sosukesuzuki If you want add types for `createParsers`, you can send PR https://github.com/prettier/prettier/pull/13449#discussion_r971452653

Expected? **Prettier pr-13486** [Playground link](https://deploy-preview-13486--prettier.netlify.app/playground/#N4Igxg9gdgLgprEAuEBDABMAOld6BGS6AtGKgDZgAUATAJQDcOehJpF19TuBRx-ZSrUbNebAR2HcWfdIM4ierfnMldRylfKka+-YqqHqoAXxAAaEBAAOMAJbQAzslCoATm4gB3AAruEzigUXqgAns6W+G6oYADWcDAAyqgAtnAAMnZQcMgAZhSOcJHRcQmJ1jFZAObIMG4ArkUgcCn4cAAm7R3pqFBV9ahVcABiEG4pqDD2fcho9TAQFiAAFjAp5ADqy3bwjhVgcIkBO3YAbjuhs2COESBZhW4wPtFVE3kFTQBWjgAeidXkOAARXqEHg73IhUsFTcD1mjmut2sbiyMA2dnaMGWyAAHAAGaGeQobaLWWbIuAPU45SwAR1B8GeNkCaEcxGyHQ6SzccHpdh5z0GbyQ+UhTUKKTstQa4oBwIZORFH0sMFQ+HRmOxSBoKuidnI1QAwhAUsK0ORyEt6oUACpqwKiqEgU6NACSUC6sESYBRtgAgh7EjBQoCIYUTCYgA) ```sh --parser scss ``` **Input:** ```scss a { b: -calc(2); b: --calc(2); b: ---calc(2); b: ----calc(2); b: - calc(2); b: -- calc(2); b: --- calc(2);...

https://github.com/prettier/prettier/blob/cd3e530c2e51fb8296c0fb7738a9afdd3a3a4410/src/language-markdown/print-preprocess.js#L31-L39