chore: fix some lints automatically (#8788)
* chore: fix some lints automatically Fixed lints that were automatically fixable with `eslint --fix`. * fix type * workaround for empty interface lint
This commit is contained in:
@ -142,7 +142,7 @@ function registerKey() {
|
||||
registration.value = null;
|
||||
key.lastUsed = new Date();
|
||||
os.success();
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
function unregisterKey(key) {
|
||||
|
@ -45,7 +45,7 @@ const init = async () => {
|
||||
accounts.value = response;
|
||||
console.log(accounts.value);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
function menu(account, ev) {
|
||||
os.popupMenu([{
|
||||
|
@ -52,7 +52,7 @@ const pagination = {
|
||||
params: {
|
||||
sort: '+lastUsedAt'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
function revoke(token) {
|
||||
os.api('i/revoke-token', { tokenId: token.id }).then(() => {
|
||||
|
@ -120,7 +120,7 @@ const darkThemeId = computed({
|
||||
return darkTheme.value.id;
|
||||
},
|
||||
set(id) {
|
||||
ColdDeviceStorage.set('darkTheme', themes.value.find(x => x.id === id))
|
||||
ColdDeviceStorage.set('darkTheme', themes.value.find(x => x.id === id));
|
||||
}
|
||||
});
|
||||
const lightTheme = ColdDeviceStorage.ref('lightTheme');
|
||||
@ -129,7 +129,7 @@ const lightThemeId = computed({
|
||||
return lightTheme.value.id;
|
||||
},
|
||||
set(id) {
|
||||
ColdDeviceStorage.set('lightTheme', themes.value.find(x => x.id === id))
|
||||
ColdDeviceStorage.set('lightTheme', themes.value.find(x => x.id === id));
|
||||
}
|
||||
});
|
||||
const darkMode = computed(defaultStore.makeGetterSetter('darkMode'));
|
||||
|
@ -75,7 +75,7 @@ async function save() {
|
||||
|
||||
// check each line if it is a RegExp or not
|
||||
for (let i = 0; i < lines.length; i++) {
|
||||
const line = lines[i]
|
||||
const line = lines[i];
|
||||
const regexp = line.match(/^\/(.+)\/(.*)$/);
|
||||
if (regexp) {
|
||||
// check that the RegExp is valid
|
||||
|
Reference in New Issue
Block a user