Created
December 20, 2016 22:38
-
-
Save icflorescu/93902c5f9670b9034901c0e962c43fca to your computer and use it in GitHub Desktop.
.eslintrc for react-native
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
| parser: babel-eslint | |
| extends: | |
| - eslint:recommended | |
| - plugin:react/recommended | |
| plugins: | |
| - react | |
| - react-native | |
| env: | |
| browser: true | |
| rules: | |
| quotes: | |
| - warn | |
| - single | |
| - allowTemplateLiterals: true | |
| yoda: warn | |
| no-shadow: warn | |
| array-bracket-spacing: warn | |
| comma-style: warn | |
| indent: | |
| - warn | |
| - 2 | |
| - VariableDeclarator: | |
| var: 2 | |
| let: 2 | |
| const: 3 | |
| max-len: | |
| - warn | |
| - 120 | |
| - | |
| ignoreComments: true | |
| ignoreUrls: true | |
| ignoreStrings: true | |
| ignoreTemplateLiterals: true | |
| no-console: warn | |
| react-native/no-unused-styles: error | |
| react/require-render-return: error |
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
| ... | |
| "devDependencies": { | |
| ... | |
| "eslint": "^3.12.2", | |
| "eslint-plugin-react": "^6.8.0", | |
| "eslint-plugin-react-native": "^2.2.1", | |
| ... | |
| } | |
| ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment