Skip to content

Instantly share code, notes, and snippets.

@dinhmai74
Last active October 5, 2018 06:06
Show Gist options
  • Save dinhmai74/7affaf3df2d621a3f6ffc9884bb264ab to your computer and use it in GitHub Desktop.
Save dinhmai74/7affaf3df2d621a3f6ffc9884bb264ab to your computer and use it in GitHub Desktop.
eslint
{
"presets": [
"react-native",
"flow"
],
"retainLines": true
}
{
"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,
}
}
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