Skip to content

Instantly share code, notes, and snippets.

@ivanlhz
Created November 5, 2019 18:41
Show Gist options
  • Save ivanlhz/bef22a2ce77647e2dc7a1d77b29c9597 to your computer and use it in GitHub Desktop.
Save ivanlhz/bef22a2ce77647e2dc7a1d77b29c9597 to your computer and use it in GitHub Desktop.
Base eslint + prettier + jest config no typescript
{
"parser": "babel-eslint",
"env": {
"browser": true,
"jest": true,
"es6": true
},
"plugins": ["react", "import"],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "detect"
}
},
"extends": ["plugin:prettier/recommended", "eslint:recommended", "plugin:react/recommended"],
"rules": {
"import/first": "error",
"no-console": "warn"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment