Skip to content

Instantly share code, notes, and snippets.

@baruchvlz
Last active March 19, 2019 10:46
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 baruchvlz/4f8223f1da7c5287ee0bb931ece0687c to your computer and use it in GitHub Desktop.
Save baruchvlz/4f8223f1da7c5287ee0bb931ece0687c to your computer and use it in GitHub Desktop.
commonly used eslint rules
module.exports = {
"env": {
"browser": true,
"es6": true,
"node": true,
"jest/globals": true
},
"parser": "babel-eslint",
"extends": ["eslint:recommended"],
"parserOptions": {
"sourceType": "module"
},
"plugins": ["jest"],
"rules": {
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"never"
],
"indent": [
"error",
4
],
"no-restricted-imports": [
2,
{
"patterns": ["./../*"]
}
],
"eol-last": [
"error",
"always"
],
"max-len": [
"error",
{
"code": 100,
"tabWidth": 4
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment