Skip to content

Instantly share code, notes, and snippets.

@joshuacrass
Last active March 3, 2019 10:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshuacrass/c3602cdf35c4902f09461b29d683fca6 to your computer and use it in GitHub Desktop.
Save joshuacrass/c3602cdf35c4902f09461b29d683fca6 to your computer and use it in GitHub Desktop.
Example eslintrc with prettier
{
"extends": ["airbnb", "prettier", "prettier/react"],
"plugins": ["react", "prettier"],
"rules": {
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", "jsx"]
}
],
"prettier/prettier": "error",
"max-len": ["error", 80]
},
"env": {
"browser": true
},
"settings": {
"import/resolver": {
"webpack": {
"config": "./config/webpack-common-config.js"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment