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:
Alasdair Smith
2019-08-09 09:54:16 +00:00
committed by sharelatex
parent 5b458e32ac
commit c8140f9641
+7
View File
@@ -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"
}
}
]
}