Skip to content

Instantly share code, notes, and snippets.

@notakaos
Last active January 10, 2016 06:41
Show Gist options
  • Save notakaos/32c462fb2ae4316b0e83 to your computer and use it in GitHub Desktop.
Save notakaos/32c462fb2ae4316b0e83 to your computer and use it in GitHub Desktop.
~/.eslintrc (2016.1.10 ver.)
// file: ~/.eslintrc
//
// $ npm install --save-dev eslint-config-airbnb eslint-plugin-react eslint
// or
// $ npm install -g eslint-config-airbnb eslint-plugin-react eslint
{
"parser": "babel-eslint",
"extends": "airbnb",
"globals": {
"Meteor": false,
"Tracker": false,
"Session": false,
"Npm": false,
"Email": false,
"Match": false,
"check": false,
"Mongo": false,
"ReactiveVar": false,
"ReactiveVar": false,
"Template": false,
"EJSON": false,
"React": false,
"ReactMeteorData": false,
"$": false,
"_": false,
},
"rules": {
"indent": [2, 2, {"SwitchCase": 1}],
"quotes": [2, "single"],
"linebreak-style": [2, "unix"],
"semi": [2, "always"],
//"comma-dangle": [2, "always-multiline"],
"comma-dangle": [0],
"no-console": [0],
"no-use-before-define": [2, "nofunc"],
"eqeqeq": [2, "allow-null"],
"id-length": [0],
"no-const-assign": [2],
"no-unused-expressions": [2, {"allowShortCircuit": true}],
"object-curly-spacing": [2, "never"],
"func-names": [0],
"object-shorthand": [0],
},
"env": {
"es6": true,
"node": true,
"browser": true
},
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true,
},
"plugins": [
"react"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment