mirror of
https://github.com/dense-analysis/ale.git
synced 2026-08-13 19:30:59 +08:00
Fix elm-format fixer name
Support for elm-format as a fixer has existed since Sept 2017, but it's not easy to discover because the fixer was named `format`. This breaks the convention of the other fixers that use the full name in the registry. I've gone ahead and fixed this discrepancy, but I left the existing registry entry in place. We should move people towards using `elm-format` as the fixer name, but I'd hate to break existing setups.
This commit is contained in:
@@ -23,6 +23,12 @@ let s:default_registry = {
|
||||
\ 'description': 'Apply prettier-standard to a file.',
|
||||
\ 'aliases': ['prettier-standard'],
|
||||
\ },
|
||||
\ 'elm-format': {
|
||||
\ 'function': 'ale#fixers#elm_format#Fix',
|
||||
\ 'suggested_filetypes': ['elm'],
|
||||
\ 'description': 'Apply elm-format to a file.',
|
||||
\ 'aliases': ['format'],
|
||||
\ },
|
||||
\ 'eslint': {
|
||||
\ 'function': 'ale#fixers#eslint#Fix',
|
||||
\ 'suggested_filetypes': ['javascript', 'typescript'],
|
||||
@@ -33,11 +39,6 @@ let s:default_registry = {
|
||||
\ 'suggested_filetypes': ['elixir'],
|
||||
\ 'description': 'Apply mix format to a file.',
|
||||
\ },
|
||||
\ 'format': {
|
||||
\ 'function': 'ale#fixers#format#Fix',
|
||||
\ 'suggested_filetypes': ['elm'],
|
||||
\ 'description': 'Apply elm-format to a file.',
|
||||
\ },
|
||||
\ 'isort': {
|
||||
\ 'function': 'ale#fixers#isort#Fix',
|
||||
\ 'suggested_filetypes': ['python'],
|
||||
|
||||
Reference in New Issue
Block a user