-
-
Save woshi82/2f3fb8d6b8a50c22d8a4e71e5c9d3f74 to your computer and use it in GitHub Desktop.
eslint for reactnative
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
{ | |
"extends": "airbnb", | |
"parser": "babel-eslint", | |
"env": { | |
"browser": true, | |
"node": true, | |
"mocha": true | |
}, | |
"rules": { | |
// Disable for __DEV__, __SERVER__ usage. | |
"no-undef" : 0, | |
// Disable for console/alert | |
"no-console": 0, | |
"no-alert": 0, | |
"indent": [2, 2, {"SwitchCase": 1}] | |
}, | |
"plugins": [ | |
"react", "import" | |
], | |
"settings": { | |
"import/parser": "babel-eslint", | |
"import/resolve": { | |
"moduleDirectory": ["node_modules", "src"] | |
} | |
}, | |
"globals": { | |
"__DEV__": true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment