* feat: support YAML * fix: do not indent sequence in mappingValue * docs: add yaml to index.md * fix: reduce `SyntaxError: Node#parse consumed no characters` * chore: remove old-build and new-worker.js * refactor * refactor * refactor * refactor * refactor * refactor * refactor * refactor * refactor * refactor * refactor * refactor * fix: no space after `<<` * fix: add yaml to standalone test * test: add tests * fix: next empty line in flow collection * fix: tabs are not allowed http://yaml.org/spec/1.2/spec.html#space/indentation/ * fix: update parser * feat: rewrite the mappingItem logic * feat: indent sequence in mapping * feat(doc): add ifBreak#groupId and group#id * chore: fix node 4 * chore: add tools_yaml.svg * chore: remove resolved TODO * refactor: remove unnecessary workaround * chore(worker): importScriptOnce * chore(build): rename with babelPlugins * make it rollup compatible * feat: support singleQuote * refactor
13 lines
961 B
Markdown
13 lines
961 B
Markdown
---
|
|
id: language-support
|
|
title: Language Support
|
|
---
|
|
|
|
Prettier attempts to support all JavaScript language features, including non-standardized ones. By default it uses the [Babylon](https://github.com/babel/babylon) parser with all language features enabled, but you can also use the [Flow](https://github.com/facebook/flow) parser with the `parser` API or `--parser` CLI [option](options.md).
|
|
|
|
All of JSX and Flow syntax is supported. In fact, the test suite in `tests/flow` _is_ the entire Flow test suite and they all pass.
|
|
|
|
Prettier also supports [TypeScript](https://www.typescriptlang.org/), CSS, [Less](http://lesscss.org/), [SCSS](http://sass-lang.com), [Vue](https://vuejs.org/), [JSON](http://json.org/), [GraphQL](http://graphql.org/), [Markdown](http://commonmark.org), and [YAML](http://yaml.org/).
|
|
|
|
The minimum version of TypeScript supported is 2.1.3 as it introduces the ability to have leading `|` for type definitions which prettier outputs.
|