summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-02-02 13:23:42 +0000
committerGitHub <noreply@github.com>2018-02-02 13:23:42 +0000
commit7c4decf804388a670cdbcec076472627cfb585ce (patch)
treee3cad6b7aac431ce362d1116a34c1244c123829f
parent52fe924a139b8ae3d087cba0d9a5199054ae0595 (diff)
parent23db293bdfda820dcff2464d2c4e533f52eb86be (diff)
downloadale-7c4decf804388a670cdbcec076472627cfb585ce.zip
Merge pull request #1329 from blyoa/prettier-vue
Add prettier fixer support to vue
-rw-r--r--README.md1
-rw-r--r--autoload/ale/fix/registry.vim2
-rw-r--r--doc/ale-vue.txt11
-rw-r--r--doc/ale.txt3
4 files changed, 16 insertions, 1 deletions
diff --git a/README.md b/README.md
index eed06cf9..b09a643a 100644
--- a/README.md
+++ b/README.md
@@ -162,6 +162,7 @@ formatting.
| Verilog | [iverilog](https://github.com/steveicarus/iverilog), [verilator](http://www.veripool.org/projects/verilator/wiki/Intro) |
| Vim | [vint](https://github.com/Kuniwak/vint) |
| Vim help^ | [alex](https://github.com/wooorm/alex) !!, [proselint](http://proselint.com/), [write-good](https://github.com/btford/write-good) |
+| Vue | [prettier](https://github.com/prettier/prettier) |
| XHTML | [alex](https://github.com/wooorm/alex) !!, [proselint](http://proselint.com/), [write-good](https://github.com/btford/write-good) |
| XML | [xmllint](http://xmlsoft.org/xmllint.html) |
| YAML | [swaglint](https://github.com/byCedric/swaglint), [yamllint](https://yamllint.readthedocs.io/) |
diff --git a/autoload/ale/fix/registry.vim b/autoload/ale/fix/registry.vim
index e4568847..29e263a9 100644
--- a/autoload/ale/fix/registry.vim
+++ b/autoload/ale/fix/registry.vim
@@ -45,7 +45,7 @@ let s:default_registry = {
\ },
\ 'prettier': {
\ 'function': 'ale#fixers#prettier#Fix',
-\ 'suggested_filetypes': ['javascript', 'typescript', 'json', 'css', 'scss', 'less', 'markdown', 'graphql'],
+\ 'suggested_filetypes': ['javascript', 'typescript', 'json', 'css', 'scss', 'less', 'markdown', 'graphql', 'vue'],
\ 'description': 'Apply prettier to a file.',
\ },
\ 'prettier_eslint': {
diff --git a/doc/ale-vue.txt b/doc/ale-vue.txt
new file mode 100644
index 00000000..937b603b
--- /dev/null
+++ b/doc/ale-vue.txt
@@ -0,0 +1,11 @@
+===============================================================================
+ALE Vue Integration *ale-vue-options*
+
+
+===============================================================================
+prettier *ale-vue-prettier*
+
+See |ale-javascript-prettier| for information about the available options.
+
+===============================================================================
+ vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:
diff --git a/doc/ale.txt b/doc/ale.txt
index 417db583..2644ebca 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -239,6 +239,8 @@ CONTENTS *ale-contents*
vint................................|ale-vim-vint|
vim help..............................|ale-vim-help-options|
write-good..........................|ale-vim-help-write-good|
+ vue...................................|ale-vue-options|
+ prettier............................|ale-vue-prettier|
xhtml.................................|ale-xhtml-options|
write-good..........................|ale-xhtml-write-good|
xml...................................|ale-xml-options|
@@ -375,6 +377,7 @@ Notes:
* Verilog: `iverilog`, `verilator`
* Vim: `vint`
* Vim help^: `alex`!!, `proselint`, `write-good`
+* Vue: `prettier`
* XHTML: `alex`!!, `proselint`, `write-good`
* XML: `xmllint`
* YAML: `swaglint`, `yamllint`