1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00

Code formatting with prettier, change eslint config for the server

This commit is contained in:
Maksim Eltyshev 2019-11-05 18:01:42 +05:00
parent bc87c1d883
commit 7a3805e64c
191 changed files with 4321 additions and 2880 deletions

View file

@ -10,36 +10,33 @@
*/
module.exports.sockets = {
/***************************************************************************
* *
* `transports` *
* *
* The protocols or "transports" that socket clients are permitted to *
* use when connecting and communicating with this Sails application. *
* *
* > Never change this here without also configuring `io.sails.transports` *
* > in your client-side code. If the client and the server are not using *
* > the same array of transports, sockets will not work properly. *
* > *
* > For more info, see: *
* > https://sailsjs.com/docs/reference/web-sockets/socket-client *
* *
***************************************************************************/
/**
*
* `transports`
*
* The protocols or "transports" that socket clients are permitted to
* use when connecting and communicating with this Sails application.
*
* > Never change this here without also configuring `io.sails.transports`
* > in your client-side code. If the client and the server are not using
* > the same array of transports, sockets will not work properly.
* >
* > For more info, see:
* > https://sailsjs.com/docs/reference/web-sockets/socket-client
*
*/
// transports: [ 'websocket' ],
/***************************************************************************
* *
* `beforeConnect` *
* *
* This custom beforeConnect function will be run each time BEFORE a new *
* socket is allowed to connect, when the initial socket.io handshake is *
* performed with the server. *
* *
* https://sailsjs.com/config/sockets#?beforeconnect *
* *
***************************************************************************/
/**
*
* `beforeConnect`
*
* This custom beforeConnect function will be run each time BEFORE a new
* socket is allowed to connect, when the initial socket.io handshake is
* performed with the server.
*
* https://sailsjs.com/config/sockets#?beforeconnect
*
*/
// beforeConnect: function(handshake, proceed) {
//
// // `true` allows the socket to connect.
@ -47,16 +44,14 @@ module.exports.sockets = {
// return proceed(undefined, true);
//
// },
/***************************************************************************
* *
* `afterDisconnect` *
* *
* This custom afterDisconnect function will be run each time a socket *
* disconnects *
* *
***************************************************************************/
/**
*
* `afterDisconnect`
*
* This custom afterDisconnect function will be run each time a socket
* disconnects
*
*/
// afterDisconnect: function(session, socket, done) {
//
// // By default: do nothing.
@ -64,13 +59,11 @@ module.exports.sockets = {
// return done();
//
// },
/***************************************************************************
* *
* Whether to expose a 'GET /__getcookie' route that sets an HTTP-only *
* session cookie. *
* *
***************************************************************************/
/**
*
* Whether to expose a 'GET /__getcookie' route that sets an HTTP-only
* session cookie.
*
*/
// grant3rdPartyCookie: true,
};