Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruanyl/vim-fixmyjs
vim fixmyjs - auto fix your javascript using fixmyjs/eslint/tslint/jscs
https://github.com/ruanyl/vim-fixmyjs
Last synced: about 1 month ago
JSON representation
vim fixmyjs - auto fix your javascript using fixmyjs/eslint/tslint/jscs
- Host: GitHub
- URL: https://github.com/ruanyl/vim-fixmyjs
- Owner: ruanyl
- License: mit
- Created: 2014-09-26T11:31:44.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-13T13:14:59.000Z (almost 7 years ago)
- Last Synced: 2024-11-05T14:55:48.653Z (3 months ago)
- Language: Vim script
- Homepage:
- Size: 25.4 KB
- Stars: 69
- Watchers: 3
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
vim-fixmyjs
===========auto fix your javascript using `eslint` or `fixmyjs` or `jscs` or `tslint`
![screenshot](https://cloud.githubusercontent.com/assets/486382/24611005/5af68f58-1889-11e7-9183-c3059a1d7849.gif)
How to install
-----------------------
### Vundle```vim
Bundle 'ruanyl/vim-fixmyjs'
```### vim-plug
```
Plug 'ruanyl/vim-fixmyjs'
```How to use
----------1. Install `fixmyjs` or `eslint` (or `tslint`) globally, or have it in project `node_modules` folder
2. Config which autofix engine to use:
```
let g:fixmyjs_engine = 'eslint' (default)
or
let g:fixmyjs_engine = 'fixmyjs'
or
let g:fixmyjs_engine = 'jscs'
or
let g:fixmyjs_engine = 'tslint'
```3. For convenience it is recommended that you assign a key for this, like so:
```
noremap f :Fixmyjs
```4. For fixmyjs to enable legacy mode:
```
let g:fixmyjs_legacy_jshint = 1
```