Last active
December 16, 2017 07:57
-
-
Save jthegedus/e511630631c618a57d51f3efba6bf061 to your computer and use it in GitHub Desktop.
My ESLint Config
This file contains hidden or 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
--- | |
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