Skip to content

Instantly share code, notes, and snippets.

@Ariel-Rodriguez
Created October 10, 2017 16:37
Show Gist options
  • Save Ariel-Rodriguez/7be973dc5fd8ec7158dd75a6cd227d05 to your computer and use it in GitHub Desktop.
Save Ariel-Rodriguez/7be973dc5fd8ec7158dd75a6cd227d05 to your computer and use it in GitHub Desktop.
My extended airbnb eslint 2017
module.exports = {
"extends": "airbnb",
"parser": "babel-eslint",
"plugins": [
"react",
"jsx-a11y",
"import"
],
"env": {
"browser": true,
},
"rules": {
"semi": ["error", "never"],
"arrow-parens": ["error", "as-needed"],
"jsx-a11y/href-no-hash": "off",
"react/sort-comp": ["error", {
order: [
"lifecycle",
"rendering",
"everything-else",
"static-methods",
],
groups: {
rendering: [
"render",
"/^render.+$/",
],
},
}],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment