mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Prohibit trailing commas, and fix function spacing rule to be more in line with the coding standard. Also prohibit leading decimal points, also specified in coding standard.
73 lines
2.2 KiB
JavaScript
73 lines
2.2 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,
|
|
"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"}]
|
|
}
|
|
};
|