Skip to content

Instantly share code, notes, and snippets.

@wunnle
Last active December 19, 2019 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wunnle/917180b1f6d6cfe50e65fc187fb5211d to your computer and use it in GitHub Desktop.
Save wunnle/917180b1f6d6cfe50e65fc187fb5211d to your computer and use it in GitHub Desktop.
eslint config for gatsby
module.exports = {
"extends": [
"eslint:recommended",
"react-app",
"plugin:prettier/recommended"
],
"plugins": [
"simple-import-sort"
],
"rules": {
"prettier/prettier": [
"error",
{
"trailingComma": "none",
"singleQuote": true,
"printWidth": 90
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"quotes": [
2,
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"comma-dangle": 0,
"simple-import-sort/sort": "error",
"max-len": 0,
"multiline-ternary": ["error", "always-multiline"],
"no-console": 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment