Skip to content

Instantly share code, notes, and snippets.

@AshKyd
Last active August 15, 2017 05:12
Show Gist options
  • Save AshKyd/43f2b3ea08e3e50f49b993cc4dd3f724 to your computer and use it in GitHub Desktop.
Save AshKyd/43f2b3ea08e3e50f49b993cc4dd3f724 to your computer and use it in GitHub Desktop.
Airbnb linting: Quick script to set up airbnb linting in a project.
{
"extends": "airbnb",
"env": {
"browser": true,
"node": true,
"jquery": true
},
"globals": {
"ABC": true
}
}
# Install eslint plugin for Atom
apm install linter linter-eslint linter-ui-default intentions busy-signal
# Install eslint plugin for VS Code
# <your instructions here>
#!/bin/bash
curl https://gist.githubusercontent.com/AshKyd/43f2b3ea08e3e50f49b993cc4dd3f724/raw/eslintrc.json?`date +%s` > .eslintrc
# Install airbnb linter
# Note: versions are finnicky.
npm install --save-dev eslint@^3.19.0 \
eslint-config-airbnb@^15.1.0 \
eslint-plugin-import@^2.3.0 \
eslint-plugin-jsx-a11y@^5.0.3 \
eslint-plugin-react@^7.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment