Last active
August 15, 2017 05:12
-
-
Save AshKyd/43f2b3ea08e3e50f49b993cc4dd3f724 to your computer and use it in GitHub Desktop.
Airbnb linting: Quick script to set up airbnb linting in a project.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"extends": "airbnb", | |
"env": { | |
"browser": true, | |
"node": true, | |
"jquery": true | |
}, | |
"globals": { | |
"ABC": true | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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