Created
October 10, 2017 16:37
-
-
Save Ariel-Rodriguez/7be973dc5fd8ec7158dd75a6cd227d05 to your computer and use it in GitHub Desktop.
My extended airbnb eslint 2017
This file contains 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
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