> For the complete documentation index, see [llms.txt](https://modernproject.gitbook.io/modernproject/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://modernproject.gitbook.io/modernproject/local-development-setup/linters-and-sublime-text-plugins.md).

# Linters, Autoformatters and Sublime Text Plugins

### Install Flake8

```
pip install flake8
```

### Install eslint

```
yarn global add eslint
```

### Install prettier

```
yarn global add prettier
```

### Install black

pip install black

### Edit Base Profile

{% code title="\~/.bash\_profile" %}

```
# Setting PATH for Python 2.7
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH

# Setting PATH for Python 3.6
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH

# flake8 path needed for SublimeLinter
FLAKE8="/Library/Frameworks/Python.framework/Versions/2.7/bin/flake8"
export FLAKE8

# eslint path needed for SublimeLinter
ESLINT="/usr/local/bin/eslint"
export ESLINT
```

{% endcode %}

### Install Package Controll

Install Package Control by navigating to: Sublime Text > Preferences > Install Package Control

### Install SublimeLinter

Open Package Control: Install Package and select SublimeLinter. This allows us to install Linters, which we must do manually.

### Install SublimeLinter-flake8

Open up the Package Control: Install Package again and type `flake8`, install the package `SublimeLinter-flake8`.

### Install SublimeLinter-eslint

Open up the Package Control: Install Package again and type `eslint`, install the package `SublimeLinter-eslint`.

### Install SublimeText JsPreitter

Open Sublime Text Package Control and type in JsPrettier to install the plugin.

Open Sublime Text Package Control and type in Babel to install the plugin.

Settings to update (auto format on save, no semi colons)

### Install SublimeText Babel

### Install SublimeText Black Plugin

### Install SublimeText EditorConfig

Copyright Dylan Stein - 2018
