mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #2059 from overleaf/spd-no-console
Don't allow 'console.log' in backend code GitOrigin-RevId: f52413b574487eef54e8bd27cc61d15a011beb6f
This commit is contained in:
parent
5b458e32ac
commit
c8140f9641
1 changed files with 7 additions and 0 deletions
|
@ -78,6 +78,13 @@
|
|||
// based on mocha's context mechanism
|
||||
"mocha/prefer-arrow-callback": "error"
|
||||
}
|
||||
},
|
||||
{
|
||||
// don't allow console.log in backend code
|
||||
"files": ["**/app/*/src/**/*.js"],
|
||||
"rules": {
|
||||
"no-console": "error"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue