mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #4305 from overleaf/jpa-fix-undef
[misc] fix undefined references in all the places and enable lint rule GitOrigin-RevId: 473dbab577b34f60d6a3fe567e29e13cb5b1cb24
This commit is contained in:
parent
b4777a8cce
commit
9dccd6173a
10 changed files with 6 additions and 12 deletions
|
@ -106,6 +106,7 @@
|
||||||
// Frontend specific rules
|
// Frontend specific rules
|
||||||
"files": ["**/frontend/js/**/*.js", "**/frontend/stories/**/*.js", "**/*.stories.js", "**/test/frontend/**/*.js"],
|
"files": ["**/frontend/js/**/*.js", "**/frontend/stories/**/*.js", "**/*.stories.js", "**/test/frontend/**/*.js"],
|
||||||
"globals": {
|
"globals": {
|
||||||
|
"__webpack_public_path__": true,
|
||||||
"$": true,
|
"$": true,
|
||||||
"angular": true,
|
"angular": true,
|
||||||
"ace": true,
|
"ace": true,
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
camelcase,
|
camelcase,
|
||||||
node/handle-callback-err,
|
node/handle-callback-err,
|
||||||
max-len,
|
max-len,
|
||||||
no-undef,
|
|
||||||
no-unused-vars,
|
no-unused-vars,
|
||||||
*/
|
*/
|
||||||
// TODO: This file was created by bulk-decaffeinate.
|
// TODO: This file was created by bulk-decaffeinate.
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
camelcase,
|
camelcase,
|
||||||
node/handle-callback-err,
|
node/handle-callback-err,
|
||||||
max-len,
|
max-len,
|
||||||
no-undef,
|
|
||||||
no-unused-vars,
|
no-unused-vars,
|
||||||
*/
|
*/
|
||||||
// TODO: This file was created by bulk-decaffeinate.
|
// TODO: This file was created by bulk-decaffeinate.
|
||||||
|
@ -496,7 +495,7 @@ module.exports = CompileController = {
|
||||||
let qs
|
let qs
|
||||||
if (err != null) {
|
if (err != null) {
|
||||||
OError.tag(err, 'error getting cookie jar for clsi request')
|
OError.tag(err, 'error getting cookie jar for clsi request')
|
||||||
return callback(err)
|
return next(err)
|
||||||
}
|
}
|
||||||
// expand any url parameter passed in as {url:..., qs:...}
|
// expand any url parameter passed in as {url:..., qs:...}
|
||||||
if (typeof url === 'object') {
|
if (typeof url === 'object') {
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
camelcase,
|
camelcase,
|
||||||
node/handle-callback-err,
|
node/handle-callback-err,
|
||||||
max-len,
|
max-len,
|
||||||
no-undef,
|
|
||||||
*/
|
*/
|
||||||
// TODO: This file was created by bulk-decaffeinate.
|
// TODO: This file was created by bulk-decaffeinate.
|
||||||
// Fix any style issues and re-enable lint.
|
// Fix any style issues and re-enable lint.
|
||||||
|
@ -165,7 +164,7 @@ module.exports = ProjectZipStreamManager = {
|
||||||
{ err: error, project_id, file_id: file._id },
|
{ err: error, project_id, file_id: file._id },
|
||||||
'something went wrong adding file to zip archive'
|
'something went wrong adding file to zip archive'
|
||||||
)
|
)
|
||||||
return callback(err)
|
return callback(error)
|
||||||
}
|
}
|
||||||
if (path[0] === '/') {
|
if (path[0] === '/') {
|
||||||
path = path.slice(1)
|
path = path.slice(1)
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* eslint-disable
|
/* eslint-disable
|
||||||
max-len,
|
max-len,
|
||||||
no-undef,
|
|
||||||
no-unused-vars,
|
no-unused-vars,
|
||||||
*/
|
*/
|
||||||
// TODO: This file was created by bulk-decaffeinate.
|
// TODO: This file was created by bulk-decaffeinate.
|
||||||
|
@ -120,7 +119,7 @@ module.exports = {
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|
||||||
revokeInvite(req, res) {
|
revokeInvite(req, res, next) {
|
||||||
const subscription = req.entity
|
const subscription = req.entity
|
||||||
const email = EmailHelper.parseEmail(req.params.email)
|
const email = EmailHelper.parseEmail(req.params.email)
|
||||||
const teamManagerId = AuthenticationController.getLoggedInUserId(req)
|
const teamManagerId = AuthenticationController.getLoggedInUserId(req)
|
||||||
|
|
|
@ -2,5 +2,4 @@ import getMeta from './meta'
|
||||||
|
|
||||||
// Configure dynamically loaded assets (via webpack) to be downloaded from CDN
|
// Configure dynamically loaded assets (via webpack) to be downloaded from CDN
|
||||||
// See: https://webpack.js.org/guides/public-path/#on-the-fly
|
// See: https://webpack.js.org/guides/public-path/#on-the-fly
|
||||||
// eslint-disable-next-line no-undef, camelcase
|
|
||||||
__webpack_public_path__ = getMeta('ol-baseAssetPath')
|
__webpack_public_path__ = getMeta('ol-baseAssetPath')
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* eslint-disable
|
/* eslint-disable
|
||||||
no-return-assign,
|
no-return-assign,
|
||||||
no-undef,
|
|
||||||
*/
|
*/
|
||||||
// TODO: This file was created by bulk-decaffeinate.
|
// TODO: This file was created by bulk-decaffeinate.
|
||||||
// Fix any style issues and re-enable lint.
|
// Fix any style issues and re-enable lint.
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
/* eslint-disable
|
/* eslint-disable
|
||||||
max-len,
|
max-len,
|
||||||
no-return-assign,
|
no-return-assign,
|
||||||
no-undef,
|
|
||||||
*/
|
*/
|
||||||
// TODO: This file was created by bulk-decaffeinate.
|
// TODO: This file was created by bulk-decaffeinate.
|
||||||
// Fix any style issues and re-enable lint.
|
// Fix any style issues and re-enable lint.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* eslint-disable
|
/* eslint-disable
|
||||||
max-len,
|
max-len,
|
||||||
no-undef,
|
|
||||||
*/
|
*/
|
||||||
|
/* global inject, sinon */
|
||||||
// TODO: This file was created by bulk-decaffeinate.
|
// TODO: This file was created by bulk-decaffeinate.
|
||||||
// Fix any style issues and re-enable lint.
|
// Fix any style issues and re-enable lint.
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
/* eslint-disable
|
/* eslint-disable
|
||||||
max-len,
|
max-len,
|
||||||
no-return-assign,
|
no-return-assign,
|
||||||
no-undef,
|
|
||||||
*/
|
*/
|
||||||
|
/* global inject, sinon */
|
||||||
// TODO: This file was created by bulk-decaffeinate.
|
// TODO: This file was created by bulk-decaffeinate.
|
||||||
// Fix any style issues and re-enable lint.
|
// Fix any style issues and re-enable lint.
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue