Permalink
Browse files

Apply `no-strict` transform from `lebab`

(except for Angular code and UI unit tests)
  • Loading branch information...
bkimminich committed Aug 28, 2017
1 parent 924bf7e commit 221a34ac7039e7d2a97194a072c094c22d7d1ad9
Showing with 0 additions and 115 deletions.
  1. +0 −2 app.js
  2. +0 −2 data/datacache.js
  3. +0 −2 data/datacreator.js
  4. +0 −2 lib/insecurity.js
  5. +0 −2 lib/utils.js
  6. +0 −2 models/basket.js
  7. +0 −2 models/basketitem.js
  8. +0 −2 models/challenge.js
  9. +0 −2 models/complaint.js
  10. +0 −2 models/feedback.js
  11. +0 −2 models/index.js
  12. +0 −2 models/product.js
  13. +0 −2 models/recycle.js
  14. +0 −2 models/securityAnswer.js
  15. +0 −2 models/securityQuestion.js
  16. +0 −2 models/user.js
  17. +0 −2 routes/angular.js
  18. +0 −1 routes/appConfiguration.js
  19. +0 −2 routes/appVersion.js
  20. +0 −2 routes/authenticatedUsers.js
  21. +0 −2 routes/basket.js
  22. +0 −2 routes/changePassword.js
  23. +0 −2 routes/continueCode.js
  24. +0 −2 routes/coupon.js
  25. +0 −2 routes/createProductReviews.js
  26. +0 −2 routes/currentUser.js
  27. +0 −2 routes/easterEgg.js
  28. +0 −2 routes/fileServer.js
  29. +0 −2 routes/fileUpload.js
  30. +0 −2 routes/keyServer.js
  31. +0 −2 routes/login.js
  32. +0 −2 routes/order.js
  33. +0 −2 routes/premiumReward.js
  34. +0 −2 routes/redirect.js
  35. +0 −2 routes/repeatNotification.js
  36. +0 −2 routes/resetPassword.js
  37. +0 −2 routes/restoreProgress.js
  38. +0 −2 routes/search.js
  39. +0 −2 routes/securityQuestion.js
  40. +0 −2 routes/showProductReviews.js
  41. +0 −2 routes/updateProductReviews.js
  42. +0 −2 routes/verify.js
  43. +0 −2 server.js
  44. +0 −2 test/e2e/administrationSpec.js
  45. +0 −2 test/e2e/basketSpec.js
  46. +0 −2 test/e2e/changePasswordSpec.js
  47. +0 −2 test/e2e/complainSpec.js
  48. +0 −2 test/e2e/contactSpec.js
  49. +0 −2 test/e2e/directAccessSpec.js
  50. +0 −2 test/e2e/forgotPasswordSpec.js
  51. +0 −2 test/e2e/loginSpec.js
  52. +0 −2 test/e2e/noSqlSpec.js
  53. +0 −2 test/e2e/publicFtpSpec.js
  54. +0 −2 test/e2e/redirectSpec.js
  55. +0 −2 test/e2e/registerSpec.js
  56. +0 −2 test/e2e/restApiSpec.js
  57. +0 −2 test/e2e/scoreBoardSpec.js
  58. +0 −2 test/e2e/searchSpec.js
2 app.js
@@ -1,5 +1,3 @@
'use strict'
const server = require('./server')
server.start()
@@ -1,6 +1,4 @@
/* jslint node: true */
'use strict'
exports.challenges = {}
exports.users = {}
exports.products = {}
@@ -1,6 +1,4 @@
/* jslint node: true */
'use strict'
const models = require('../models/index')
const datacache = require('./datacache')
const config = require('config')
@@ -1,6 +1,4 @@
/* jslint node: true */
'use strict'
const crypto = require('crypto')
const expressJwt = require('express-jwt')
const jwt = require('jsonwebtoken')
@@ -1,6 +1,4 @@
/* jslint node: true */
'use strict'
const fs = require('fs')
const request = require('request')
const colors = require('colors/safe')
@@ -1,6 +1,4 @@
/* jslint node: true */
'use strict'
module.exports = (sequelize, DataTypes) => {
const Basket = sequelize.define('Basket', {
coupon: DataTypes.STRING
@@ -1,6 +1,4 @@
/* jslint node: true */
'use strict'
module.exports = (sequelize, DataTypes) => {
const BasketItem = sequelize.define('BasketItem', {
id: {
@@ -1,6 +1,4 @@
/* jslint node: true */
'use strict'
module.exports = (sequelize, DataTypes) => {
const Challenge = sequelize.define('Challenge', {
name: DataTypes.STRING,
@@ -1,6 +1,4 @@
/* jslint node: true */
'use strict'
module.exports = (sequelize, DataTypes) => {
const Complaint = sequelize.define('Complaint', {
message: DataTypes.STRING,
@@ -1,6 +1,4 @@
/* jslint node: true */
'use strict'
const insecurity = require('../lib/insecurity')
const utils = require('../lib/utils')
const challenges = require('../data/datacache').challenges
@@ -1,6 +1,4 @@
/* jslint node: true */
'use strict'
const fs = require('fs')
const path = require('path')
const Sequelize = require('sequelize')
@@ -1,6 +1,4 @@
/* jslint node: true */
'use strict'
const utils = require('../lib/utils')
const challenges = require('../data/datacache').challenges
@@ -1,6 +1,4 @@
/* jslint node: true */
'use strict'
module.exports = (sequelize, DataTypes) => {
const Recycle = sequelize.define('Recycle', {
quantity: DataTypes.INTEGER,
@@ -1,6 +1,4 @@
/* jslint node: true */
'use strict'
const insecurity = require('../lib/insecurity')
module.exports = (sequelize, DataTypes) => {
@@ -1,6 +1,4 @@
/* jslint node: true */
'use strict'
module.exports = (sequelize, DataTypes) => {
const SecurityQuestion = sequelize.define('SecurityQuestion', {
question: DataTypes.STRING
@@ -1,6 +1,4 @@
/* jslint node: true */
'use strict'
const insecurity = require('../lib/insecurity')
const utils = require('../lib/utils')
const challenges = require('../data/datacache').challenges
@@ -1,5 +1,3 @@
'use strict'
const path = require('path')
const utils = require('../lib/utils')
@@ -1,4 +1,3 @@
'use strict'
const config = require('config')
exports = module.exports = function retrieveAppConfiguration () {
return (req, res) => {
@@ -1,5 +1,3 @@
'use strict'
const utils = require('../lib/utils')
exports = module.exports = function retrieveAppVersion () {
@@ -1,5 +1,3 @@
'use strict'
const utils = require('../lib/utils')
const insecurity = require('../lib/insecurity')
const models = require('../models/index')
@@ -1,5 +1,3 @@
'use strict'
const utils = require('../lib/utils')
const insecurity = require('../lib/insecurity')
const models = require('../models/index')
@@ -1,5 +1,3 @@
'use strict'
const utils = require('../lib/utils')
const insecurity = require('../lib/insecurity')
const models = require('../models/index')
@@ -1,5 +1,3 @@
'use strict'
const Hashids = require('hashids')
const hashids = new Hashids('this is my salt', 60, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890')
const challenges = require('../data/datacache').challenges
@@ -1,5 +1,3 @@
'use strict'
const insecurity = require('../lib/insecurity')
const models = require('../models/index')
@@ -1,5 +1,3 @@
'use strict'
const db = require('../data/mongodb')
exports = module.exports = function productReviews () {
@@ -1,5 +1,3 @@
'use strict'
const insecurity = require('../lib/insecurity')
exports = module.exports = function retrieveLoggedInUser () {
@@ -1,5 +1,3 @@
'use strict'
const path = require('path')
const utils = require('../lib/utils')
const challenges = require('../data/datacache').challenges
@@ -1,5 +1,3 @@
'use strict'
const path = require('path')
const utils = require('../lib/utils')
const insecurity = require('../lib/insecurity')
@@ -1,5 +1,3 @@
'use strict'
const utils = require('../lib/utils')
const challenges = require('../data/datacache').challenges
@@ -1,5 +1,3 @@
'use strict'
const path = require('path')
exports = module.exports = function serveKeyFiles () {
@@ -1,5 +1,3 @@
'use strict'
const utils = require('../lib/utils')
const insecurity = require('../lib/insecurity')
const models = require('../models/index')
@@ -1,5 +1,3 @@
'use strict'
const path = require('path')
const fs = require('fs')
const PDFDocument = require('pdfkit')
@@ -1,5 +1,3 @@
'use strict'
const path = require('path')
const utils = require('../lib/utils')
const challenges = require('../data/datacache').challenges
@@ -1,5 +1,3 @@
'use strict'
const utils = require('../lib/utils')
const insecurity = require('../lib/insecurity')
const challenges = require('../data/datacache').challenges
@@ -1,5 +1,3 @@
'use strict'
const utils = require('../lib/utils')
exports = module.exports = function repeatNotification () {
@@ -1,5 +1,3 @@
'use strict'
const utils = require('../lib/utils')
const challenges = require('../data/datacache').challenges
const insecurity = require('../lib/insecurity')
@@ -1,5 +1,3 @@
'use strict'
const Hashids = require('hashids')
const hashids = new Hashids('this is my salt', 60, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890')
const challenges = require('../data/datacache').challenges
@@ -1,5 +1,3 @@
'use strict'
const utils = require('../lib/utils')
const models = require('../models/index')
const challenges = require('../data/datacache').challenges
@@ -1,5 +1,3 @@
'use strict'
const models = require('../models/index')
exports = module.exports = function securityQuestion () {
@@ -1,5 +1,3 @@
'use strict'
const utils = require('../lib/utils')
const challenges = require('../data/datacache').challenges
@@ -1,5 +1,3 @@
'use strict'
const utils = require('../lib/utils')
const challenges = require('../data/datacache').challenges
const db = require('../data/mongodb')
@@ -1,5 +1,3 @@
'use strict'
const utils = require('../lib/utils')
const insecurity = require('../lib/insecurity')
const models = require('../models/index')
@@ -1,5 +1,3 @@
'use strict'
const applicationRoot = __dirname.replace(/\\/g, '/')
const path = require('path')
const fs = require('fs-extra')
@@ -1,5 +1,3 @@
'use strict'
const config = require('config')
describe('/#/administration', () => {
@@ -1,5 +1,3 @@
'use strict'
const insecurity = require('../../lib/insecurity')
const config = require('config')
@@ -1,5 +1,3 @@
'use strict'
const config = require('config')
describe('/#/change-password', () => {
@@ -1,5 +1,3 @@
'use strict'
const config = require('config')
describe('/#/complain', () => {
@@ -1,5 +1,3 @@
'use strict'
const config = require('config')
const insecurity = require('../../lib/insecurity')
@@ -1,5 +1,3 @@
'use strict'
const config = require('config')
let blueprint
for (let i = 0; i < config.get('products').length; i++) {
@@ -1,5 +1,3 @@
'use strict'
const config = require('config')
describe('/#/forgot-password', () => {
@@ -1,5 +1,3 @@
'use strict'
const config = require('config')
describe('/#/login', () => {
@@ -1,5 +1,3 @@
'use strict'
describe('/#/search', () => {
beforeEach(() => {
browser.get('/#/search')
@@ -1,5 +1,3 @@
'use strict'
describe('/ftp', () => {
describe('challenge "confidentialDocument"', () => {
it('should be able to access file /ftp/acquisitions.md', () => {
@@ -1,5 +1,3 @@
'use strict'
describe('/redirect', () => {
describe('challenge "redirect"', () => {
it('should show error page when supplying an unrecognized target URL', () => {
@@ -1,5 +1,3 @@
'use strict'
describe('/#/register', () => {
const config = require('config')
protractor.beforeEach.login({email: 'admin@' + config.get('application.domain'), password: 'admin123'})
@@ -1,5 +1,3 @@
'use strict'
const config = require('config')
const tamperingProductId = ((() => {
const products = config.get('products')
@@ -1,5 +1,3 @@
'use strict'
const config = require('config')
describe('/#/score-board', () => {
@@ -1,5 +1,3 @@
'use strict'
const config = require('config')
const christmasProduct = config.get('products').filter(product => product.useForChristmasSpecialChallenge)[0]

0 comments on commit 221a34a

Please sign in to comment.