/Quack-server

Server-side software for the anti-cheat Quack

Primary LanguageJavaScriptMIT LicenseMIT

Quack server

Server-side software for the anti-cheat Quack
https://github.com/JonathanBerkeley/Quack

Project styleguide

General

  • No semicolon termination
  • Class containment for related variables
  • ES imports
  • Newline between functions / classes / logical blocks
  • Foreign imports seperated from local imports
  • 4 spaces indentation
  • // Space at beginning of line comment

Naming

const CONSTANT_GLOBAL    
static CONSTANT_STATIC    

var localVariable    
const localConst    
let blockVariable    
let #_privateVariable    

let longLiteralNumber = 1_000_000    

Functions

PascalCase(args) {
    // Code
}

Classes

  • Prefer static over singleton
  • Object oriented style
class PascalCase {
    // Code
}