mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 10:32:31 +00:00
26db8ffa69
add console.log rule for tests in web eslintrc GitOrigin-RevId: 166135e379309870fa4fe2d1797cb4c93cf2d877
13 lines
403 B
JavaScript
13 lines
403 B
JavaScript
/* eslint-disable no-console */
|
|
// silence settings module
|
|
console.log = function () {}
|
|
const Settings = require('@overleaf/settings')
|
|
|
|
const MODULES = Settings.moduleImportSequence
|
|
const TARGET = process.argv.slice(2).pop() || 'test_acceptance'
|
|
|
|
if (TARGET === '--name-only') {
|
|
console.debug(MODULES.join('\n'))
|
|
} else {
|
|
console.debug(MODULES.map(name => `modules/${name}/${TARGET}`).join('\n'))
|
|
}
|