Last active
October 30, 2017 07:38
-
-
Save p1xelHer0/26c97411557e41f0851e40bfb1d0d640 to your computer and use it in GitHub Desktop.
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
////// | |
// -- 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