Skip to content

Instantly share code, notes, and snippets.

@johntran
Created December 25, 2015 03:28
Show Gist options
  • Save johntran/3977aca4f79b94805fd7 to your computer and use it in GitHub Desktop.
Save johntran/3977aca4f79b94805fd7 to your computer and use it in GitHub Desktop.
{ "extends": "eslint-config-airbnb",
"env": {
"browser": true,
"node": true,
"mocha": true
},
"rules": {
"react/no-multi-comp": 0,
"import/default": 0,
"import/no-duplicates": 0,
"import/named": 0,
"import/namespace": 0,
"import/no-unresolved": 0,
"import/no-named-as-default": 2,
// Temporarirly disabled due to a possible bug in babel-eslint (todomvc example)
"block-scoped-var": 0,
// Temporarily disabled for test/* until babel/babel-eslint#33 is resolved
"padded-blocks": 0,
"comma-dangle": 0, // not sure why airbnb turned this on. gross!
"indent": [2, 2, {"SwitchCase": 1}],
"no-console": 0,
"no-alert": 0,
"prefer-const": 0,
"no-unused-vars": 0,
"guard-for-in": 0,
"no-redeclare": 0,
"indent": 0,
"camelcase": 0,
"strict": 0,
"no-nested-ternary": 0,
"one-var": 0,
"func-names": 0,
"semi": 0,
"no-unexpected-multiline": 2
},
"ecmaFeatures": {
"restParams": true,
"experimentalObjectRestSpread": true
},
"plugins": [
"react", "import"
],
"settings": {
"import/parser": "babel-eslint",
"import/resolve": {
moduleDirectory: ["node_modules", "frontend"]
}
},
"globals": {
"__DEVELOPMENT__": true,
"__CLIENT__": true,
"__SERVER__": true,
"__DISABLE_SSR__": true,
"__DEVTOOLS__": true,
"socket": true,
"webpackIsomorphicTools": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment