1
0
forked from mirrors/0ad

Fix eslint rule 'no-irregular-whitespace'

Manual fixes needed for:
eslint --no-config-lookup --rule '"no-irregular-whitespace": 1'

Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser
2025-05-12 22:02:00 +02:00
parent 56e268d82b
commit 3a2d75af65
4 changed files with 7 additions and 24 deletions
+1 -19
View File
@@ -3,25 +3,7 @@
*/
/**
* A mod is defined by a mod.json file, for example
* {
* "name": "0ad",
* "version": "0.28.0",
* "label": "0 A.D. - Empires Ascendant",
* "url": "https://wildfiregames.com/",
* "description": "A free, open-source, historical RTS game.",
* "dependencies": []
* }
*
* Or:
* {
* "name": "mod2",
* "label": "Mod 2",
* "version": "1.1",
* "description": "",
* "dependencies": ["0ad<=0.28.0", "rote"]
* }
*
* A mod is defined by a mod.json file.
* A mod is identified by the directory name.
* A mod must define the "name", "version", "label", "description" and "dependencies" property.
* The "url" property is optional.
@@ -1,5 +1,5 @@
const g_ModProperties = {
// example: "0ad"
// example: "community-mod"
"name": {
"required": true,
"type": "string",
@@ -11,19 +11,19 @@ const g_ModProperties = {
"type": "string",
"validate": validateVersion
},
// example: ["0ad<=0.0.16", "rote"]
// example: ["0ad<=0.0.28", "rote"]
"dependencies": {
"required": true,
"type": "object",
"validate": validateDependencies
},
// example: "0 A.D. - Empires Ascendant"
// example: "Community Mod"
"label": {
"required": true,
"type": "string",
"validate": validateLabel
},
// example: "A free, open-source, historical RTS game."
// example: "The Community Mod is a community-led effort to improve the gameplay."
"description": {
"required": true,
"type": "string"
+1 -1
View File
@@ -219,7 +219,7 @@ function RunDetection(settings)
if (GL_VERSION.match(/^[3-9]/))
enable_glsl = true;
// Enable GLSL on OpenGL ES 2.0+, which doesnt support the fixed
// Enable GLSL on OpenGL ES 2.0+, which doesnt support the fixed
// function fallbacks
if (GL_VERSION.match(/^OpenGL ES /))
enable_glsl = true;
@@ -480,6 +480,7 @@ ResourceGatherer.prototype.OnValueModification = function(msg)
if (msg.component != "ResourceGatherer")
return;
// eslint-disable-next-line no-irregular-whitespace
// NB: at the moment, 0 A.D. always uses the fast path, the other is mod support.
if (msg.valueNames.length === 1)
{