3 Commits

Author SHA1 Message Date
Simon Ser
e3319919a1 wip 2025-01-20 23:05:43 +01:00
Simon Ser
9dda4ee438 eslint: add a few more rules 2025-01-20 23:02:23 +01:00
Simon Ser
9299f79bab Make debug=0 URL param disable debug logs 2025-01-19 21:11:58 +01:00
3 changed files with 13 additions and 1 deletions

View File

@@ -323,6 +323,8 @@ export default class App extends Component {
}
if (queryParams.debug === "1") {
this.debug = true;
} else if (queryParams.debug === "0") {
this.debug = false;
}
if (window.location.hash) {

View File

@@ -7,7 +7,7 @@ gamja settings can be overridden using URL query parameters:
replaced with a randomly generated value)
- `channels`: comma-separated list of channels to join (`#` needs to be escaped)
- `open`: [IRC URL] to open
- `debug`: if set to 1, debug mode is enabled
- `debug`: enable debug logs if set to `1`, disable debug logs if set to `0`
Alternatively, the channels can be set with the URL fragment (ie, by just
appending the channel name to the gamja URL).

View File

@@ -23,11 +23,21 @@ export default [
destructuredArrayIgnorePattern: "^_",
}],
"no-var": "error",
"no-eval": "error",
"no-implied-eval": "error",
"eqeqeq": "error",
"no-invalid-this": "error",
"no-extend-native": "error",
"prefer-arrow-callback": "error",
"no-implicit-globals": "error",
"no-throw-literal": "error",
"no-implicit-coercion": "warn",
"object-shorthand": "warn",
"curly": "warn",
"no-restricted-syntax": ["warn", {
selector: "BlockStatement VariableDeclaration[kind='const']",
message: "NOPE",
}],
"@stylistic/js/indent": ["warn", "tab"],
"@stylistic/js/quotes": ["warn", "double"],
"@stylistic/js/semi": "warn",