prettier/src
Ika c4e5463514 refactor(cli): separate files and make it pure as possible (#2730)
* refactor(bin): resolveConfig

* refactor(bin): getOptionsForFile

* refactor(bin): remove `mapSeries`

* refactor: move content from bin to src/cli

* refactor: wrap content with function

* refactor: move constants to another file

* refactor: move utils to another file

* refactor: move functions

* refactor: extract functions

* refactor: remove unnecessary variable

* refactor: move `src/cli` to `src` with prefix `cli`

* refactor: use template literal

* refactor: remove unnecessary variable

* refactor: extract `listDifferent`

* refactor: extract `format`

* refactor: change error message `Invalid configuration:`

* refactor: bind args with argv

* refactor: extract `getOptionsForFile`

* refactor: extract `formatStdin`

* refactor: extract `eachFilename`

* refactor: extract `formatFiles`

* refactor: remove unnecessary export

* refactor: use `globby.sync()`

* refactor: add `runPrettier.sync()` helper

* refactor: fix linting

* refactor: mock `process.argv`

* chore: use `--forceExit` to avoid process hanging

* refactor: mock `get-stream`

* refactor: remove unnecessary stuff

* refactor: fix linting

* refactor: wrap `run` with `try..catch.finally`

* refactor: restore `process.exitCode` after testing
2017-09-03 19:21:06 +10:00
..
clean-ast.js Normalize numbers in CSS like JS 2017-08-22 18:50:10 +02:00
cli-constant.js refactor(cli): separate files and make it pure as possible (#2730) 2017-09-03 19:21:06 +10:00
cli-util.js refactor(cli): separate files and make it pure as possible (#2730) 2017-09-03 19:21:06 +10:00
cli.js refactor(cli): separate files and make it pure as possible (#2730) 2017-09-03 19:21:06 +10:00
comments.js Fix interleaved comments in class decorators (#2661) 2017-08-24 16:04:02 -07:00
deprecated.js Run prettier on 0.13.0 (#497) 2017-01-28 07:50:22 -08:00
doc-builders.js Add some standardjs-esque eslint rules (#2401) 2017-07-05 16:54:46 -04:00
doc-debug.js Format prettier with newer prettier (#2431) 2017-07-08 14:07:39 +02:00
doc-printer.js Remove unnecessary 'else' after 'return' (#1987) 2017-06-05 15:12:59 -07:00
doc-utils.js Fix up empty JSX element detection (#2220) 2017-06-21 13:48:02 -07:00
fast-path.js Ensure parens around LogicalExpression inside ExperimentalSpreadProperty (#2710) 2017-08-30 08:10:36 -07:00
multiparser.js Support styled.div.attr({})`...` (#2619) 2017-08-13 13:52:24 +10:00
options.js Add `.gql` file extension to be parsed as GraphQL (#2357) 2017-06-29 13:50:54 -07:00
parser-babylon.js Implement proposal-optional-chaining (#2572) 2017-08-03 17:38:02 +10:00
parser-create-error.js Upgrade babel code frame (#1902) 2017-06-02 14:11:05 -07:00
parser-flow.js Use babylon.parseExpression for JSON (#2476) 2017-07-24 11:43:49 +10:00
parser-graphql.js Use babylon.parseExpression for JSON (#2476) 2017-07-24 11:43:49 +10:00
parser-include-shebang.js Add shebang comment nodes to Flow/TypeScript ASTs (#1905) 2017-06-02 13:38:15 -07:00
parser-parse5.js Use babylon.parseExpression for JSON (#2476) 2017-07-24 11:43:49 +10:00
parser-postcss.js Work around issue #2584 (#2652) 2017-08-22 09:44:25 -07:00
parser-typescript.js Use babylon.parseExpression for JSON (#2476) 2017-07-24 11:43:49 +10:00
parser.js Use babylon.parseExpression for JSON (#2476) 2017-07-24 11:43:49 +10:00
printer-graphql.js GraphQL: Print directives for field declarations (#2317) 2017-06-27 20:22:03 -07:00
printer-htmlparser2.js Vue: pretty-print binding syntax (#2108) 2017-06-14 22:33:15 +10:00
printer-postcss.js Normalize numbers in CSS like JS 2017-08-22 18:50:10 +02:00
printer.js Fix printing declare modifier for TS enum (#2711) 2017-08-30 08:14:26 -07:00
resolve-config.js feat(resolve-config): add `.sync()` method (#2722) 2017-09-01 20:17:07 +10:00
util.js Handle +/- before numbers in CSS (#2713) 2017-08-30 20:26:11 +02:00