Created
June 27, 2016 07:37
-
-
Save yutin1987/5857f0ef654192a698164988098f195b to your computer and use it in GitHub Desktop.
eslint 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
{ | |
"extends": "airbnb", | |
"parser": "babel-eslint", | |
"plugins": ["react-native"], | |
"settings": { | |
"import/resolver": { | |
"node": { | |
"extensions": [".js", ".ios.js", ".android.js"] | |
} | |
} | |
}, | |
"rules": { | |
"no-console": 0, | |
"react-native/no-unused-styles": 2, | |
"react-native/split-platform-components": 2, | |
"react-native/no-inline-styles": 2, | |
"react-native/no-color-literals": 2, | |
} | |
} |
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": "^2.12.0", | |
"eslint-config-airbnb": "^9.0.1", | |
"eslint-plugin-import": "^1.8.1", | |
"eslint-plugin-jsx-a11y": "^1.4.2", | |
"eslint-plugin-react": "^5.1.1", | |
"eslint-plugin-react-native": "^1.1.0-beta", | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment