Last active
June 25, 2018 09:40
-
-
Save amin3mej/5912e803b779e1c12cba0406c7c5d2c0 to your computer and use it in GitHub Desktop.
ESLint config for react-native
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
yarn -D add eslint eslint-config-airbnb-base eslint-plugin-import eslint-plugin-react eslint-plugin-react-native babel-eslint | |
echo "{ | |
\"parser\": \"babel-eslint\", | |
\"plugins\": [\"react\", \"react-native\"], | |
\"parserOptions\": { | |
\"ecmaFeatures\": { | |
\"jsx\": true, | |
\"modules\": true | |
} | |
}, | |
\"extends\": [\"eslint:recommended\", \"plugin:react/recommended\", \"airbnb-base\"], | |
\"rules\": { | |
\"arrow-body-style\": \"warn\", | |
\"class-methods-use-this\": \"off\", | |
\"global-require\": \"off\" | |
} | |
} | |
" > .eslintrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment