Last active
October 5, 2018 06:06
-
-
Save dinhmai74/7affaf3df2d621a3f6ffc9884bb264ab to your computer and use it in GitHub Desktop.
eslint
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
Show hidden characters
{ | |
"presets": [ | |
"react-native", | |
"flow" | |
], | |
"retainLines": true | |
} |
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
{ | |
"env": { | |
"node": true, | |
"browser": true, | |
"commonjs": true, | |
"es6": true | |
}, | |
"parser": "babel-eslint", | |
"extends": [ | |
"airbnb", | |
"prettier", | |
"prettier/flowtype", | |
"prettier/react", | |
"prettier/standard" | |
], | |
"plugins": ["only-warn"], | |
"rules": { | |
"no-console": 0, | |
"linebreak-style": 0, | |
"no-use-before-define": 0, | |
"comma-dangle": [ | |
1, | |
{ | |
"arrays": "always", | |
"objects": "always", | |
"imports": "always", | |
"exports": "never", | |
"functions": "ignore" | |
} | |
], | |
"react/prefer-stateless-function": [0, { "ignorePureComponents": true }], | |
"react/prop-types": 0, | |
"semi": 0, | |
"react/destructuring-assignment": 0, | |
"no-unused-vars": 0, | |
} | |
} |
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
npm install --save-dev prettier eslint-plugin-prettier eslint-config-prettier babel-eslint babel-preset-flow eslint-plugin-only-warn | |
npm install flow-bin@0.42.0 babel-preset-flow --save-dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment