mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-06 16:00:08 +01:00
The signaling server protocol has been rewritten to use JSON format to be more readable. Lobbies now support both mesh and client/server modes (selected during creation). The client/server mode uses the SceneMultiplayer relay mode as implemented in beta4. The demo now uses an RPC for pinging, and connects to the MultiplayerAPI instead of using the raw MultiplayerPeer.
53 lines
1.4 KiB
JavaScript
53 lines
1.4 KiB
JavaScript
module.exports = {
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true,
|
|
},
|
|
"extends": [
|
|
"airbnb-base",
|
|
],
|
|
"parserOptions": {
|
|
"ecmaVersion": 12,
|
|
},
|
|
"ignorePatterns": "*.externs.js",
|
|
"rules": {
|
|
"no-console": "off",
|
|
"func-names": "off",
|
|
// Use tabs for consistency with the C++ codebase.
|
|
"indent": ["error", "tab"],
|
|
"max-len": "off",
|
|
"no-else-return": ["error", {allowElseIf: true}],
|
|
"curly": ["error", "all"],
|
|
"brace-style": ["error", "1tbs", { "allowSingleLine": false }],
|
|
"no-bitwise": "off",
|
|
"no-continue": "off",
|
|
"no-self-assign": "off",
|
|
"no-tabs": "off",
|
|
"no-param-reassign": ["error", { "props": false }],
|
|
"no-plusplus": "off",
|
|
"no-unused-vars": ["error", { "args": "none" }],
|
|
"prefer-destructuring": "off",
|
|
"prefer-rest-params": "off",
|
|
"prefer-spread": "off",
|
|
"camelcase": "off",
|
|
"no-underscore-dangle": "off",
|
|
"max-classes-per-file": "off",
|
|
"prefer-arrow-callback": "off",
|
|
// Messes up with copyright headers in source files.
|
|
"spaced-comment": "off",
|
|
// Completely breaks emscripten libraries.
|
|
"object-shorthand": "off",
|
|
// Closure compiler (exported properties)
|
|
"quote-props": ["error", "consistent"],
|
|
"dot-notation": "off",
|
|
// No comma dangle for functions (it's madness, and ES2017)
|
|
"comma-dangle": ["error", {
|
|
"arrays": "always-multiline",
|
|
"objects": "always-multiline",
|
|
"imports": "always-multiline",
|
|
"exports": "always-multiline",
|
|
"functions": "never"
|
|
}],
|
|
}
|
|
};
|