Skip to content

Instantly share code, notes, and snippets.

@EtienneDuv
Created July 8, 2021 13:07
Show Gist options
  • Save EtienneDuv/2c2db72330eb44ad473dea1789825d65 to your computer and use it in GitHub Desktop.
Save EtienneDuv/2c2db72330eb44ad473dea1789825d65 to your computer and use it in GitHub Desktop.
eslint config
{
"parserOptions":{
"ecmaVersion":2018
},
"env":{
"es6":true,
"node":true,
"mocha":true
},
"extends":"eslint:recommended",
"rules":{
"indent":[
"error",
4,
{
"SwitchCase":1
}
],
"quotes":[
"error",
"single"
],
"semi":[
"error",
"always",
{
"omitLastInOneLineBlock":true
}
],
"comma-dangle":[
"off",
"always-multiline"
],
"space-before-function-paren":[
"error",
"always"
],
"valid-jsdoc":[
"error",
{
"requireReturn":false,
"prefer":{
"returns":"return"
}
}
],
"require-jsdoc":"warn",
"no-var":"error",
"object-curly-spacing":[
"error",
"never"
],
"key-spacing":[
"error",
{
"align":"colon"
}
],
"no-constant-condition":0,
"no-trailing-spaces":[
2,
{
"skipBlankLines":false
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment