Lucas Azzola
84adbff232
Upgrade docusaurus to beta.10 ( #3166 )
...
* Upgrade docusaurus to beta.10
* Fixes for highlightjs
* Load github buttons script
2017-11-07 20:47:21 +11:00
Lucas Azzola
b4e7942bc0
Add markdown parser to playground ( #3165 )
2017-11-07 17:11:31 +11:00
Lucas Azzola
3f13ab08ab
Update getSupportInfo snapshot for 1.8.0 ( #3164 )
2017-11-07 15:28:23 +11:00
Lucas Azzola
d5666f2b92
1.8.0
2017-11-07 14:58:44 +11:00
Lucas Azzola
71a5533c4e
Move all docs to website ( #3139 )
...
* Sync README -> docs/options.md
* Sync README -> docs/*.md
* Misc fixups
* Remove markdown-toc
* Remove insert-pragma from ToC
* Never again!
* Move all docs to ./docs
* Remove yarn toc
* Fix inter-doc links
* Fix links in footer
* Clean up README.md
* Add basic description to README.md
* Use flat badges
* Move editor guides to website
* Improve prettier-ignore docs
* Fixup bad find/replace
* Add JSON to README
* Fix custom parser API link
* Fixup GitHub centering, add downloads badge
* Add 1.8 docs
* docs(website): mention markdown on homepage (#1 )
* Add intro
* Add watching-files.md
* Fix markdown syntax highlighting
* Switch back to .md links
2017-11-07 14:39:07 +11:00
Lucas Azzola
e436adae04
Implement getSupportInfo() and use it for inference ( #3033 )
...
* Implement getSupportInfo() and use it for inference
* Add comment with source of languages.yml
* Fix build, pin semver
* Simplify test snapshots
* Remove stray 'type' property
* Fix parser being overwritten
* Don't infer unreleased parser from extension
* Add CLI and docs for support info
2017-11-03 18:06:25 +11:00
Lucas Azzola
1d3c86be4d
Fix util.getStringWidth for falsy input ( #3092 )
2017-10-24 15:19:27 +11:00
Lucas Azzola
c0aaa0fa52
Don't print JSX bracket on same line when it has trailing comments ( #3088 )
2017-10-23 17:13:12 +11:00
Lucas Azzola
4043ea655e
Add prettier-tslint and stylelint-config-prettier to related projects ( #3078 )
2017-10-21 17:50:18 +11:00
Lucas Azzola
d5de6ac84f
Delete $schema from resolved config
2017-10-18 23:54:55 +11:00
Lucas Azzola
7162e1ecc8
Keep parens around TSAsExpression in ConditionalExpression ( #3053 )
2017-10-18 20:03:58 +11:00
Lucas Azzola
624d89e7a5
Print pipeline and nullish-coalescing operators ( #3036 )
2017-10-16 09:13:25 +11:00
Lucas Azzola
21d7561ecd
Resolve file paths relative to config file ( #3037 )
...
* Add currently passing test case for #3005
* Fix test to fail without code change
2017-10-15 18:32:16 +11:00
Lucas Azzola
23f7e92162
Handle comments between function name and open paren ( #2979 )
2017-10-06 20:07:58 +11:00
Lucas Azzola
482ec01c8e
Fix build ( #2981 )
2017-10-06 14:12:32 +11:00
Lucas Azzola
212e5f4a20
Fix website getStream regression ( #2967 )
2017-10-04 00:03:52 +11:00
Lucas Azzola
2e655a3755
1.7.4
2017-10-03 19:46:42 +10:00
Lucas Azzola
33a1f59e01
Ensure package is published from dist/ with correct version number ( #2963 )
2017-10-03 19:34:08 +11:00
Lucas Azzola
64ec692b92
Mention labels docs in CONTRIBUTING.md ( #2950 )
...
Also remove `--` that was required in `yarn` v0.
2017-10-02 07:44:45 +02:00
Lucas Azzola
a6096ee799
Respect --stdin-filepath, regardless of config source ( #2948 )
...
* Respect --stdin-filepath, regardless of config source
Fixes #2946
* Remove obsolete snapshot
2017-10-01 15:55:35 +11:00
Lucas Azzola
3329ee022f
Upgrade prettier to 1.7.3 ( #2940 )
2017-09-30 14:28:53 +02:00
Lucas Azzola
099cf760d0
Update ISSUE_TEMPLATE to 1.7.3
2017-09-30 20:57:49 +10:00
Lucas Azzola
ecf0281b31
1.7.3
2017-09-30 20:48:10 +10:00
Lucas Azzola
3c91c2ab42
Fix unit tests on Windows ( #2922 )
2017-09-28 19:30:51 +10:00
Lucas Azzola
264ec70999
Don't use parens with optional chaining meber expressions ( #2921 )
2017-09-28 17:46:47 +10:00
Lucas Azzola
ae21d60386
Recommend pinning prettier version ( #2920 )
...
* Recommend pinning prettier version
* Change from -E to --exact/--save-exact
2017-09-28 14:34:32 +10:00
Lucas Azzola
11a7b8d308
Fix printing of comments between decorators and method names ( #2906 )
2017-09-28 00:03:11 +10:00
Lucas Azzola
f77e471b0c
Upgrade to ts2.5.3-insiders ( #2842 )
2017-09-27 15:43:17 +10:00
Lucas Azzola
daef144102
Support fit(), xit(), it.only(), etc ( #2900 )
2017-09-26 23:12:38 +10:00
Lucas Azzola
48899289da
Upgrade cosmiconfig to v3, remove hardcoded combinatoric problem ( #2843 )
...
* Upgrade cosmiconfig to v3, remove hardcoded combinatoric problem
* Fix indendation change from 1.7
* Ensure default value for useCache is true
* Pin mem version
2017-09-16 20:24:08 +10:00
Lucas Azzola
3f74c45b91
Support graphql(schema, query) ( #2781 )
2017-09-11 20:18:11 +02:00
Lucas Azzola
87503e5ef7
Refactor error handling ( #2750 )
2017-09-06 09:52:59 +10:00
Lucas Azzola
2686b15b91
Update URL to prettier-vscode
2017-08-30 22:53:53 +10:00
Lucas Azzola
db4d7ac1db
Un-comment config file documentation ( #2669 )
2017-08-28 18:27:04 +02:00
Lucas Azzola
2e828de76f
Print 3 or more chained calls on multiple lines ( #2673 )
2017-08-27 09:44:44 -07:00
Lucas Azzola
1e2da6c727
Support TypeScript 2.5 RC ( #2672 )
2017-08-26 05:36:50 -07:00
Lucas Azzola
dd84559991
Merge computed MemberExpression in member chain ( #2670 )
2017-08-26 05:35:05 -07:00
Lucas Azzola
8a45377760
Load babylon parser for json formatting ( #2620 )
2017-08-15 21:54:10 +10:00
Lucas Azzola
0b9fbf940f
Support styled.div.attr({})... ( #2619 )
2017-08-13 13:52:24 +10:00
Lucas Azzola
ec85cf0f0a
Do not accept declare on previous line ( #2618 )
2017-08-13 13:47:48 +10:00
Lucas Azzola
e378f5e9ba
Implement proposal-optional-chaining ( #2572 )
...
* Implement proposal-optional-chaining
Closes #2568
* Refactor optional token printing
2017-08-03 17:38:02 +10:00
Lucas Azzola
8159666cad
Clarify that tests/flow is the flow test suite
2017-08-02 09:41:42 +10:00
Lucas Azzola
8ede13267e
Remove .npmignore and update .ignore ( #2560 )
2017-07-31 08:47:00 +10:00
Lucas Azzola
58edd0d3f3
Keep parens around FunctionTypeAnnotation inside ArrayTypeAnnotation ( #2561 )
...
Without this, this:
const actionArray: (() => void)[] = [];
is formatted as:
const actionArray: () => void[] = [];
Fixes #2559
2017-07-30 00:50:38 +10:00
Lucas Azzola
af6b020f7e
Support styled-components with existing component ( #2552 )
...
Supports the syntax:
```js
styled(ExistingComponent)`
css: property;
`;
```
Fixes #2545
2017-07-28 19:04:17 +10:00
Lucas Azzola
3eed1933e1
Don't pass config path through to cosmiconfig ( #2547 )
2017-07-27 21:59:57 +10:00
Lucas Azzola
675688c814
Set travis dist to "precise"
2017-07-26 19:41:07 +10:00
Lucas Azzola
143480be30
Remove "install" from yarn
2017-07-26 19:27:21 +10:00
Lucas Azzola
a666a29aa3
Print semi after DeclareFunction, fixes #2534 ( #2536 )
2017-07-24 21:55:16 +10:00
Lucas Azzola
4a0e9475df
Print parens around type assertion as LHS in assignment, fixes #2521 ( #2525 )
2017-07-20 23:16:15 +10:00
Lucas Azzola
ffbdff4bc2
prettier
2017-07-20 14:26:55 +10:00
Lucas Azzola
8d9022db54
Fix /users/ link
2017-07-20 13:26:54 +10:00
Lucas Azzola
e8425a4899
Comment out configuration file docs
2017-07-19 08:53:44 +10:00
Lucas Azzola
02639da9a9
Improve coverage and remove some dead code ( #2504 )
...
* Improve test coverage
* Clean up some un-used code
* Lower patch requirements on codecov
2017-07-17 23:31:42 +10:00
Lucas Azzola
d62d1c5c56
Preserve parens with keyof, enforce parens with arrows with type params ( #2503 )
...
* Force parens around argument of simple arrow function if type annotation is present
* Preserve parens inside keyof operator
2017-07-17 13:32:33 +02:00
Lucas Azzola
b3a4785cec
Add Codecov badge to README
2017-07-17 00:03:51 +10:00
Lucas Azzola
71b2004391
Cleanup unused nodes, and turn on importMeta babylon plugin ( #2498 )
...
* Cleanup unused AST nodes
* Add tests for JSXNamespacedName
* Turn on importMeta babylon plugin
* Add tests for DeclareTypeAlias
* Add back TS*Keyword nodes, fix TS optional destructuring
2017-07-16 23:59:49 +10:00
Lucas Azzola
b7fa01af17
Enable code coverage in CI ( #2497 )
...
* Enable code coverage in CI
* Disable codecov comment
* Ignore some statements from coverage reports
2017-07-16 21:49:37 +10:00
Lucas Azzola
188c466cd5
Don't call shouldHugType for function arguments, fixes #2458 ( #2496 )
2017-07-16 11:53:01 +02:00
Lucas Azzola
028d9e0ea7
Improve bind expression formatting ( #2493 )
...
* Improve bind expression formatting, fixes #1400
* Fix parenthesis with bind expressions, fixes #1446
2017-07-16 11:47:06 +02:00
Lucas Azzola
00d9aa208e
Trim trailing whitespace from comments, closes #2422 ( #2494 )
2017-07-16 17:45:27 +10:00
Lucas Azzola
123d350524
Don't mask TypeScript errors without position information, #2361 ( #2495 )
2017-07-16 16:38:13 +10:00
Lucas Azzola
bac9658687
Flatten x & y & z, and x ^ y ^ z, fixes #2445 ( #2490 )
2017-07-15 12:54:33 +02:00
Lucas Azzola
b9b3da6ee9
Implement prettier-ignore inside JSX ( #2487 )
...
* Implement prettier-ignore inside JSX, closes #2467
* Re-enable babylon and typescript verification
2017-07-15 20:21:43 +10:00
Lucas Azzola
acab856b96
Integrate 1.5.3 hotfix ( #2489 )
2017-07-15 20:16:41 +10:00
Lucas Azzola
41318937d2
Add link to JSON schema in README
2017-07-12 21:29:57 +10:00
Lucas Azzola
1c806f81b2
Rename --resolve-config to --find-config-path ( #2453 )
2017-07-11 23:57:26 +10:00
Lucas Azzola
34b0709bf0
Add documentation for configuration ( #2452 )
...
* Add documentation for configuration files
* Add CLI docs for configuration
* Support --no-config
2017-07-11 14:21:29 +02:00
Lucas Azzola
3136907a15
Expose clearCache function ( #2451 )
2017-07-11 20:40:51 +10:00
Lucas Azzola
25a5e3ffe3
Fix ignore unknown --no-semi, fixes #2448 ( #2450 )
2017-07-11 19:52:47 +10:00
Lucas Azzola
b25935d7a3
TypeScript: allow type assertions to hug ( #2439 )
...
* TypeScript: allow type assertions to hug, fixes #2437
* Update snapshots
2017-07-10 22:37:43 +10:00
Lucas Azzola
dcccfed366
Implement cosmiconfig for workspace configuration ( #2434 )
...
* Implement cosmiconfig
* Add resolveOptions API and extname support
* Add --resolve-config and --config, rename resolveOptions to resolveConfig
* Move color to top-level CLI options
* Fix unknown param warning
* Change from {} to null when no config is found
* Change override API to emulate eslint
* Add test for eslint-style overrides
* Delete overrides from resolveConfig
2017-07-10 22:26:36 +10:00
Lucas Azzola
073a02bf1f
Add missing $ in bash script
2017-07-08 17:48:21 +10:00
Lucas Azzola
324fc86618
Sync usage.md from main README
2017-07-08 17:45:52 +10:00
Lucas Azzola
4a320a9332
Add supervisory parens for bitwise operations ( #2429 )
...
* Add supervisory parens for bitwise operations, fixes #2424
* Flatten x | y | z
2017-07-08 17:31:28 +10:00
Lucas Azzola
7e96e01fba
Add more supervisory parens, closes #187 ( #2423 )
2017-07-07 15:57:17 +02:00
Lucas Azzola
8bbbc3a6f3
Remove parens for type assertions in binary expressions, fixes #2416 ( #2419 )
2017-07-07 13:02:43 +02:00
Lucas Azzola
82b80b3c79
Trim whitespace in descendant combinator, fixes #2410 ( #2411 )
...
* Trim whitespace in descendant combinator, fixes #2410
* Permit whitespace changes in clean-ast.js
2017-07-06 13:55:34 +02:00
Lucas Azzola
067b49fbd7
Re-enable automatic deployment
2017-07-04 09:22:42 +10:00
Lucas Azzola
bf2bcbcb1a
Create CNAME
2017-07-04 09:19:39 +10:00
Lucas Azzola
461fb30181
Fix formatted with Marked
2017-07-03 22:13:09 +10:00
Lucas Azzola
65bbbaec58
Add content to website ( #2377 )
...
* Add content to website
* Fix linting error
* Cleanup, extract content to JSON files
2017-07-03 12:48:05 +02:00
Lucas Azzola
c3346b0363
Disable automatic website deployment [ci skip]
2017-07-02 11:13:58 +10:00
Lucas Azzola
770ea21c29
Only deploy from node stable
2017-07-02 10:56:34 +10:00
Lucas Azzola
ed4943dbec
Set CI_PULL_REQUEST
2017-07-02 10:45:57 +10:00
Lucas Azzola
d741a47e8f
Set env variables to mock CircleCI [skip ci] ( #2376 )
2017-07-02 10:42:25 +10:00
Lucas Azzola
6f32a40edd
Fix multiparser in website, fixes #2328 ( #2374 )
2017-07-01 18:14:21 +02:00
Lucas Azzola
6f9824778d
Strip BOM before parsing, fixes #2362 ( #2373 )
2017-07-01 18:11:13 +02:00
Lucas Azzola
968cc3cb2b
Delete fuzzer2.js
2017-06-29 08:52:14 +10:00
Lucas Azzola
678964b8de
fix(typescript): don't add namespace keyword to global declaration, fixes #2327 ( #2329 )
2017-06-28 07:53:10 -07:00
Lucas Azzola
5e51caca1b
Add GraphQL to README ( #2265 )
...
* Add GraphQL to README
* Add JSON to main list of languages
2017-06-27 10:18:22 -07:00
Lucas Azzola
b8af5e5241
Update URL in atom.md
2017-06-25 14:24:05 +10:00
Lucas Azzola
caa77fbfe8
Join range start and range end documentation
2017-06-25 12:44:18 +10:00
Lucas Azzola
438f5887e2
Add links to prettier's parsers
...
Since the parser API exposes the AST, it makes sense to point people towards the parsers we use so they can hack on them.
2017-06-25 12:27:49 +10:00
Lucas Azzola
b93191d4de
Explode the options table ( #2244 )
...
* Explode the options table
The options table in README was getting a bit unwieldy. This commit moves the options to a top-level section, and makes each setting hyperlink-able.
The `cursorOffset` setting has been moved from the list to the documentation for `formatWithCursor`.
* Fix typos/punctuation
* Fix --trailing-comma formatting
2017-06-24 07:52:34 -07:00
Lucas Azzola
d8be8be57a
Clean up API documentation
2017-06-24 18:13:02 +10:00
Lucas Azzola
3474056b36
fix(typescript): handle ObjectPattern instead of ObjectExpression inside BinaryExpression, fixes #2237 ( #2238 )
2017-06-23 07:53:42 -07:00
Lucas Azzola
b2d5366897
Remove apostrophe from JetBrains
2017-06-23 23:01:12 +10:00
Lucas Azzola
e78e07e2ad
refactor(multiparser): move css expression doc printing to transformCssDoc ( #2214 )
2017-06-21 13:41:24 -07:00
Lucas Azzola
43521565e7
CSS: lowercase hex colors, closes #2139 ( #2203 )
2017-06-20 23:07:31 +10:00