refactor: Fix eslint warnings (#3698)
* Update dependencies and remove typescript version pinning (fixed upstream) * Fix esling warnings (disabled any and script lang checks) Rewrote clipboard copy (Fixes #3407) Run prettier --------- Co-authored-by: Oleg Lobanov <oleg@lobanov.me>
This commit is contained in:
1 parent
cc331383fb
commit
0201f9c5c4
37 files changed
+1085
-1026
No files matched your search
@@ -282,7 +282,7 @@ const formattedChunkSize = computed({
|
||||
// Define funcs
|
||||
const capitalize = (name: string, where: string | RegExp = "_") => {
|
||||
if (where === "caps") where = /(?=[A-Z])/;
|
||||
let split = name.split(where);
|
||||
const split = name.split(where);
|
||||
name = "";
|
||||
|
||||
for (let i = 0; i < split.length; i++) {
|
||||
@@ -294,7 +294,7 @@ const capitalize = (name: string, where: string | RegExp = "_") => {
|
||||
|
||||
const save = async () => {
|
||||
if (settings.value === null) return false;
|
||||
let newSettings: ISettings = {
|
||||
const newSettings: ISettings = {
|
||||
...settings.value,
|
||||
shell:
|
||||
settings.value?.shell
|
||||
@@ -376,7 +376,7 @@ onMounted(async () => {
|
||||
try {
|
||||
layoutStore.loading = true;
|
||||
const original: ISettings = await api.get();
|
||||
let newSettings: ISettings = { ...original, commands: {} };
|
||||
const newSettings: ISettings = { ...original, commands: {} };
|
||||
|
||||
const keys = Object.keys(original.commands) as Array<keyof SettingsCommand>;
|
||||
for (const key of keys) {
|
||||
|
||||
Reference in new issue
Block a user