mod should unload itself to avoid being visible; other changes are syntactic

This commit is contained in:
2024-07-12 00:58:51 +00:00
parent 1130b04947
commit 6cff644dc9
4 changed files with 71 additions and 51 deletions

View File

@@ -10,13 +10,34 @@
"@types/tampermonkey": "^5.0.3"
},
"license": "SEE LICENSE IN LICENSE.",
"xo": {
"env": [
"browser",
"node"
"eslintConfig": {
"root": true,
"extends": [
"xo",
"xo-typescript"
],
"globals": ["GM", "GM_info"],
"parser": "@typescript-eslint/parser",
"parserOptions": { "project": ["./jsconfig.json"] },
"plugins": ["@typescript-eslint"],
"globals": {"GM": true, "GM_info": true},
"rules": {
"@typescript-eslint/brace-style": "off",
"@typescript-eslint/comma-dangle": ["error", "only-multiline"],
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/member-delimiter-style": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-confusing-void-expression": ["error", {
"ignoreVoidOperator": true
}],
"@typescript-eslint/no-meaningless-void-operator": "off",
"@typescript-eslint/padding-line-between-statements": "off",
"@typescript-eslint/semi": "off",
"@typescript-eslint/space-before-function-paren": "off",
"@typescript-eslint/strict-boolean-expressions": ["error", {
"allowString": false,
"allowNumber": false,
"allowNullableObject": false
}],
"array-element-newline": "off",
"brace-style": "off",
"camelcase": "off",
@@ -44,6 +65,14 @@
"unicorn/prefer-module": "off",
"unicorn/prefer-top-level-await": "off",
"fake/fuck-commas": "off"
}
},
"overrides": [
{
"files": ["*.d.ts"],
"rules": {
"no-unused-vars": "off"
}
}
]
}
}