mirror of
https://github.com/overte-org/overte.git
synced 2025-04-06 01:12:44 +02:00
74 lines
2.3 KiB
JavaScript
74 lines
2.3 KiB
JavaScript
module.exports = {
|
|
"root": true,
|
|
"extends": "eslint:recommended",
|
|
"parserOptions": {
|
|
"ecmaVersion": 5
|
|
},
|
|
"globals": {
|
|
"Account": false,
|
|
"AnimationCache": false,
|
|
"Assets": false,
|
|
"Audio": false,
|
|
"AudioDevice": false,
|
|
"AudioEffectOptions": false,
|
|
"AvatarList": false,
|
|
"AvatarManager": false,
|
|
"Camera": false,
|
|
"Clipboard": false,
|
|
"Controller": false,
|
|
"DialogsManager": false,
|
|
"Entities": false,
|
|
"FaceTracker": false,
|
|
"GlobalServices": false,
|
|
"HMD": false,
|
|
"LODManager": false,
|
|
"Mat4": false,
|
|
"Menu": false,
|
|
"Messages": false,
|
|
"ModelCache": false,
|
|
"MyAvatar": false,
|
|
"Overlays": false,
|
|
"Paths": false,
|
|
"Quat": false,
|
|
"Rates": false,
|
|
"Recording": false,
|
|
"Reticle": false,
|
|
"Scene": false,
|
|
"Script": false,
|
|
"ScriptDiscoveryService": false,
|
|
"Settings": false,
|
|
"SoundCache": false,
|
|
"Stats": false,
|
|
"TextureCache": false,
|
|
"Toolbars": false,
|
|
"Uuid": false,
|
|
"UndoStack": false,
|
|
"Vec3": false,
|
|
"WebSocket": false,
|
|
"WebWindow": false,
|
|
"Window": false,
|
|
"XMLHttpRequest": false,
|
|
"location": false,
|
|
"print": false
|
|
},
|
|
"rules": {
|
|
"brace-style": ["error", "1tbs", { "allowSingleLine": false }],
|
|
"comma-dangle": ["error", "never"],
|
|
"camelcase": ["error"],
|
|
"curly": ["error", "all"],
|
|
"indent": ["error", 4, { "SwitchCase": 1 }],
|
|
"keyword-spacing": ["error", { "before": true, "after": true }],
|
|
"max-len": ["error", 128, 4],
|
|
"new-cap": ["error"],
|
|
"no-floating-decimal": ["error"],
|
|
//"no-magic-numbers": ["error", { "ignore": [0, 1], "ignoreArrayIndexes": true }],
|
|
"no-multiple-empty-lines": ["error"],
|
|
"no-multi-spaces": ["error"],
|
|
"no-unused-vars": ["error", { "args": "none", "vars": "local" }],
|
|
"semi": ["error", "always"],
|
|
"spaced-comment": ["error", "always", {
|
|
"line": { "markers": ["/"] }
|
|
}],
|
|
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never"}]
|
|
}
|
|
};
|