refactor(editor): Apply Prettier (no-changelog) (#4920)
* ⚡ Adjust `format` script * 🔥 Remove exemption for `editor-ui` * 🎨 Prettify * 👕 Fix lint
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { snippets } from '@codemirror/lang-javascript';
|
||||
import { completeFromList, snippetCompletion } from "@codemirror/autocomplete";
|
||||
import { completeFromList, snippetCompletion } from '@codemirror/autocomplete';
|
||||
|
||||
/**
|
||||
* https://github.com/codemirror/lang-javascript/blob/main/src/snippets.ts
|
||||
|
||||
@@ -9,10 +9,7 @@ import { useNDVStore } from '@/stores/ndv';
|
||||
|
||||
export const jsonFieldCompletions = (Vue as CodeNodeEditorMixin).extend({
|
||||
computed: {
|
||||
...mapStores(
|
||||
useNDVStore,
|
||||
useWorkflowsStore,
|
||||
),
|
||||
...mapStores(useNDVStore, useWorkflowsStore),
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
|
||||
@@ -23,13 +23,15 @@ export const luxonCompletions = (Vue as CodeNodeEditorMixin).extend({
|
||||
};
|
||||
});
|
||||
|
||||
options.push(...this.luxonInstanceMethods().map(([method, description]) => {
|
||||
return {
|
||||
label: `${matcher}.${method}()`,
|
||||
type: 'function',
|
||||
info: description,
|
||||
};
|
||||
}));
|
||||
options.push(
|
||||
...this.luxonInstanceMethods().map(([method, description]) => {
|
||||
return {
|
||||
label: `${matcher}.${method}()`,
|
||||
type: 'function',
|
||||
info: description,
|
||||
};
|
||||
}),
|
||||
);
|
||||
|
||||
return {
|
||||
from: preCursor.from,
|
||||
@@ -55,13 +57,15 @@ export const luxonCompletions = (Vue as CodeNodeEditorMixin).extend({
|
||||
};
|
||||
});
|
||||
|
||||
options.push(...this.luxonInstanceMethods().map(([method, description]) => {
|
||||
return {
|
||||
label: `${matcher}.${method}()`,
|
||||
type: 'function',
|
||||
info: description,
|
||||
};
|
||||
}));
|
||||
options.push(
|
||||
...this.luxonInstanceMethods().map(([method, description]) => {
|
||||
return {
|
||||
label: `${matcher}.${method}()`,
|
||||
type: 'function',
|
||||
info: description,
|
||||
};
|
||||
}),
|
||||
);
|
||||
|
||||
return {
|
||||
from: preCursor.from,
|
||||
|
||||
Reference in New Issue
Block a user