Skip to content

Instantly share code, notes, and snippets.

@jthegedus
Last active December 16, 2017 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jthegedus/e511630631c618a57d51f3efba6bf061 to your computer and use it in GitHub Desktop.
Save jthegedus/e511630631c618a57d51f3efba6bf061 to your computer and use it in GitHub Desktop.
My ESLint Config
---
root: true
# Use create-react-app eslint config as it does not apply styling rules (use prettier for styling) - https://github.com/facebookincubator/create-react-app/tree/master/packages/eslint-config-react-app
#
# yarn add eslint-config-react-app babel-eslint@^7.2.3 eslint@^4.1.1 eslint-plugin-flowtype@^2.34.1 eslint-plugin-import@^2.6.0 eslint-plugin-jsx-a11y@^5.1.1 eslint-plugin-react@^7.1.0
# yarn add eslint-plugin-import
extends:
- react-app
- prettier
rules:
import/exports-last: 2
import/group-exports: 2
# Uncomment the following when released https://github.com/benmosher/eslint-plugin-import/pull/936
# import/no-default-export : 2 - Next.js pages use default exports, so use another eslint config there to not apply this rules to that folder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment