Skip to content

Instantly share code, notes, and snippets.

@Jimmydalecleveland
Created April 21, 2019 18:59
Show Gist options
  • Save Jimmydalecleveland/86973e48811f3008078a933fa4e8d2d2 to your computer and use it in GitHub Desktop.
Save Jimmydalecleveland/86973e48811f3008078a933fa4e8d2d2 to your computer and use it in GitHub Desktop.
Personal eslint starter
{
"extends": ["airbnb", "plugin:prettier/recommended", "prettier/react"],
"env": {
"jest": true
},
"rules": {
"no-plusplus": "off",
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["to", "hrefLeft", "hrefRight"],
"aspects": ["noHref", "invalidHref", "preferButton"]
}
],
"prettier/prettier": [
"warn",
{
"trailingComma": "es5",
"singleQuote": true,
"arrowParens": "always",
"printWidth": 120
}
]
},
"overrides": [
{
"files": ["**/__tests__/**"],
"settings": {
"import/resolver": {
"jest": {
"jestConfigFile": "./jest.config.js"
}
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment