Lucas Azzola
7b2349dcd2
Set os.EOL in worker.js ( #3935 )
2018-02-09 21:31:48 +11:00
Lucas Azzola
047363a1f4
Revamp landing page ( #3718 )
...
* Begin landing page revamp
* Break the editor integrations onto their own lines
* Add template string
* Add editor line breaks
* Make logo clickable
* Add more docs links
* Don’t split the editor list items into paragraphs
* Break plugin onto its own line
* Move the “Why” button to the bottom of the block
* Use suggested font
* Change font
* Change footer color
* Add assets from @orta
* Fix fonts
* Use new editor assets
* Add npm/yarn button
* Switch to npx
* Minor mobile tweaks
* Add dependants
* Lots of zeros are cooler to look at than a “k”
* Improve button sizes, respect prefers-reduced-motion
* Fixup media breakpoints for Get Started section
* Increase padding of editors
* CSS fixes from code review
* Prevent repeatedly clicking on the logo from selecting nearby text
* dependant -> dependent
* Various CSS tightening
* Set flex-basis on editors
* Add new languages panel
* Improve layout of languages
* Cleanup grouping code
* Fix users layout
* Fix language image widths
* space-evenly -> space-between
* Fix typo
* Remove unused var
* Various CSS fixes
* Set overflow-x: auto on code
* Improve languages layout
* Add silly cursor
* Make logo 'draggable'
* [Site] Margins and paddings (#2 )
* [Site] Margins and paddings
* [Site] Bring back the link to why, that's a good guide worth linking to
* Improve logo mobile usage
* Improve responsive layout of editors
* Use static SVG for the moment (#3 )
* Use the static logo for the moment
* Fix the broken JS, from going static, and make overscroll the right color
* Fix padding
2018-02-06 20:52:39 +11:00
Lucas Azzola
dd78f31aaf
Run production tests on npm package ( #3730 )
...
* Run production tests on npm package
* Put back fast finish
2018-01-13 03:19:20 +11:00
Lucas Azzola
bef646d4a4
Add pretty-quick to related projects ( #3708 )
2018-01-11 15:46:56 +08:00
Lucas Azzola
a10418ee80
Bump Prettier to 1.10.1 ( #3699 )
...
* Bump Prettier to 1.10.1
* Fix relative paths
2018-01-11 01:13:09 +11:00
Lucas Azzola
cf511ec2e9
1.10.1
2018-01-10 23:39:06 +11:00
Lucas Azzola
bae21cb166
1.10.0
2018-01-10 23:08:15 +11:00
Lucas Azzola
b1a7787e87
Fix vue self-closing tags ( #3693 )
2018-01-10 18:44:18 +11:00
Lucas Azzola
eb1096d4af
Add pretty-quick pre-commit docs ( #3675 )
2018-01-09 02:19:53 +11:00
Lucas Azzola
b65e679e70
Update plugins docs ( #3653 )
2018-01-05 10:48:47 -05:00
Lucas Azzola
e5d6a4704f
Automatically load plugins from package.json ( #3624 )
...
* Automatically load plugins from package.json
* Fix build by adding json extension
* Fixup misuse of options argument
* Rewire graceful-fs to fs
* Document graceful-fs issue
* Alias graceful-fs to fs in Rollup
2018-01-05 21:09:51 +11:00
Lucas Azzola
c00c1cb6e0
Change quoted date back to 2017
2018-01-01 12:40:10 +11:00
Lucas Azzola
800a1cf9d4
Add Blog, Populate with Release Notes ( #3604 )
...
* Add blog
* Rename files, add extra #
* Improve formatting
* Convert pull-request links
* Fix typo
* Update links in CHANGELOG.md, lint docs
* Add missing parens
* Remove banner images
* Add 1.0 release blog post
* Fix encoding bug
* Add truncate to 1.0 blog post
* TS syntax highlighting looks better than JS highlighting on Flow
* Add introductory sentences to older posts
* More highlighting fixes
* Fix mistake
* Fix more highlighting errors
* More highlighting fixes
* Add CSS fix
* fix truncate on 1.9.0 post
* fix truncate on 1.0.0 post
* Fix additional # and my name in 1.0.0
* Restore js -> ts on codeblocks
2017-12-31 15:23:17 +11:00
Lucas Azzola
a041914551
Extract cleanAST to language-specific files ( #3610 )
...
* Extract cleanAST to language-specific files
* Fix lint
* Fix clean-ast for vue and glimmer
2017-12-30 21:30:09 +11:00
Lucas Azzola
bd78b3bfbe
Remove ALL_PARSERS, print ~ printWidth times ( #3596 )
2017-12-29 08:25:11 +11:00
Lucas Azzola
b0647cb2c9
Fix PR Preview Playground ( #3592 )
...
* Fix PR Preview Playground
* Use module.exports for Prettier export
* Keep index for backwards compatibility
2017-12-28 22:37:47 +11:00
Lucas Azzola
84dd11e875
Bump TypeScript to 2.7-insiders ( #3580 )
...
* Bump TypeScript to 2.7-insiders
* Update yarn.lock
2017-12-27 09:06:59 +11:00
Lucas Azzola
3a9b25b8bc
Add JSX to supported language list ( #3579 )
2017-12-27 00:20:10 +11:00
Lucas Azzola
ee148bfded
Split up comment printing ( #3575 )
...
* Split up comment printing
* Refactor plugin handling
* Allow multiparser to use options normalization
* Rename to canAttachComment
* Add inline comment
* Format code
* Use prettier.__debug to get AST
2017-12-27 00:04:09 +11:00
Lucas Azzola
4c9d4061da
Prettier Plugin API ( #3536 )
...
* Move files around in preparation for refactor
* Update paths in build script
* Extract generic printing logic from the JavaScript printer
* Conform printer API
* Fixup decorator handling
* Fix multiparser
* Create plugin entry for markdown
* Create plugin entry for javascript/typescript
* Create plugin entry for html
* Create plugin entry for graphql
* Create plugin entry for css/less/scss
* Move JSON to JS plugin entry
* Integrate plugins into getSupportInfo()
* Move astFormat to parser definition
* Move util to common
* Implement parser loading
* remark -> mdast
* Rename cli/cli -> cli/index
* Rename builder -> doc package, fix printer resolution
* Fix doc shape assumption in CSS-in-JS logic
* Fix third-party.js prod resolution
* Fixup build-docs script
* Distribute multiparser code
* Remove requirement to forward options
* Flatten closure
* Remove debug directory
* Expose doc
* Add external plugins
* Pass options to loadPlugins
* Export getParsers
* Pin resolve version
* Use getSupportInfo in Markdown embed
* Document plugin API
* Update build-docs
* Add CLI for plugins
* Lint docs
* Fixup build.js
* Add vue language
* Fixup multiparser for vue
* Upgrade rollup and rollup-plugin-commonjs
* Fixup third-party build
* Change AST format in docs
2017-12-26 12:23:50 +11:00
Lucas Azzola
9a1f3211c9
Add content{Start,End} to massageAST ( #3566 )
2017-12-25 20:39:34 +11:00
Lucas Azzola
ed80d6c5bd
Make all CLI logging go through a logger ( #3515 )
...
* Make all CLI logging go through a logger
* Add --loglevel docs
* Change default loglevel to log
* Update snapshots
* Switch to YAML eslint files
2017-12-18 23:22:07 +11:00
Lucas Azzola
d1c97b3622
Convert eslint config and users/languages/editors files to YAML ( #3516 )
...
* YAML all the things
* Cleanup website data files
* Update edit links
2017-12-18 21:55:10 +11:00
Lucas Azzola
5e81e75601
Add plugin:prettier/recommended ( #3508 )
...
* Add plugin:prettier/recommended
* Revert eslint-plugin-prettier docs changes
2017-12-18 08:39:31 +11:00
Lucas Azzola
8be1fbb58a
Switch to light logo in README ( #3507 )
2017-12-18 00:24:19 +11:00
Lucas Azzola
829616dd6c
Fix multiparser trailing comma regression ( #3405 )
...
* Fix multiparser trailing comma regression
* Refactor trailing comma application
2017-12-05 19:01:00 +01:00
Lucas Azzola
c7c1d2e7a4
Upgrade Prettier to Prettier 1.9 ( #3395 )
...
* Upgrade to prettier@1.9.0
* Run eslint --fix
* Run prettylint --fix
* Fix playground with editorconfig script
2017-12-05 08:14:03 -02:00
Lucas Azzola
35fc6a6671
1.9.0
2017-12-05 10:23:51 +11:00
Lucas Azzola
8524ed5b6f
Fix printing of comments around decorators and class properties ( #3382 )
2017-12-03 14:59:35 +11:00
Lucas Azzola
cd6749cbb9
Update contributing docs ( #3357 )
2017-11-30 10:32:08 -03:00
Lucas Azzola
e04f22975d
Change "preview" to "pr"
2017-11-29 17:45:53 +11:00
Lucas Azzola
2dd76c6a95
Print parens around type assertions for decorators ( #3329 )
2017-11-27 23:10:33 +11:00
Lucas Azzola
b941e30cad
Add mprettier to website editor integration list ( #3316 )
...
* Add mprettier
https://github.com/t9md/atom-mprettier
* Update editors.json
2017-11-25 13:55:39 +11:00
Lucas Azzola
fba2e6c92d
1.8.2
2017-11-09 21:28:38 +11:00
Lucas Azzola
d2241fc0d5
Revert "Respect EditorConfig settings" ( #3213 )
...
* Revert "Respect EditorConfig settings (#2760 )"
This reverts commit 8f58ca0f48 .
2017-11-09 11:38:58 +11:00
Lucas Azzola
98eb2c98b7
Add proseWrap docs ( #3201 )
2017-11-08 22:57:08 +11:00
Lucas Azzola
fdd0dbfdd2
1.8.1
2017-11-07 23:38:55 +11:00
Lucas Azzola
b099771e5f
Add IRESS to users ( #3185 )
2017-11-07 22:18:56 +11:00
Lucas Azzola
de0fec9344
Setup Algolia DocSearch ( #3184 )
2017-11-07 22:03:55 +11:00
Lucas Azzola
e733a7706d
Force JSON to no trailing comma in multiparser ( #3182 )
...
* Force JSON to no trailing comma in multiparser
* Switch to mutate next.options
2017-11-07 22:01:40 +11:00
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