Commit Graph

38 Commits (f059d7a31bf6db6f82877b00767e43667e195268)

Author SHA1 Message Date
Shinigami f059d7a31b JSDoc type added in `src/common/util.js` (#6788)
* JSDoc type added in `src/common/util.js`

* skip can return false

* Add TBD for false - 1 not allowed

* Define typedef SkipOptions

* Use method generic for node param

* Define node param for setLocStart and setLocEnd

* Copy idx param to local variable

* Add @returns false

* Update Utility functions docs

* hasNewline param index: allow only number

* Add condition

* Add function keyword to docs

* Add prettier-ignore

* Improve condition

* Remove TBD comment

* Use single quotes

* Add type to oldIndex

* Use singleline JSDocs
2019-11-05 13:28:44 +02:00
Georgii Dolzhykov f8a4a61a62 fix typos (#6642) 2019-10-13 21:51:58 +02:00
Andrew Powell 84e7866896 docs: add prettier-plugin-package to community plugins (#6463) 2019-09-28 15:22:18 +02:00
Shinigami 2f40dba317 Remove alpha from plugin pug (#6408) 2019-08-21 19:18:04 +02:00
Alexander Kachkaev 26b55a7e33 Add prettier-plugin-packagejson to docs (#6314) 2019-07-20 20:43:11 +02:00
Liam Stupid Name Humphreys 9c8d920c17 add Kotlin plugin to plugins doc (#6309)
* add kotlin-plugin to plugins doc

* maintain alphabetic order in plugins list

* maintain alphabetic order in plugins list
2019-07-18 10:54:39 -04:00
Shinigami 9721f88337 Update docs - Plugin pug official (#6267)
* Change link

* Add to website
2019-07-03 17:46:20 -04:00
Shinigami 5ceb4858ee Remove not publish from plugin pug (#6258) 2019-07-01 13:10:45 +02:00
Lipis d628d8cd79
Remove Python plugin (#6255) 2019-06-28 23:21:53 +02:00
Shinigami f9c4ca7b38 Add Pug plugin to the list of plugins (#6246)
ref #6245
2019-06-24 07:29:35 -04:00
Hugo Alliaume b38319740a feat: autoload plugins that are located in `@*/prettier-plugin-* (#5945)
* add tests

* implement the feature

* update docs

* update changelog

* typo
2019-03-10 20:34:04 +11:00
Alan Foster 723a047b91 Remove archived prettier for ruby (#5906)
https://github.com/iamsolankiamit/prettier-ruby has now been archived and deprecated in favour of https://github.com/prettier/plugin-ruby

Original PR: https://github.com/prettier/prettier/pull/5841

**[Try the playground for this PR](https://prettier.io/playground-redirect)**
2019-02-26 12:00:51 +01:00
Kevin Deisz d0dd0329f2 Add @prettier/plugin-ruby package to docs (#5841)
* Add prettier-ruby package

* Move into the prettier repo
2019-02-08 12:41:36 -05:00
Shahar Soel 038b0d8e85 Update plugins.md (#5829)
- Added link to toml prettier plugin (alpha version released).
- Changed link and owner of Java plugin as it was moved to the Jhipster org.
2019-02-06 12:07:17 +11:00
James Birtles ca43aad88a Add svelte plugin to plugins page (#5827) 2019-02-04 09:57:18 +08:00
Franco Victorio 1802ce1d9d Add tutorials section to plugins doc (#5805) 2019-01-30 14:11:03 +08:00
Jimmy Gaussen a8d423b18c docs: remove redundant "./" from relative links (#5741)
Fixes #5740

fixed with `sed -i "s#(\./#(#" docs/*.md website/versioned_docs/version-stable/*.md`
2019-01-10 12:06:41 -02:00
Franco Victorio 14730106db Add solidity plugin to list of plugins (#5726) 2019-01-07 07:57:09 +08:00
Nathan Totten cce4a2683a Added Apex plugin (#5318) 2018-10-31 17:08:56 +02:00
Evilebot Tnawi 023a8b78df feat: more shared utils for plugins (#5254) 2018-10-17 07:53:38 -07:00
Evilebot Tnawi 7fd346ffa1
feat: newline and space utils to shared (#5049) 2018-09-04 23:08:37 +03:00
Ika 50c9115632
feat: add printer.preprocess (#5041)
Sometimes we need to transform the ast to make it easier to print, but it's currently done in the parser (markdown and yaml), which leads the output ast harder to use for external users (custom parser), adding `printer.preprocess` can solve this issue.

And also this way we could move the trailing newline for json from `ast-to-doc.js` to `language-js`.
2018-09-03 23:27:50 +08:00
Warren Seine 6c482e2e6c Expose `isPreviousLineEmpty` to plugins (#4747). (#4748) 2018-06-25 23:20:00 -06:00
Lucas Duailibe 412b064df8 Format docs with Prettier 1.13 2018-05-27 15:38:31 -03:00
Alexander Kachkaev 7345a38e64 Fix plugin API in globally installed Prettier and introduce optional --plugin-search-dir (#4192)
* Fix plugin API in globally installed Prettier and introduce optional --plugin-search-dir

* Use find-parent-dir instead of find-up and test autoloading (with mocked fn)

* Add two test cases where --plugin-search-dir is not .

* Do not mutate pluginSearchDirs argument in load-plugins.js

* Do not test automatic plugin resolution as mocking of "find-parent-dir" does not work due to rollup

* Document --plugin-search-dir / pluginSearchDirs and improve spacing

* Address @ikatyang's review comments

* Fix require path for third-party

* Undo alphabetic sorting of third-party scripts
2018-05-09 19:17:12 +08:00
Ika 6b2be99b53
docs(plugins): add parser.preprocess (#4365)
* docs(plugins): add parser.preprocess

* docs: fix linting
2018-04-25 00:41:39 +08:00
Alexander Kachkaev 328d91f030 Add elm plugin (#4161)
* Add a link to prettier-plugin-elm

* Order community plugins alphabetically, thus making it easier to find a particular language
2018-03-16 11:27:47 -03:00
Lucas Duailibe 4c363a7a2f
Add docs on new pragma infrastructure (#4121) 2018-03-08 23:02:41 -03:00
Lipis 8e6b9dd5d9
New links for plugin URLs (#4099)
They were renamed
2018-03-05 01:57:59 +02:00
Warren Seine faee16a5b4 Fix typos in plugin documentation. (#4098) 2018-03-04 18:00:47 +02:00
Christian Zosel d05a29da05 Allow plugins to override default options (#3991)
* refactor(cli): defer default value applying

* Allow plugins to override default options

* Move "defaultOptions" to top level of plugin

* Simplify implementation

* Attach plugin name

* Add pluginOptions to cli help

* Update snapshots

* Code review (immutable style)

* Add test for help output

* Use snapshot test, fix Object.assign

* Refactor to immutable style

* Add test case for automatic plugin resolution

* Add tests for applying and overriding default opts

* Remove "since" option

* Only set defaults for CLI args when no pluginDefaults are present

* Revert workaround, rebase to #4045

* Add basic documentation for `options` and `defaultOptions`
2018-02-28 00:20:02 +11:00
Lucas Duailibe 2c36fb9109 Remove extraneous newline in docs/plugins.md 2018-02-21 13:34:24 -03:00
Lipis 927570e67a
Add Ruby to homepage and code (#4016) 2018-02-21 15:36:59 +02:00
Lipis c7c89b9edd Add more plugins to the plugins section (#3887)
* Add more plugins to the plugins section

* npm name

* Confused

* Community
2018-02-21 00:30:36 +11:00
Christian Zosel b449a526ce Document new plugin API features (#3938)
* Document new plugin API features

* locStart / locEnd functions
* util-shared

* Expose shared util
2018-02-10 13:01:19 +11:00
Jed Fox 9a1b57587d Add 1.10 blog post (#3659)
* Add 1.10 blog post

Copied from releases page

* Change a few things

* Add overview of changes

* Lint docs

* Scaffold out release notes

* Add prettier-ignores

* docs: add missing references

* docs: fix heading level

* docs: fix example

* Document plugin API

* Use shellsession

* docs: fix example

* docs: fix links

* Fix heading level

* change: ts upgrade -> numeric separator support

Instead of mentioning we updated the typescript version, we should emphasize on what value we added to users

* Fix repeated phrase

* add comment type annotation explanation

* Add note on no more wrapping () JSX elements

* Grammar

* Add more release notes

* Fill out remaining release notes

* Fix lint

* Add verb

* Fix heading level

* Update 2018-01-10-1.10.0.md

* Update 2018-01-10-1.10.0.md

* Add twitter buttons

* docs: add note for #3694

* Fix cake
2018-01-10 23:03:39 +11:00
Lucas Azzola b65e679e70 Update plugins docs (#3653) 2018-01-05 10:48:47 -05: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