Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruyadorno/eslintme
The fastest way to eslint a single file
https://github.com/ruyadorno/eslintme
eslint javascript js lint netcat nodejs unix vim
Last synced: 11 days ago
JSON representation
The fastest way to eslint a single file
- Host: GitHub
- URL: https://github.com/ruyadorno/eslintme
- Owner: ruyadorno
- License: mit
- Created: 2015-11-27T16:04:31.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-07-18T23:08:15.000Z (over 1 year ago)
- Last Synced: 2024-10-25T19:52:01.439Z (12 days ago)
- Topics: eslint, javascript, js, lint, netcat, nodejs, unix, vim
- Language: Shell
- Size: 155 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslintme
[![NPM version](https://badge.fury.io/js/eslintme.svg)](https://npmjs.org/package/eslintme)
[![Build Status](https://travis-ci.org/ruyadorno/eslintme.svg?branch=master)](https://travis-ci.org/ruyadorno/eslintme)> The fastest way to eslint a single file
## About
This is a convenience script around [eslint_d](https://github.com/mantoni/eslint_d.js) to run it at [maximum speed](https://github.com/mantoni/eslint_d.js#moar-speed) using **netcat**.
**eslint_d** is an amazing tool that keeps a local server running **eslint** to cut linting time for a single file, so that we can get instant linting in our preferred editor.
## Install
```
$ npm install -g eslintme
```## Usage
To start the server and lint a file, just run:
```js
$ eslintme file.js
```## Editor Integration
- __Vim__: Install the [syntastic](https://github.com/scrooloose/syntastic) plugin, then make sure this is in your `.vimrc`:
```vim
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_javascript_eslint_generic = 1
let g:syntastic_javascript_eslint_exec = 'eslintme'
```## Support
Please note that this is a very platform-specific convenience wrapper around **eslint_d**, it only supports unix platforms where **netcat** is available. For usage in any other systems please stick with the regular [eslint_d](https://github.com/mantoni/eslint_d.js).
## License
MIT © [Ruy Adorno](http://ruyadorno.com)