Skip to content

Instantly share code, notes, and snippets.

@markhilton
Created January 15, 2021 17:17
Show Gist options
  • Save markhilton/2d4d4c0645a1ba29909301a7b60b129f to your computer and use it in GitHub Desktop.
Save markhilton/2d4d4c0645a1ba29909301a7b60b129f to your computer and use it in GitHub Desktop.
ESlint rules for Google Cloud Functions projects
{
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module"
},
"plugins": [
"promise"
],
"extends": [
"airbnb",
"airbnb/hooks"
],
"rules": {
"quotes": [
"error",
"double"
],
"no-console": [
"error",
{
"allow": [
"log",
"warn",
"error"
]
}
],
"no-async-promise-executor": [
0
],
"implicit-arrow-linebreak": [
0
],
"arrow-body-style": [
0
],
"brace-style": [
0
],
"nonblock-statement-body-position": [
"error",
"any"
],
"no-tabs": [
0
],
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"operator-linebreak": [
0
],
"function-paren-newline": [
0
]
},
"settings": {
"import/resolver": {
"alias": {
"map": [
[
"@",
"./src"
],
[
"@config",
"./src/middleware/config"
],
[
"@middleware",
"./src/middleware"
]
],
"extensions": [
".js"
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment