Skip to content
Snippets Groups Projects
Commit b9022e0f authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Fix new-cap for codacy

parent 346651c6
No related branches found
No related tags found
No related merge requests found
......@@ -170,15 +170,7 @@ module.exports = {
'block-scoped-var': 2, // treat var statements as if they were block scoped
'curly': [2, 'all'], // specify curly brace conventions for all control statements
'eqeqeq': [2, 'allow-null'], // require use of === and !==
'new-cap': [2, { // require a capital letter for constructors
'capIsNewExceptions': [
'SHA256',
'Match.ObjectIncluding',
'Match.Optional',
'Match.Optional',
'Match.ObjectIncluding'
]
}],
'new-cap': 2, // require a capital letter for constructors
'use-isnan': 2, // disallow comparisons with the value NaN
'valid-typeof': 2, // ensure results of typeof are compared against a valid string
'linebreak-style': [2, 'unix'], // enforce linebreak style
......
/* globals LDAP, slug, getLdapUsername, getLdapUserUniqueID, syncUserData, getDataToSyncUserData */
/* eslint new-cap: [2, {"capIsNewExceptions": ["SHA256"]}] */
const logger = new Logger('LDAPHandler', {});
......
/* eslint new-cap: [2, {"capIsNewExceptions": ["Match.ObjectIncluding", "Match.Optional"]}] */
Meteor.methods({
'livechat:saveDepartment' (_id, departmentData, departmentAgents) {
if (!Meteor.userId() || !RocketChat.authz.hasPermission(Meteor.userId(), 'view-livechat-manager')) {
......
/* eslint new-cap: [2, {"capIsNewExceptions": ["Match.ObjectIncluding"]}] */
Meteor.methods({
'livechat:saveSurveyFeedback' (visitorToken, visitorRoom, formData) {
check(visitorToken, String);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment