Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.44 KB

README.md

File metadata and controls

44 lines (34 loc) · 1.44 KB

Gritcode eslint configuration

Gritcode specific javascript linting

No additional configuration should be required; upon installation, eslint-config-gritcode adds an .eslintrc.yml into the project root.

Project setup

Unfortunately eslint shareable configs do not resolve dependencies so we need to install all the dev dependencies for each project.

Server

npm i -O \
babel-eslint@^6.1.2 \
eslint@^3.3.1 \
eslint-config-airbnb@^10.0.1 \
eslint-plugin-import@^1.13.0 \
gritcode/module-eslint-config-gritcode.git

Browser

npm i -O \
babel-eslint@^6.1.2 \
eslint@^3.3.1 \
eslint-config-airbnb@^10.0.1  \
eslint-plugin-jsx-a11y@^2.1.0 \
eslint-plugin-import@^1.13.0 \
eslint-plugin-react@^6.1.2 \
gritcode/module-eslint-config-gritcode.git

Atom setup

To setup linting within atom, install the following atom packages
apm install linter linter-eslint

Make sure you have a single project open in Atom.
Within the tray for Atom you will be able to see notifications for the project and the current file within the project.

eslint notifications

resources