more eslint

This commit is contained in:
Vendicated 2022-10-20 11:58:20 +02:00
parent 350e7b0a6a
commit 36f4478a4f
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3
13 changed files with 39 additions and 19 deletions

View file

@ -30,7 +30,7 @@ export default definePlugin({
},
}, {
find: ".isStaff=function(){",
predicate: () => Settings.plugins["Experiments"].enableIsStaff === true,
predicate: () => Settings.plugins.Experiments.enableIsStaff === true,
replacement: [
{
match: /return\s*(\w+)\.hasFlag\((.+?)\.STAFF\)}/,