Browse Source

Add syntastic setup

fix-link
Naoufal Kadhom 9 years ago
parent
commit
50c2f127b7
  1. 10
      linters/README.md
  2. 26
      linters/syntastic/README.md

10
linters/README.md

@ -0,0 +1,10 @@
## Linters
- [SublimeLinter](https://github.com/unsplash/javascript/tree/master/linters/SublimeLinter)
- [Syntastic](https://github.com/unsplash/javascript/tree/master/linters/syntastic)
## Dependencies
Our `.eslintrc` requires the following packages:
```
npm install --save-dev eslint-config-unsplash eslint@1.x babel-eslint eslint-plugin-react
```

26
linters/syntastic/README.md

@ -0,0 +1,26 @@
So you want in-editor linting?
## Table of Contents
- [Syntastic](https://github.com/unsplash/javascript/tree/master/linters/syntastic#syntastic)
- [ESLint](https://github.com/unsplash/javascript/tree/master/linters/syntastic#eslint)
## Syntastic
> Add [Syntastic](https://github.com/scrooloose/syntastic) to your Plugins. <br>
> This example uses [Plug](https://github.com/junegunn/vim-plug)
```vim
Plug 'scrooloose/syntastic'
```
> Install the plugin
```vim
:PlugInstall
```
## ESLint
> Install ESLint, Babel ESLint and the Unsplash Config
```
npm i -g eslint@1.* babel-eslint eslint-config-unsplash
```
Loading…
Cancel
Save