Skip to content

Instantly share code, notes, and snippets.

@p1xelHer0
Last active October 30, 2017 07:38
Show Gist options
  • Save p1xelHer0/26c97411557e41f0851e40bfb1d0d640 to your computer and use it in GitHub Desktop.
Save p1xelHer0/26c97411557e41f0851e40bfb1d0d640 to your computer and use it in GitHub Desktop.
//////
// -- basic react linting with prettier
// install the following
yarn add -D babel-eslint eslint eslint-config-prettier eslint-plugin-prettier eslint-plugin-react prettier eslint-plugin-import
//.eslintrc
{
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true,
"node": true
},
"plugins": ["react", "prettier"],
"rules": {
"prettier/prettier": "error"
},
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:react/recommended",
"prettier"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment