Skip to content

Instantly share code, notes, and snippets.

@hoblin
Created March 13, 2019 15:54
Show Gist options
  • Save hoblin/afba0ecef67e7c650918cee960751822 to your computer and use it in GitHub Desktop.
Save hoblin/afba0ecef67e7c650918cee960751822 to your computer and use it in GitHub Desktop.
ESLint config for react upgrading
{
"parser": "babel-eslint",
"plugins": [
"react",
"import"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"settings": {
"import/resolver": "node",
"react": {
"version": "detect"
}
},
"env": {
"browser": true,
"es6": true,
"node": true
},
"rules": {
"no-extra-semi": [0],
"no-useless-escape": [0],
"no-unused-vars": [0],
"no-console": [0],
"react/display-name": [0],
"react/prop-types": [0],
"react/no-render-return-value": [0],
"import/no-named-as-default-member": [0],
"import/no-named-as-default": [0]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment